Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3393)

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.h

Issue 6783005: Print Preview: Set a print job's title and url correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: tab helpers stay with friends Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.h
===================================================================
--- chrome/browser/ui/tab_contents/tab_contents_wrapper.h (revision 80726)
+++ chrome/browser/ui/tab_contents/tab_contents_wrapper.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/printing/print_view_manager.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_observer.h"
#include "content/common/notification_registrar.h"
@@ -21,7 +22,6 @@
namespace printing {
class PrintPreviewMessageHandler;
-class PrintViewManager;
}
class AutocompleteHistoryManager;
@@ -114,6 +114,10 @@
return search_engine_tab_helper_.get();
}
+ printing::PrintViewManager* print_view_manager() {
+ return print_view_manager_.get();
+ }
+
// Overrides -----------------------------------------------------------------
// TabContentsObserver overrides:
@@ -156,12 +160,6 @@
// Whether the current URL is starred.
bool is_starred_;
- // Handles print job for this contents.
- scoped_ptr<printing::PrintViewManager> printing_;
-
- // Handles Print Preview messages.
- scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_;
-
// Tab Helpers ---------------------------------------------------------------
// (These provide API for callers and have a getter function listed in the
// "Tab Helpers" section in the member functions area, above.)
@@ -179,6 +177,9 @@
scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_;
+ // Handles print job for this contents.
+ scoped_ptr<printing::PrintViewManager> print_view_manager_;
+
// Per-tab observers ---------------------------------------------------------
// (These provide no API for callers; objects that need to exist 1:1 with tabs
// and silently do their thing live here.)
@@ -187,6 +188,7 @@
scoped_ptr<ExtensionMessageObserver> extension_message_observer_;
scoped_ptr<FileSelectObserver> file_select_observer_;
scoped_ptr<prerender::PrerenderObserver> prerender_observer_;
+ scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_;
// TabContents (MUST BE LAST) ------------------------------------------------
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698