summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 07:28:25 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 07:28:25 +0000
commitb75b829359b4b432d0462ab5011542f99f2021a5 (patch)
tree564389d8698b140e97918a4cefd7ad18c7c99e7f /base/values.cc
parent3ec5d92cbba6b7b13ead81ebfd9e3c202fae001d (diff)
downloadchromium_src-b75b829359b4b432d0462ab5011542f99f2021a5.zip
chromium_src-b75b829359b4b432d0462ab5011542f99f2021a5.tar.gz
chromium_src-b75b829359b4b432d0462ab5011542f99f2021a5.tar.bz2
Chrome side of consolidating zoom code for pepper plugins (i.e. pdf) and the rest of Chrome. Allows plugins to have different zoom ranges, and also to update zoom on its own.
Review URL: http://codereview.chromium.org/3419023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/values.cc b/base/values.cc
index ce73cb1..cd0f6a8 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -561,6 +561,15 @@ bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
return value->GetAsInteger(out_value);
}
+bool DictionaryValue::GetRealWithoutPathExpansion(const std::string& key,
+ double* out_value) const {
+ Value* value;
+ if (!GetWithoutPathExpansion(key, &value))
+ return false;
+
+ return value->GetAsReal(out_value);
+}
+
bool DictionaryValue::GetStringWithoutPathExpansion(
const std::string& key,
std::string* out_value) const {