| 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 // 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
| 13 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
| 14 #include "content/common/browser_rendering_stats.h" | 14 #include "content/common/browser_rendering_stats.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
| 17 #include "content/common/cookie_data.h" | 17 #include "content/common/cookie_data.h" |
| 18 #include "content/common/navigation_gesture.h" | 18 #include "content/common/navigation_gesture.h" |
| 19 #include "content/common/pepper_renderer_instance_data.h" | 19 #include "content/common/pepper_renderer_instance_data.h" |
| 20 #include "content/common/view_message_enums.h" | 20 #include "content/common/view_message_enums.h" |
| 21 #include "content/common/webplugin_geometry.h" | 21 #include "content/common/webplugin_geometry.h" |
| 22 #include "content/port/common/input_event_ack_state.h" | 22 #include "content/port/common/input_event_ack_state.h" |
| 23 #include "content/public/common/color_suggestion.h" |
| 23 #include "content/public/common/common_param_traits.h" | 24 #include "content/public/common/common_param_traits.h" |
| 24 #include "content/public/common/context_menu_params.h" | 25 #include "content/public/common/context_menu_params.h" |
| 25 #include "content/public/common/favicon_url.h" | 26 #include "content/public/common/favicon_url.h" |
| 26 #include "content/public/common/file_chooser_params.h" | 27 #include "content/public/common/file_chooser_params.h" |
| 27 #include "content/public/common/frame_navigate_params.h" | 28 #include "content/public/common/frame_navigate_params.h" |
| 28 #include "content/public/common/javascript_message_type.h" | 29 #include "content/public/common/javascript_message_type.h" |
| 29 #include "content/public/common/menu_item.h" | 30 #include "content/public/common/menu_item.h" |
| 30 #include "content/public/common/page_state.h" | 31 #include "content/public/common/page_state.h" |
| 31 #include "content/public/common/page_zoom.h" | 32 #include "content/public/common/page_zoom.h" |
| 32 #include "content/public/common/referrer.h" | 33 #include "content/public/common/referrer.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 IPC_STRUCT_TRAITS_MEMBER(tool_tip) | 153 IPC_STRUCT_TRAITS_MEMBER(tool_tip) |
| 153 IPC_STRUCT_TRAITS_MEMBER(type) | 154 IPC_STRUCT_TRAITS_MEMBER(type) |
| 154 IPC_STRUCT_TRAITS_MEMBER(action) | 155 IPC_STRUCT_TRAITS_MEMBER(action) |
| 155 IPC_STRUCT_TRAITS_MEMBER(rtl) | 156 IPC_STRUCT_TRAITS_MEMBER(rtl) |
| 156 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) | 157 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) |
| 157 IPC_STRUCT_TRAITS_MEMBER(enabled) | 158 IPC_STRUCT_TRAITS_MEMBER(enabled) |
| 158 IPC_STRUCT_TRAITS_MEMBER(checked) | 159 IPC_STRUCT_TRAITS_MEMBER(checked) |
| 159 IPC_STRUCT_TRAITS_MEMBER(submenu) | 160 IPC_STRUCT_TRAITS_MEMBER(submenu) |
| 160 IPC_STRUCT_TRAITS_END() | 161 IPC_STRUCT_TRAITS_END() |
| 161 | 162 |
| 163 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| 164 IPC_STRUCT_TRAITS_MEMBER(color) |
| 165 IPC_STRUCT_TRAITS_MEMBER(label) |
| 166 IPC_STRUCT_TRAITS_END() |
| 167 |
| 162 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) | 168 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
| 163 IPC_STRUCT_TRAITS_MEMBER(media_type) | 169 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| 164 IPC_STRUCT_TRAITS_MEMBER(x) | 170 IPC_STRUCT_TRAITS_MEMBER(x) |
| 165 IPC_STRUCT_TRAITS_MEMBER(y) | 171 IPC_STRUCT_TRAITS_MEMBER(y) |
| 166 IPC_STRUCT_TRAITS_MEMBER(link_url) | 172 IPC_STRUCT_TRAITS_MEMBER(link_url) |
| 167 IPC_STRUCT_TRAITS_MEMBER(link_text) | 173 IPC_STRUCT_TRAITS_MEMBER(link_text) |
| 168 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) | 174 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) |
| 169 IPC_STRUCT_TRAITS_MEMBER(src_url) | 175 IPC_STRUCT_TRAITS_MEMBER(src_url) |
| 170 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) | 176 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) |
| 171 IPC_STRUCT_TRAITS_MEMBER(page_url) | 177 IPC_STRUCT_TRAITS_MEMBER(page_url) |
| (...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1965 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
| 1960 string16 /* text covers the selection range */, | 1966 string16 /* text covers the selection range */, |
| 1961 size_t /* the offset of the text in the document */, | 1967 size_t /* the offset of the text in the document */, |
| 1962 ui::Range /* selection range in the document */) | 1968 ui::Range /* selection range in the document */) |
| 1963 | 1969 |
| 1964 // Notification that the selection bounds have changed. | 1970 // Notification that the selection bounds have changed. |
| 1965 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, | 1971 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, |
| 1966 ViewHostMsg_SelectionBounds_Params) | 1972 ViewHostMsg_SelectionBounds_Params) |
| 1967 | 1973 |
| 1968 // Asks the browser to open the color chooser. | 1974 // Asks the browser to open the color chooser. |
| 1969 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser, | 1975 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenColorChooser, |
| 1970 int /* id */, | 1976 int /* id */, |
| 1971 SkColor /* color */) | 1977 SkColor /* color */, |
| 1978 std::vector<content::ColorSuggestion> /* suggestions */) |
| 1972 | 1979 |
| 1973 // Asks the browser to end the color chooser. | 1980 // Asks the browser to end the color chooser. |
| 1974 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */) | 1981 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */) |
| 1975 | 1982 |
| 1976 // Change the selected color in the color chooser. | 1983 // Change the selected color in the color chooser. |
| 1977 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser, | 1984 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser, |
| 1978 int /* id */, | 1985 int /* id */, |
| 1979 SkColor /* color */) | 1986 SkColor /* color */) |
| 1980 | 1987 |
| 1981 // Asks the browser to display the file chooser. The result is returned in a | 1988 // Asks the browser to display the file chooser. The result is returned in a |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 // synchronously (see crbug.com/120597). This IPC message sends the character | 2376 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2370 // bounds after every composition change to always have correct bound info. | 2377 // bounds after every composition change to always have correct bound info. |
| 2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2378 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2372 ui::Range /* composition range */, | 2379 ui::Range /* composition range */, |
| 2373 std::vector<gfx::Rect> /* character bounds */) | 2380 std::vector<gfx::Rect> /* character bounds */) |
| 2374 #endif | 2381 #endif |
| 2375 | 2382 |
| 2376 // Adding a new message? Stick to the sort order above: first platform | 2383 // Adding a new message? Stick to the sort order above: first platform |
| 2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2384 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2385 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |