summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-15 20:56:15 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-15 20:56:15 +0000
commit49fe226080745d68a6be22fc4019ca2f82a5e037 (patch)
tree125ec0bbcabd0dfd98c8abe7c8c444b87412f414 /content/browser
parent7f96a161b239b2907289e0f328d550a37ca054d5 (diff)
downloadchromium_src-49fe226080745d68a6be22fc4019ca2f82a5e037.zip
chromium_src-49fe226080745d68a6be22fc4019ca2f82a5e037.tar.gz
chromium_src-49fe226080745d68a6be22fc4019ca2f82a5e037.tar.bz2
Cleanup: Move TabContent::PrintNow() out of src/content.
BUG=76795 Review URL: http://codereview.chromium.org/6872003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/renderer_host/render_view_host.cc5
-rw-r--r--content/browser/renderer_host/render_view_host.h4
-rw-r--r--content/browser/tab_contents/tab_contents.cc8
-rw-r--r--content/browser/tab_contents/tab_contents.h5
4 files changed, 0 insertions, 22 deletions
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 9ae168f..da1e2e0 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -23,7 +23,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_messages.h"
-#include "chrome/common/print_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/safe_browsing/safebrowsing_messages.h"
#include "chrome/common/spellcheck_messages.h"
@@ -387,10 +386,6 @@ void RenderViewHost::ReloadFrame() {
Send(new ViewMsg_ReloadFrame(routing_id()));
}
-bool RenderViewHost::PrintPages() {
- return Send(new PrintMsg_PrintPages(routing_id()));
-}
-
void RenderViewHost::StartFinding(int request_id,
const string16& search_text,
bool forward,
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h
index 75846ab..4e9139f 100644
--- a/content/browser/renderer_host/render_view_host.h
+++ b/content/browser/renderer_host/render_view_host.h
@@ -211,10 +211,6 @@ class RenderViewHost : public RenderWidgetHost {
// Reloads the current frame.
void ReloadFrame();
- // 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.
void StartFinding(int request_id,
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index c5cb443..4aec4bc 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1059,14 +1059,6 @@ void TabContents::EmailPageLocation() {
platform_util::OpenExternal(GURL(mailto));
}
-bool TabContents::PrintNow() {
- // We can't print interstitial page for now.
- if (showing_interstitial_page())
- return false;
-
- return render_view_host()->PrintPages();
-}
-
bool TabContents::IsActiveEntry(int32 page_id) {
NavigationEntry* active_entry = controller_.GetActiveEntry();
return (active_entry != NULL &&
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index 5c24bb4..b97a4cb 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -483,11 +483,6 @@ class TabContents : public PageNavigator,
// current page's URL.
void EmailPageLocation();
- // Prints the current document immediately. Since the rendering is
- // asynchronous, the actual printing will not be completed on the return of
- // this function. Returns false if printing is impossible at the moment.
- bool PrintNow();
-
// Returns true if the active NavigationEntry's page_id equals page_id.
bool IsActiveEntry(int32 page_id);