OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "content/public/common/common_param_traits.h" | 8 #include "content/public/common/common_param_traits.h" |
| 9 #include "content/shell/shell_webpreferences.h" |
9 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
11 | 12 |
12 #define IPC_MESSAGE_START ShellMsgStart | 13 #define IPC_MESSAGE_START ShellMsgStart |
13 | 14 |
| 15 IPC_STRUCT_TRAITS_BEGIN(content::ShellWebPreferences) |
| 16 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls) |
| 17 IPC_STRUCT_TRAITS_MEMBER(dom_paste_enabled) |
| 18 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard) |
| 19 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled) |
| 20 IPC_STRUCT_TRAITS_END() |
| 21 |
14 // Sets the current working directory to use for layout tests. | 22 // Sets the current working directory to use for layout tests. |
15 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetCurrentWorkingDirectory, | 23 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetCurrentWorkingDirectory, |
16 FilePath /* current_working_directory */) | 24 FilePath /* current_working_directory */) |
17 | 25 |
18 // Tells the render view to capture a text dump of the page. The render view | 26 // Tells the render view to capture a text dump of the page. The render view |
19 // responds with a ShellViewHostMsg_TextDump. | 27 // responds with a ShellViewHostMsg_TextDump. |
20 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, | 28 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, |
21 bool /* as_text */, | 29 bool /* as_text */, |
22 bool /* printing */, | 30 bool /* printing */, |
23 bool /* recursive */) | 31 bool /* recursive */) |
(...skipping 28 matching lines...) Expand all Loading... |
52 | 60 |
53 // The following messages correspond to methods of the testRunner. | 61 // The following messages correspond to methods of the testRunner. |
54 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) | 62 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) |
55 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) | 63 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) |
56 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) | 64 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) |
57 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) | 65 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) |
58 IPC_MESSAGE_ROUTED1( | 66 IPC_MESSAGE_ROUTED1( |
59 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, | 67 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, |
60 bool /* should_stay_on_page */) | 68 bool /* should_stay_on_page */) |
61 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) | 69 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) |
| 70 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_OverridePreferences, |
| 71 content::ShellWebPreferences /* preferences */) |
62 | 72 |
63 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, | 73 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, |
64 std::string /* object_name */, | 74 std::string /* object_name */, |
65 std::string /* property_name */) | 75 std::string /* property_name */) |
OLD | NEW |