summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 20:23:58 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 20:23:58 +0000
commitdbc77768039c629d0165b6f0ec8ce26e24e1da4d (patch)
tree947c519d1518c57a230961b73a0d03795531ab57 /chrome/browser/renderer_host
parentb5a58cba835df1fecff5383d3a81093e8bfa2573 (diff)
downloadchromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.zip
chromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.tar.gz
chromium_src-dbc77768039c629d0165b6f0ec8ce26e24e1da4d.tar.bz2
Disconnect the "browser controlled printing" and always delegate the control flow to the renderer.
Followup changes will remove more parts that are not needed anymore. Review URL: http://codereview.chromium.org/18860 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc8
-rw-r--r--chrome/browser/renderer_host/render_view_host.h16
2 files changed, 8 insertions, 16 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 5bd9af5..24a2a31 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -318,12 +318,8 @@ void RenderViewHost::Stop() {
Send(new ViewMsg_Stop(routing_id()));
}
-bool RenderViewHost::GetPrintedPagesCount(const ViewMsg_Print_Params& params) {
- return Send(new ViewMsg_GetPrintedPagesCount(routing_id(), params));
-}
-
-bool RenderViewHost::PrintPages(const ViewMsg_PrintPages_Params& params) {
- return Send(new ViewMsg_PrintPages(routing_id(), params));
+bool RenderViewHost::PrintPages() {
+ return Send(new ViewMsg_PrintPages(routing_id()));
}
void RenderViewHost::StartFinding(int request_id,
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index 0c968e4..9529258 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_RENDER_VIEW_HOST_H__
-#define CHROME_BROWSER_RENDER_VIEW_HOST_H__
+#ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__
+#define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__
#include <string>
#include <vector>
@@ -173,13 +173,9 @@ class RenderViewHost : public RenderWidgetHost {
void Stop();
- // Retrieves the number of printed pages that would result for the current web
- // page and the specified settings. The response is a
- // ViewHostMsg_DidGetPrintedPagesCount.
- bool GetPrintedPagesCount(const ViewMsg_Print_Params& params);
-
- // Asks the renderer to "render" printed pages.
- bool PrintPages(const ViewMsg_PrintPages_Params& params);
+ // Asks the renderer to "render" printed pages and initiate printing on our
+ // behalf.
+ bool PrintPages();
// Start looking for a string within the content of the page, with the
// specified options.
@@ -620,4 +616,4 @@ class RenderViewHostFactory {
base::WaitableEvent* modal_dialog_event) = 0;
};
-#endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__
+#endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__