WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
90911
[BlackBerry] Implement Date/Time picker
https://bugs.webkit.org/show_bug.cgi?id=90911
Summary
[BlackBerry] Implement Date/Time picker
Crystal Zhang
Reported
2012-07-10 14:45:12 PDT
Implement HTML Date/Time picker.
Attachments
patch
(13.55 KB, patch)
2012-07-10 15:03 PDT
,
Crystal Zhang
rwlbuis
: review-
Details
Formatted Diff
Diff
updated patch
(14.48 KB, patch)
2012-07-11 11:30 PDT
,
Crystal Zhang
rwlbuis
: review-
Details
Formatted Diff
Diff
updated patch
(14.46 KB, patch)
2012-07-11 12:20 PDT
,
Crystal Zhang
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Crystal Zhang
Comment 1
2012-07-10 15:03:34 PDT
Created
attachment 151535
[details]
patch
Rob Buis
Comment 2
2012-07-10 15:16:26 PDT
Comment on
attachment 151535
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151535&action=review
Can be improved some more.
> Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:44 > + void generateHTML(BlackBerry::Platform::BlackBerryInputType, const BlackBerry::WebKit::WebString& value, const BlackBerry::WebKit::WebString& min, const BlackBerry::WebKit::WebString& max, double step);
You can probably make some stuff more private, this is probably internal.
> Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp:504 > + WTF::String value = element->value();
WTF:: prefix can go in this file.
> Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp:509 > + DatePickerClient* client = new DatePickerClient(type, value, min, max, step, m_webPage, element);
Who deletes client?
Crystal Zhang
Comment 3
2012-07-10 15:21:02 PDT
(In reply to
comment #2
)
> (From update of
attachment 151535
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=151535&action=review
> > Can be improved some more. > > > Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:44 > > + void generateHTML(BlackBerry::Platform::BlackBerryInputType, const BlackBerry::WebKit::WebString& value, const BlackBerry::WebKit::WebString& min, const BlackBerry::WebKit::WebString& max, double step); > > You can probably make some stuff more private, this is probably internal.
The parameters passed from ctor that needed have been made private, others are just for generating HTML.
> > > Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp:504 > > + WTF::String value = element->value(); > > WTF:: prefix can go in this file.
ok.
> > > Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp:509 > > + DatePickerClient* client = new DatePickerClient(type, value, min, max, step, m_webPage, element); > > Who deletes client?
DatePickerClient will be passed to PagePopupBlackBerry as an OwnPtr, and will be deleted automatically.
Rob Buis
Comment 4
2012-07-10 15:29:36 PDT
Comment on
attachment 151535
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151535&action=review
> Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:37 > +class PagePopup;
I think you can actually remove the last reference.
Crystal Zhang
Comment 5
2012-07-11 11:30:16 PDT
Created
attachment 151739
[details]
updated patch
Rob Buis
Comment 6
2012-07-11 11:52:22 PDT
Comment on
attachment 151739
[details]
updated patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151739&action=review
Looks good, found some small stuff.
> Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:22 > +#include "IntSize.h"
You can use forward reference.
> Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:25 > +#include "WebString.h"
Ditto.
> Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.h:55 > + HTMLInputElement* m_element;
Can you recheck the private situation again? I think at least the member vars can be made private.
Crystal Zhang
Comment 7
2012-07-11 12:20:03 PDT
Created
attachment 151748
[details]
updated patch
Rob Buis
Comment 8
2012-07-11 12:24:46 PDT
Comment on
attachment 151748
[details]
updated patch LGTM.
WebKit Review Bot
Comment 9
2012-07-11 13:21:13 PDT
Comment on
attachment 151748
[details]
updated patch Clearing flags on attachment: 151748 Committed
r122364
: <
http://trac.webkit.org/changeset/122364
>
WebKit Review Bot
Comment 10
2012-07-11 13:21:18 PDT
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