diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-30 00:19:51 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-30 00:19:51 +0000 |
commit | 3ed1d23411c3e7f1f0a73e52681c2279929073f4 (patch) | |
tree | fcf93e27b601447e125e61bd45c9689a7e706eb4 /content/browser/webui | |
parent | a116410f6ad7062aef21a0f2297dfbf466710524 (diff) | |
download | chromium_src-3ed1d23411c3e7f1f0a73e52681c2279929073f4.zip chromium_src-3ed1d23411c3e7f1f0a73e52681c2279929073f4.tar.gz chromium_src-3ed1d23411c3e7f1f0a73e52681c2279929073f4.tar.bz2 |
recently closed menu: respect middle click
(and other disposition modifiers)
BUG=7678
TEST=manual
Review URL: http://codereview.chromium.org/8678002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/webui')
-rw-r--r-- | content/browser/webui/web_ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/webui/web_ui.cc b/content/browser/webui/web_ui.cc index 38e9839..202e755 100644 --- a/content/browser/webui/web_ui.cc +++ b/content/browser/webui/web_ui.cc @@ -224,6 +224,11 @@ bool WebUIMessageHandler::ExtractIntegerValue(const ListValue* value, std::string string_value; if (value->GetString(0, &string_value)) return base::StringToInt(string_value, out_int); + double double_value; + if (value->GetDouble(0, &double_value)) { + *out_int = static_cast<int>(double_value); + return true; + } NOTREACHED(); return false; } |