| 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_
|
|
|
|
|