| Index: chrome/renderer/mock_printer.h
|
| diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
|
| index 255dbd8e6e46ab46735f3b854f30e4c75aa585a6..d38f174db0e24a664959709a5a0a140fb7f0f6b1 100644
|
| --- a/chrome/renderer/mock_printer.h
|
| +++ b/chrome/renderer/mock_printer.h
|
| @@ -70,12 +70,14 @@ class MockPrinter {
|
| // Functions that changes settings of a pseudo printer.
|
| void ResetPrinter();
|
| void SetDefaultPrintSettings(const PrintMsg_Print_Params& params);
|
| + void SetScriptedPrintAllowed(bool allowed);
|
| void UseInvalidSettings();
|
| void UseInvalidPageSize();
|
| void UseInvalidContentSize();
|
|
|
| // Functions that handles IPC events.
|
| void GetDefaultPrintSettings(PrintMsg_Print_Params* params);
|
| + void OnCheckScriptedPrintAllowed(bool* allowed);
|
| void ScriptedPrint(int cookie,
|
| int expected_pages_count,
|
| bool has_selection,
|
| @@ -149,6 +151,9 @@ class MockPrinter {
|
| string16 title_;
|
| string16 url_;
|
|
|
| + // Used for simulating attempted printing from a blocked popup.
|
| + bool scripted_print_allowed_;
|
| +
|
| // Used for generating invalid settings.
|
| bool use_invalid_settings_;
|
|
|
|
|