WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
103746
[Chromium] Create an enum for the kind of date input and use that on WebDateTimeChooserParams instead of a bare WebString
https://bugs.webkit.org/show_bug.cgi?id=103746
Summary
[Chromium] Create an enum for the kind of date input and use that on WebDateT...
Miguel Garcia
Reported
2012-11-30 07:33:24 PST
Create an enum for the kind of date input and use that on WebDateTimeChooserParams[H[D[C[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[B[D[B
Attachments
Patch
(9.58 KB, patch)
2012-11-30 07:36 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Patch
(8.72 KB, patch)
2012-11-30 07:41 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Patch
(8.79 KB, patch)
2012-12-01 04:38 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Patch
(8.79 KB, patch)
2012-12-01 04:43 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Patch
(8.63 KB, patch)
2012-12-01 15:22 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Patch
(8.63 KB, patch)
2012-12-01 15:54 PST
,
Miguel Garcia
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Miguel Garcia
Comment 1
2012-11-30 07:36:48 PST
Created
attachment 176964
[details]
Patch
Miguel Garcia
Comment 2
2012-11-30 07:41:35 PST
Created
attachment 176965
[details]
Patch
WebKit Review Bot
Comment 3
2012-11-30 07:46:03 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Darin Fisher (:fishd, Google)
Comment 4
2012-11-30 14:20:43 PST
Comment on
attachment 176965
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=176965&action=review
> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:137 > +WebDateTimeInputType ExternalDateTimeChooser::webType(const WebString& source)
nit: toWebDateTimeInputType(...)
> Source/WebKit/chromium/src/ExternalDateTimeChooser.h:56 > + static WebDateTimeInputType webType(const WebString&);
nit: put private static methods that do not depend on any other static members at file scope in the .cpp file.
Miguel Garcia
Comment 5
2012-12-01 04:38:22 PST
Created
attachment 177101
[details]
Patch
Miguel Garcia
Comment 6
2012-12-01 04:40:29 PST
Comment on
attachment 176965
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=176965&action=review
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:137 >> +WebDateTimeInputType ExternalDateTimeChooser::webType(const WebString& source) > > nit: toWebDateTimeInputType(...)
Done
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.h:56 >> + static WebDateTimeInputType webType(const WebString&); > > nit: put private static methods that do not depend on any other static members at file scope in the .cpp file.
Done
Miguel Garcia
Comment 7
2012-12-01 04:41:06 PST
Thanks a lot for the quick review Darin, comments addressed.
Miguel Garcia
Comment 8
2012-12-01 04:43:08 PST
Created
attachment 177102
[details]
Patch
Kent Tamura
Comment 9
2012-12-01 04:48:20 PST
Comment on
attachment 177101
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177101&action=review
> Source/WebKit/chromium/ChangeLog:4 > +
nit: We usually add no blank line between the summary and the bug URL.
> Source/WebKit/chromium/public/WebDateTimeChooserParams.h:30 > +
nit: Blank line is not needed.
> Source/WebKit/chromium/public/WebTextInputType.h:52 > + // TODO(miguelg): Remove these types once Date like types are not
TODO(name) is Chromium-style. It should be FIXME:.
> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:36 > > +#include "platform/WebString.h"
Blank line before #include is not needed.
> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:85 > +static WebDateTimeInputType toWebDateTimeInputType(const WebString& source)
parameters.type is AtomicString. The "source" argument should be const AtomicString&.
> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:87 > + if (source.equals(WebString::fromUTF8("date")))
You can compare "source" with an AtomicSting object provided by Source/WebCore/html/InputTypeNames.h if (source == InputTypeNames::date()) ...
> Source/WebKit/chromium/src/ExternalDateTimeChooser.h:31 > +#include "WebDateTimeInputType.h"
This inclusion looks unnecessary.
Miguel Garcia
Comment 10
2012-12-01 15:22:01 PST
Created
attachment 177114
[details]
Patch
Miguel Garcia
Comment 11
2012-12-01 15:22:36 PST
Comment on
attachment 177101
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177101&action=review
>> Source/WebKit/chromium/public/WebDateTimeChooserParams.h:30 >> + > > nit: Blank line is not needed.
Done
>> Source/WebKit/chromium/public/WebTextInputType.h:52 >> + // TODO(miguelg): Remove these types once Date like types are not > > TODO(name) is Chromium-style. It should be FIXME:.
Done
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:36 >> +#include "platform/WebString.h" > > Blank line before #include is not needed.
Done
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:85 >> +static WebDateTimeInputType toWebDateTimeInputType(const WebString& source) > > parameters.type is AtomicString. The "source" argument should be const AtomicString&.
Done
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.cpp:87 >> + if (source.equals(WebString::fromUTF8("date"))) > > You can compare "source" with an AtomicSting object provided by Source/WebCore/html/InputTypeNames.h > > if (source == InputTypeNames::date()) > ...
Thanks for the pointer! Done
>> Source/WebKit/chromium/src/ExternalDateTimeChooser.h:31 >> +#include "WebDateTimeInputType.h" > > This inclusion looks unnecessary.
True, now that I moved the static method to a static function inside the cpp file this is no longer needed
Miguel Garcia
Comment 12
2012-12-01 15:54:47 PST
Created
attachment 177115
[details]
Patch
Miguel Garcia
Comment 13
2012-12-01 15:54:59 PST
Comment on
attachment 177101
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177101&action=review
>> Source/WebKit/chromium/ChangeLog:4 >> + > > nit: We usually add no blank line between the summary and the bug URL.
Done
Kent Tamura
Comment 14
2012-12-01 19:53:17 PST
Comment on
attachment 177115
[details]
Patch ok
WebKit Review Bot
Comment 15
2012-12-02 05:10:16 PST
Comment on
attachment 177115
[details]
Patch Clearing flags on attachment: 177115 Committed
r136343
: <
http://trac.webkit.org/changeset/136343
>
WebKit Review Bot
Comment 16
2012-12-02 05:10:20 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug