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

Side by Side Diff: content/common/view_messages.h

Issue 10451047: content: Move javascript_message_type.h into content/ from ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm CONTEXT_EXPORT Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/css_colors.h" 11 #include "content/common/css_colors.h"
12 #include "content/common/edit_command.h" 12 #include "content/common/edit_command.h"
13 #include "content/common/navigation_gesture.h" 13 #include "content/common/navigation_gesture.h"
14 #include "content/common/view_message_enums.h" 14 #include "content/common/view_message_enums.h"
15 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
16 #include "content/public/common/context_menu_params.h" 16 #include "content/public/common/context_menu_params.h"
17 #include "content/public/common/file_chooser_params.h" 17 #include "content/public/common/file_chooser_params.h"
18 #include "content/public/common/frame_navigate_params.h" 18 #include "content/public/common/frame_navigate_params.h"
19 #include "content/public/common/javascript_message_type.h"
19 #include "content/public/common/page_zoom.h" 20 #include "content/public/common/page_zoom.h"
20 #include "content/public/common/referrer.h" 21 #include "content/public/common/referrer.h"
21 #include "content/public/common/renderer_preferences.h" 22 #include "content/public/common/renderer_preferences.h"
22 #include "content/public/common/selected_file_info.h" 23 #include "content/public/common/selected_file_info.h"
23 #include "content/public/common/stop_find_action.h" 24 #include "content/public/common/stop_find_action.h"
24 #include "content/public/common/webkit_param_traits.h" 25 #include "content/public/common/webkit_param_traits.h"
25 #include "content/public/common/window_container_type.h" 26 #include "content/public/common/window_container_type.h"
26 #include "ipc/ipc_channel_handle.h" 27 #include "ipc/ipc_channel_handle.h"
27 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
28 #include "ipc/ipc_platform_file.h" 29 #include "ipc/ipc_platform_file.h"
29 #include "media/base/channel_layout.h" 30 #include "media/base/channel_layout.h"
30 #include "media/base/media_log_event.h" 31 #include "media/base/media_log_event.h"
31 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
39 #include "ui/base/ime/text_input_type.h" 40 #include "ui/base/ime/text_input_type.h"
40 #include "ui/base/javascript_message_type.h"
41 #include "ui/base/range/range.h" 41 #include "ui/base/range/range.h"
42 #include "ui/gfx/point.h" 42 #include "ui/gfx/point.h"
43 #include "ui/gfx/rect.h" 43 #include "ui/gfx/rect.h"
44 #include "webkit/glue/webcookie.h" 44 #include "webkit/glue/webcookie.h"
45 #include "webkit/glue/webmenuitem.h" 45 #include "webkit/glue/webmenuitem.h"
46 #include "webkit/glue/webpreferences.h" 46 #include "webkit/glue/webpreferences.h"
47 #include "webkit/plugins/npapi/webplugin.h" 47 #include "webkit/plugins/npapi/webplugin.h"
48 48
49 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
50 #include "content/common/mac/font_descriptor.h" 50 #include "content/common/mac/font_descriptor.h"
51 #endif 51 #endif
52 52
53 #undef IPC_MESSAGE_EXPORT 53 #undef IPC_MESSAGE_EXPORT
54 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 54 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
55 55
56 #define IPC_MESSAGE_START ViewMsgStart 56 #define IPC_MESSAGE_START ViewMsgStart
57 57
58 IPC_ENUM_TRAITS(ChannelLayout) 58 IPC_ENUM_TRAITS(ChannelLayout)
59 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 59 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
60 IPC_ENUM_TRAITS(NavigationGesture) 60 IPC_ENUM_TRAITS(NavigationGesture)
61 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 61 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
62 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 62 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
63 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 63 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
64 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) 64 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type)
65 IPC_ENUM_TRAITS(WebKit::WebPopupType) 65 IPC_ENUM_TRAITS(WebKit::WebPopupType)
66 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 66 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
67 IPC_ENUM_TRAITS(WebMenuItem::Type) 67 IPC_ENUM_TRAITS(WebMenuItem::Type)
68 IPC_ENUM_TRAITS(WindowContainerType) 68 IPC_ENUM_TRAITS(WindowContainerType)
69 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 69 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
70 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
70 IPC_ENUM_TRAITS(content::PageZoom) 71 IPC_ENUM_TRAITS(content::PageZoom)
71 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 72 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
72 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 73 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
73 IPC_ENUM_TRAITS(content::StopFindAction) 74 IPC_ENUM_TRAITS(content::StopFindAction)
74 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 75 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
75 IPC_ENUM_TRAITS(ui::TextInputType) 76 IPC_ENUM_TRAITS(ui::TextInputType)
76 IPC_ENUM_TRAITS(ui::JavascriptMessageType)
77 77
78 IPC_STRUCT_TRAITS_BEGIN(EditCommand) 78 IPC_STRUCT_TRAITS_BEGIN(EditCommand)
79 IPC_STRUCT_TRAITS_MEMBER(name) 79 IPC_STRUCT_TRAITS_MEMBER(name)
80 IPC_STRUCT_TRAITS_MEMBER(value) 80 IPC_STRUCT_TRAITS_MEMBER(value)
81 IPC_STRUCT_TRAITS_END() 81 IPC_STRUCT_TRAITS_END()
82 82
83 #if defined(OS_MACOSX) 83 #if defined(OS_MACOSX)
84 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 84 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
85 IPC_STRUCT_TRAITS_MEMBER(font_name) 85 IPC_STRUCT_TRAITS_MEMBER(font_name)
86 IPC_STRUCT_TRAITS_MEMBER(font_point_size) 86 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 1666
1667 // Sent to the browser from an inactive renderer to post a message to the 1667 // Sent to the browser from an inactive renderer to post a message to the
1668 // active renderer. 1668 // active renderer.
1669 IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent, 1669 IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent,
1670 ViewMsg_PostMessage_Params) 1670 ViewMsg_PostMessage_Params)
1671 1671
1672 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, 1672 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage,
1673 string16 /* in - alert message */, 1673 string16 /* in - alert message */,
1674 string16 /* in - default prompt */, 1674 string16 /* in - default prompt */,
1675 GURL /* in - originating page URL */, 1675 GURL /* in - originating page URL */,
1676 ui::JavascriptMessageType /* in - type */, 1676 content::JavaScriptMessageType /* in - type */,
1677 bool /* out - success */, 1677 bool /* out - success */,
1678 string16 /* out - user_input field */) 1678 string16 /* out - user_input field */)
1679 1679
1680 // Requests that the given URL be opened in the specified manner. 1680 // Requests that the given URL be opened in the specified manner.
1681 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, 1681 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL,
1682 GURL /* url */, 1682 GURL /* url */,
1683 content::Referrer /* referrer */, 1683 content::Referrer /* referrer */,
1684 WindowOpenDisposition /* disposition */, 1684 WindowOpenDisposition /* disposition */,
1685 int64 /* frame id */) 1685 int64 /* frame id */)
1686 1686
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 // (according to the value of is_hung). The browser can give the user the 2082 // (according to the value of is_hung). The browser can give the user the
2083 // option of killing the plugin. 2083 // option of killing the plugin.
2084 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2084 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2085 int /* plugin_child_id */, 2085 int /* plugin_child_id */,
2086 FilePath /* path */, 2086 FilePath /* path */,
2087 bool /* is_hung */) 2087 bool /* is_hung */)
2088 2088
2089 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2089 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2090 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2090 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2091 int /* orientation */) 2091 int /* orientation */)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698