WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
37013
[Chromium] The popup type (select or suggestion) should be passed to the WebClient::createPopupMenu() method
https://bugs.webkit.org/show_bug.cgi?id=37013
Summary
[Chromium] The popup type (select or suggestion) should be passed to the WebC...
Jay Campan
Reported
2010-04-01 23:59:21 PDT
Chromium on Linux needs to know when it displays a popup whether it is a select or a autofill/autocomplete. For that reason, the popup type (select or suggestion) should be passed to the WebClient::createPopupMenu() method.
Attachments
Adding the popup type to the WebClient::createPopupMenu() method
(7.66 KB, patch)
2010-04-02 00:13 PDT
,
Jay Campan
abarth
: review-
Details
Formatted Diff
Diff
Fixed style issues
(7.85 KB, patch)
2010-04-02 00:30 PDT
,
Jay Campan
abarth
: review-
Details
Formatted Diff
Diff
Fixed compilation issue and cleaned-up
(4.57 KB, patch)
2010-04-02 09:47 PDT
,
Jay Campan
no flags
Details
Formatted Diff
Diff
Added missing file...
(6.71 KB, patch)
2010-04-02 09:51 PDT
,
Jay Campan
fishd
: review+
fishd
: commit-queue-
Details
Formatted Diff
Diff
Applied fishd suggested changes
(6.68 KB, patch)
2010-04-02 10:06 PDT
,
Jay Campan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Jay Campan
Comment 1
2010-04-02 00:13:49 PDT
Created
attachment 52389
[details]
Adding the popup type to the WebClient::createPopupMenu() method
WebKit Review Bot
Comment 2
2010-04-02 00:16:04 PDT
Attachment 52389
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit/chromium/src/ChromeClientImpl.cpp:705: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebKit/chromium/public/WebPopupType.h:1: One or more unexpected \r (^M) found; better to use only a \n [whitespace/carriage_return] [1] Suppressing further [whitespace/carriage_return] reports for this file. Total errors found: 45 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 3
2010-04-02 00:23:32 PDT
Attachment 52389
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/1658102
Adam Barth
Comment 4
2010-04-02 00:26:19 PDT
Comment on
attachment 52389
[details]
Adding the popup type to the WebClient::createPopupMenu() method Looks like this patch could use a tune-up.
Jay Campan
Comment 5
2010-04-02 00:30:41 PDT
Created
attachment 52395
[details]
Fixed style issues
WebKit Review Bot
Comment 6
2010-04-02 00:35:18 PDT
Attachment 52395
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/1614186
Adam Barth
Comment 7
2010-04-02 09:41:50 PDT
Comment on
attachment 52395
[details]
Fixed style issues This patch doesn't compile. Also, we'll need fishd to review changes to the WebKit API.
Jay Campan
Comment 8
2010-04-02 09:47:49 PDT
Created
attachment 52418
[details]
Fixed compilation issue and cleaned-up
Jay Campan
Comment 9
2010-04-02 09:51:00 PDT
Created
attachment 52419
[details]
Added missing file...
Darin Fisher (:fishd, Google)
Comment 10
2010-04-02 09:53:46 PDT
Comment on
attachment 52419
[details]
Added missing file...
> Index: WebKit/chromium/public/WebPopupType.h
...
> + * Copyright (C) 2009 Google Inc. All rights reserved.
2009 -> 2010
> Index: WebKit/chromium/src/ChromeClientImpl.cpp
...
> +namespace { > + > +// Converts a WebCore::PopupContainerType to a WebKit::WebPopupType. > +WebKit::WebPopupType convertPopupType(WebCore::PopupContainer::PopupType type) > +{ > + switch (type) { > + case PopupContainer::Select: > + return WebKit::WebPopupTypeSelect; > + case PopupContainer::Suggestion: > + return WebKit::WebPopupTypeSuggestion; > + default: > + ASSERT_NOT_REACHED(); > + return WebKit::WebPopupTypeNone; > + } > +} > + > +} // namespace > + > namespace WebKit {
In webkit code, it would be more commonplace for convertPopupType to be a static method in the WebKit namespace. Then you can do away with the WebKit:: prefix, and you can also do away with the WebCore:: prefix due to the using declaration at the top of this file.
> + // TODO(jcivelli): Remove the deprecated methods once the Chromium side > + // use the new method.
nit: WebKit style is to just add a FIXME comment without the (username) bit. R=me otherwise. Please fix these nits before committing.
Jay Campan
Comment 11
2010-04-02 10:06:59 PDT
Created
attachment 52420
[details]
Applied fishd suggested changes
WebKit Commit Bot
Comment 12
2010-04-02 12:11:56 PDT
Comment on
attachment 52420
[details]
Applied fishd suggested changes Clearing flags on attachment: 52420 Committed
r57014
: <
http://trac.webkit.org/changeset/57014
>
WebKit Commit Bot
Comment 13
2010-04-02 12:12:02 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