summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 20:34:43 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 20:34:43 +0000
commit88942a2dab7da11dc89b4fe95151fdefa6cef036 (patch)
tree3047b9779e5b8b8a9a04c26e83ebc478e825f4b5 /chrome/browser/printing
parent2acaa4de809c66b8b826e3bf93930e2b3bf4c65f (diff)
downloadchromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.zip
chromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.tar.gz
chromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.tar.bz2
DOM UI: Change DOMMessageHandler callback arg type to ListValue.
The parameter describes a list of Values that act as parameters to the callback. It is always a ListValue. It should be typed as such. BUG=none TEST=compile; manual testing Review URL: http://codereview.chromium.org/3146019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/print_dialog_cloud.cc8
-rw-r--r--chrome/browser/printing/print_dialog_cloud_internal.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index 368d25b..b084456 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -323,7 +323,7 @@ void CloudPrintFlowHandler::Observe(NotificationType type,
}
}
-void CloudPrintFlowHandler::HandleShowDebugger(const Value* value) {
+void CloudPrintFlowHandler::HandleShowDebugger(const ListValue* args) {
ShowDebugger();
}
@@ -342,7 +342,7 @@ CloudPrintFlowHandler::CreateCloudPrintDataSender() {
return new CloudPrintDataSender(print_data_helper_.get(), print_job_title_);
}
-void CloudPrintFlowHandler::HandleSendPrintData(const Value* value) {
+void CloudPrintFlowHandler::HandleSendPrintData(const ListValue* args) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
// This will cancel any ReadPrintDataFile() or SendPrintDataFile()
// requests in flight (this is anticipation of when setting page
@@ -359,8 +359,8 @@ void CloudPrintFlowHandler::HandleSendPrintData(const Value* value) {
}
}
-void CloudPrintFlowHandler::HandleSetPageParameters(const Value* value) {
- std::string json(dom_ui_util::GetJsonResponseFromFirstArgumentInList(value));
+void CloudPrintFlowHandler::HandleSetPageParameters(const ListValue* args) {
+ std::string json(dom_ui_util::GetJsonResponseFromFirstArgumentInList(args));
if (json.empty())
return;
diff --git a/chrome/browser/printing/print_dialog_cloud_internal.h b/chrome/browser/printing/print_dialog_cloud_internal.h
index e14d339..7270b29 100644
--- a/chrome/browser/printing/print_dialog_cloud_internal.h
+++ b/chrome/browser/printing/print_dialog_cloud_internal.h
@@ -123,9 +123,9 @@ class CloudPrintFlowHandler : public DOMMessageHandler,
const NotificationDetails& details);
// Callbacks from the page.
- void HandleShowDebugger(const Value* value);
- void HandleSendPrintData(const Value* value);
- void HandleSetPageParameters(const Value* value);
+ void HandleShowDebugger(const ListValue* args);
+ void HandleSendPrintData(const ListValue* args);
+ void HandleSetPageParameters(const ListValue* args);
// Call to get the debugger loaded on our hosted dialog page
// specifically. Since we're not in an official browser tab, only