summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.h')
-rw-r--r--chrome/browser/dom_ui/dom_ui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h
index 8b0286b..ff0f96f 100644
--- a/chrome/browser/dom_ui/dom_ui.h
+++ b/chrome/browser/dom_ui/dom_ui.h
@@ -35,6 +35,7 @@ class DOMUI {
// of the call, and should be thought of more like sending a message to
// the page.
// There are two function variants for one-arg and two-arg calls.
+ void CallJavascriptFunction(const std::wstring& function_name);
void CallJavascriptFunction(const std::wstring& function_name,
const Value& arg);
void CallJavascriptFunction(const std::wstring& function_name,
@@ -77,6 +78,12 @@ class DOMMessageHandler {
std::wstring title,
const GURL& gurl);
+ // Extract an integer value from a Value.
+ bool ExtractIntegerValue(const Value* value, int* out_int);
+
+ // Extract a string value from a Value.
+ std::wstring ExtractStringValue(const Value* value);
+
DOMUI* const dom_ui_;
private: