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

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

Issue 2978673002: Update print preview test to not use CallJavascriptFunctionUnsafe (Closed)
Patch Set: Created 3 years, 5 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/ui/webui/print_preview/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index 34725e3ab04c4df43c1687b63a2bc422dd10ec5f..bca77f53281ade07fc0b7f6716f7108ae8559498 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -116,6 +116,12 @@ class PrintPreviewHandler
// Sets |pdf_file_saved_closure_| to |closure|.
void SetPdfSavedClosureForTesting(const base::Closure& closure);
+ // Fires the 'enable-manipulate-settings-for-test' WebUI event.
+ void SendEnableManipulateSettingsForTest();
+
+ // Fires the 'manipulate-settings-for-test' WebUI event with |settings|.
+ void SendManipulateSettingsForTest(const base::DictionaryValue& settings);
+
protected:
// If |prompt_user| is true, starts a task to create the default Save As PDF
// directory if needed. OnDirectoryCreated() will be called when it

Powered by Google App Engine
This is Rietveld 408576698