summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmenurunner_mac.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 17:02:59 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 17:02:59 +0000
commitc9e1979455bd83b1d3c6d95be4c84cc7153ced7f (patch)
tree770e8e45f936db44009beee5318161321443d2c7 /webkit/glue/webmenurunner_mac.h
parent1c03f89408d129f8defb846779d3ecb57e43f9ad (diff)
downloadchromium_src-c9e1979455bd83b1d3c6d95be4c84cc7153ced7f.zip
chromium_src-c9e1979455bd83b1d3c6d95be4c84cc7153ced7f.tar.gz
chromium_src-c9e1979455bd83b1d3c6d95be4c84cc7153ced7f.tar.bz2
[Mac] Match popup contents to page zoom size.
Fix the size of the font used in popups presented by the browser UI thread. WebKit was modified to add a field containing the font size, the font size is then propagated in the message sent to the browser, and the web menu runner sets that font size on the popup button resonsible for running the popup menu. Requires WebKit release >= 55897. See WebKit bug https://bugs.webkit.org/show_bug.cgi?id=35990 BUG=14010 TEST=none Review URL: http://codereview.chromium.org/996001 Patch from scottbyer@chromium.org. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmenurunner_mac.h')
-rw-r--r--webkit/glue/webmenurunner_mac.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/webmenurunner_mac.h b/webkit/glue/webmenurunner_mac.h
index b83abeb..6f01daf 100644
--- a/webkit/glue/webmenurunner_mac.h
+++ b/webkit/glue/webmenurunner_mac.h
@@ -30,10 +30,14 @@
// The index of the selected menu item.
int index_;
+
+ // The font size being used for the menu.
+ CGFloat fontSize_;
}
// Initializes the MenuDelegate with a list of items sent from WebKit.
-- (id)initWithItems:(const std::vector<WebMenuItem>&)items;
+- (id)initWithItems:(const std::vector<WebMenuItem>&)items
+ fontSize:(CGFloat)fontSize;
// Returns YES if an item was selected from the menu, NO if the menu was
// dismissed.