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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 26678004: Added a browser test of the print preview dialog size for Chrome apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented follow-up review suggestions Created 7 years, 2 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
« no previous file with comments | « chrome/browser/apps/app_browsertest.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_ui.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.h b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
index 39354db46ab76ce27546edf678d7673556e40a1c..ab893bb8532f19331284df1dc7909634b430b6d5 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
@@ -151,11 +151,13 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
// also instructs the dialog to auto-cancel, which is used for testing only.
class TestingDelegate {
public:
- virtual void PreviewIsReady() = 0;
virtual bool IsAutoCancelEnabled() = 0;
+ virtual void DidGetPreviewPageCount(int page_count) = 0;
+ virtual void DidRenderPreviewPage(
+ const content::WebContents& preview_dialog) = 0;
};
- static void SetTestingDelegate(TestingDelegate* delegate);
+ static void SetDelegateForTesting(TestingDelegate* delegate);
private:
friend class PrintPreviewHandlerTest;
« no previous file with comments | « chrome/browser/apps/app_browsertest.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698