Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common_param_traits.h" | 10 #include "content/common/common_param_traits.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/page_transition_types.h" | 14 #include "content/common/page_transition_types.h" |
| 15 #include "content/common/page_zoom.h" | 15 #include "content/common/page_zoom.h" |
| 16 #include "content/common/renderer_preferences.h" | 16 #include "content/common/renderer_preferences.h" |
| 17 #include "content/common/webkit_param_traits.h" | 17 #include "content/common/webkit_param_traits.h" |
| 18 #include "content/common/window_container_type.h" | 18 #include "content/common/window_container_type.h" |
| 19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 20 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
| 21 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" | 27 #include "ui/base/ime/text_input_type.h" |
| 28 #include "ui/base/range/range.h" | 28 #include "ui/base/range/range.h" |
| 29 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
| 30 #include "webkit/glue/context_menu.h" | 30 #include "webkit/glue/context_menu.h" |
| 31 #include "webkit/glue/password_form.h" | 31 #include "webkit/glue/password_form.h" |
| 32 #include "webkit/glue/webcookie.h" | 32 #include "webkit/glue/webcookie.h" |
| 33 #include "webkit/glue/webmenuitem.h" | 33 #include "webkit/glue/webmenuitem.h" |
| 34 #include "webkit/glue/webpreferences.h" | 34 #include "webkit/glue/webpreferences.h" |
| 35 #include "webkit/glue/webaccessibility.h" | 35 #include "webkit/glue/webaccessibility.h" |
| 36 #include "webkit/plugins/npapi/webplugin.h" | 36 #include "webkit/plugins/npapi/webplugin.h" |
| 37 #include "webkit/plugins/npapi/webplugininfo.h" | 37 #include "webkit/plugins/npapi/webplugininfo.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 IPC_ENUM_TRAITS(PageZoom::Function) | 157 IPC_ENUM_TRAITS(PageZoom::Function) |
| 158 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) | 158 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) |
| 159 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) | 159 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) |
| 160 IPC_ENUM_TRAITS(ViewHostMsg_AccessibilityNotification_Type::Value) | 160 IPC_ENUM_TRAITS(ViewHostMsg_AccessibilityNotification_Type::Value) |
| 161 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) | 161 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) |
| 162 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 162 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
| 163 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) | 163 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) |
| 164 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 164 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
| 165 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 165 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
| 166 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 166 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
| 167 IPC_ENUM_TRAITS(WebKit::WebTextInputType) | 167 IPC_ENUM_TRAITS(ui::TextInputType) |
| 168 IPC_ENUM_TRAITS(ui::TextInputPreeditType) | |
| 168 IPC_ENUM_TRAITS(WebMenuItem::Type) | 169 IPC_ENUM_TRAITS(WebMenuItem::Type) |
| 169 IPC_ENUM_TRAITS(WindowContainerType) | 170 IPC_ENUM_TRAITS(WindowContainerType) |
| 170 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) | 171 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) |
| 171 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) | 172 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) |
| 172 | 173 |
| 173 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) | 174 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) |
| 174 IPC_STRUCT_TRAITS_MEMBER(media_type) | 175 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| 175 IPC_STRUCT_TRAITS_MEMBER(x) | 176 IPC_STRUCT_TRAITS_MEMBER(x) |
| 176 IPC_STRUCT_TRAITS_MEMBER(y) | 177 IPC_STRUCT_TRAITS_MEMBER(y) |
| 177 IPC_STRUCT_TRAITS_MEMBER(link_url) | 178 IPC_STRUCT_TRAITS_MEMBER(link_url) |
| (...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1688 bool /* reverse */) | 1689 bool /* reverse */) |
| 1689 | 1690 |
| 1690 // Returns the window location of the window this widget is embeded. | 1691 // Returns the window location of the window this widget is embeded. |
| 1691 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1692 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
| 1692 // HWND so that we can eliminate the NativeViewId parameter. | 1693 // HWND so that we can eliminate the NativeViewId parameter. |
| 1693 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, | 1694 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, |
| 1694 gfx::NativeViewId /* window */, | 1695 gfx::NativeViewId /* window */, |
| 1695 gfx::Rect /* Out: Window location */) | 1696 gfx::Rect /* Out: Window location */) |
| 1696 | 1697 |
| 1697 // Required for updating text input state. | 1698 // Required for updating text input state. |
| 1698 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, | 1699 IPC_MESSAGE_ROUTED3(ViewHostMsg_ImeUpdateTextInputState, |
| 1699 WebKit::WebTextInputType, /* text_input_type */ | 1700 ui::TextInputType, /* text_input_type */ |
| 1701 ui::TextInputPreeditType, /* preedit_type */ | |
|
James Su
2011/06/13 01:31:10
How about to use a bool flag instead?
kinaba
2011/06/13 08:08:05
Done.
| |
| 1700 gfx::Rect /* caret_rect */) | 1702 gfx::Rect /* caret_rect */) |
| 1701 | 1703 |
| 1702 | 1704 |
| 1703 // Message sent when the IME text composition range changes. | 1705 // Message sent when the IME text composition range changes. |
| 1704 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged, | 1706 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged, |
| 1705 ui::Range /* composition range */) | 1707 ui::Range /* composition range */) |
| 1706 | 1708 |
| 1707 // Required for cancelling an ongoing input method composition. | 1709 // Required for cancelling an ongoing input method composition. |
| 1708 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1710 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
| 1709 | 1711 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1956 | 1958 |
| 1957 // Send back a string to be recorded by UserMetrics. | 1959 // Send back a string to be recorded by UserMetrics. |
| 1958 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1960 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
| 1959 std::string /* action */) | 1961 std::string /* action */) |
| 1960 | 1962 |
| 1961 // Provide the browser process with current renderer framerate. | 1963 // Provide the browser process with current renderer framerate. |
| 1962 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, | 1964 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, |
| 1963 int /* routing id */, | 1965 int /* routing id */, |
| 1964 float /* frames per second */) | 1966 float /* frames per second */) |
| 1965 | 1967 |
| OLD | NEW |