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

Unified Diff: chrome/browser/printing/print_view_manager.cc

Issue 10535045: TabContentsWrapper -> TabContents, for printing code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/printing/print_view_manager.cc
===================================================================
--- chrome/browser/printing/print_view_manager.cc (revision 140896)
+++ chrome/browser/printing/print_view_manager.cc (working copy)
@@ -18,7 +18,7 @@
#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/printing/print_view_manager_observer.h"
#include "chrome/browser/printing/printer_query.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/print_messages.h"
@@ -51,7 +51,7 @@
namespace printing {
-PrintViewManager::PrintViewManager(TabContentsWrapper* tab)
+PrintViewManager::PrintViewManager(TabContents* tab)
: content::WebContentsObserver(tab->web_contents()),
tab_(tab),
number_pages_(0),
@@ -65,7 +65,7 @@
expecting_first_page_ = true;
#endif
registrar_.Add(this, chrome::NOTIFICATION_CONTENT_BLOCKED_STATE_CHANGED,
- content::Source<TabContentsWrapper>(tab));
+ content::Source<TabContents>(tab));
}
PrintViewManager::~PrintViewManager() {
@@ -87,8 +87,7 @@
PrintPreviewTabController::GetInstance();
if (!tab_controller)
return false;
- TabContentsWrapper* print_preview_tab =
- tab_controller->GetPrintPreviewForTab(tab_);
+ TabContents* print_preview_tab = tab_controller->GetPrintPreviewForTab(tab_);
if (print_preview_tab) {
// Preview tab exist for current tab or current tab is preview tab.
if (!print_preview_tab->web_contents()->GetWebUI())
@@ -261,7 +260,7 @@
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
- content::Source<TabContentsWrapper>(tab_),
+ content::Source<TabContents>(tab_),
content::NotificationService::NoDetails());
}
@@ -356,7 +355,7 @@
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
- content::Source<TabContentsWrapper>(tab_),
+ content::Source<TabContents>(tab_),
content::NotificationService::NoDetails());
break;
}
@@ -386,7 +385,7 @@
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
- content::Source<TabContentsWrapper>(tab_),
+ content::Source<TabContents>(tab_),
content::NotificationService::NoDetails());
break;
}
« no previous file with comments | « chrome/browser/printing/print_view_manager.h ('k') | chrome/browser/printing/printing_layout_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698