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

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

Issue 10353007: Extract a minimal subset of WebDialogUI/WebDialogDelegate from src/chrome -> src/ui/web_dialogs Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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/printing/print_preview_tab_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 134857)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -23,8 +23,8 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
-#include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
-#include "chrome/browser/ui/webui/web_dialog_ui.h"
+#include "chrome/browser/ui/webui/chrome_web_dialog_web_contents_delegate.h"
mazda 2012/05/03 22:56:22 Please sort alphabetically by running tools/sort-h
+#include "ui/web_dialogs/web_dialog_ui.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
@@ -57,7 +57,7 @@
// WebDialogDelegate that specifies what the print preview dialog
// will look like.
-class PrintPreviewTabDelegate : public WebDialogDelegate {
+class PrintPreviewTabDelegate : public views::WebDialogDelegate {
public:
explicit PrintPreviewTabDelegate(TabContentsWrapper* initiator_tab);
virtual ~PrintPreviewTabDelegate();
@@ -149,7 +149,8 @@
// WebContentsDelegate that forwards shortcut keys in the print preview
// renderer to the browser.
-class PrintPreviewWebContentDelegate : public WebDialogWebContentsDelegate {
+class PrintPreviewWebContentDelegate
+ : public ChromeWebDialogWebContentsDelegate {
public:
PrintPreviewWebContentDelegate(Profile* profile,
TabContentsWrapper* initiator_tab);
@@ -168,7 +169,7 @@
PrintPreviewWebContentDelegate::PrintPreviewWebContentDelegate(
Profile* profile,
TabContentsWrapper* initiator_tab)
- : WebDialogWebContentsDelegate(profile),
+ : ChromeWebDialogWebContentsDelegate(profile),
tab_(initiator_tab) {}
PrintPreviewWebContentDelegate::~PrintPreviewWebContentDelegate() {}
@@ -428,7 +429,7 @@
// |web_dialog_ui_delegate| deletes itself in
// PrintPreviewTabDelegate::OnDialogClosed().
- WebDialogDelegate* web_dialog_delegate =
+ views::WebDialogDelegate* web_dialog_delegate =
new PrintPreviewTabDelegate(initiator_tab);
// |web_tab_content_delegate|'s owner is |constrained_web_ui_delegate|.
PrintPreviewWebContentDelegate* pp_wcd =

Powered by Google App Engine
This is Rietveld 408576698