| Index: chrome/renderer/mock_render_thread.h
|
| ===================================================================
|
| --- chrome/renderer/mock_render_thread.h (revision 13823)
|
| +++ chrome/renderer/mock_render_thread.h (working copy)
|
| @@ -1,15 +1,19 @@
|
| -// Copyright (c) 2008 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
|
| #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
|
|
|
| +#include <string>
|
| #include <vector>
|
|
|
| #include "chrome/common/ipc_test_sink.h"
|
| #include "chrome/renderer/render_thread.h"
|
|
|
| +struct ViewMsg_Print_Params;
|
| +struct ViewMsg_PrintPages_Params;
|
| +
|
| // This class is very simple mock of RenderThread. It simulates an IPC channel
|
| // which supports only two messages:
|
| // ViewHostMsg_CreateWidget : sync message sent by the Widget.
|
| @@ -73,6 +77,15 @@
|
| void OnMsgOpenChannelToExtension(const std::string& extension_id,
|
| int* channel_id);
|
|
|
| + // The RenderView expects default print settings.
|
| + void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting);
|
| +
|
| + // The RenderView expects final print settings from the user.
|
| + void OnScriptedPrint(gfx::NativeViewId host_window,
|
| + int cookie,
|
| + int expected_pages_count,
|
| + ViewMsg_PrintPages_Params* settings);
|
| +
|
| IPC::TestSink sink_;
|
|
|
| // Routing id what will be assigned to the Widget.
|
|
|