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

Unified Diff: chrome/browser/printing/print_preview_test.h

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ConstrainedWebDialog functions Created 4 years 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_test.h
diff --git a/chrome/browser/printing/print_preview_test.h b/chrome/browser/printing/print_preview_test.h
index ffd76ffe6de55f7bcfc6e596bf72421c4deb58a4..ef2a62df47f01e1bb7e6589e769f162c88463096 100644
--- a/chrome/browser/printing/print_preview_test.h
+++ b/chrome/browser/printing/print_preview_test.h
@@ -6,7 +6,9 @@
#define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TEST_H_
#include "base/macros.h"
+#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include "chrome/test/base/browser_with_test_window_test.h"
+#include "ui/views/window/dialog_delegate.h"
class PrintPreviewTest : public BrowserWithTestWindowTest {
public:
@@ -23,5 +25,27 @@ class PrintPreviewTest : public BrowserWithTestWindowTest {
DISALLOW_COPY_AND_ASSIGN(PrintPreviewTest);
};
+#if defined(USE_AURA)
+class PrintPreviewDialogControllerTest:
+ public printing::PrintPreviewDialogController {
+ public:
+ explicit PrintPreviewDialogControllerTest(gfx::NativeView context);
+
+ // Need to override the function to get the delegate so that it uses the
+ // correct window.
+ ConstrainedWebDialogDelegate* GetWebDialogDelegate(
+ content::WebContents* initiator) override;
+
+ void SetContext(gfx::NativeView context);
+
+ protected:
+ ~PrintPreviewDialogControllerTest() override;
+
+ private:
+ gfx::NativeView context_;
+
+};
+#endif // defined(USE_AURA)
+
#endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TEST_H_
« no previous file with comments | « chrome/browser/printing/print_preview_dialog_controller_unittest.cc ('k') | chrome/browser/printing/print_preview_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698