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/common_param_traits.h" | 23 #include "content/public/common/common_param_traits.h" |
24 #include "content/public/common/context_menu_params.h" | 24 #include "content/public/common/context_menu_params.h" |
25 #include "content/public/common/date_time_suggestion.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" |
33 #include "content/public/common/renderer_preferences.h" | 34 #include "content/public/common/renderer_preferences.h" |
34 #include "content/public/common/stop_find_action.h" | 35 #include "content/public/common/stop_find_action.h" |
(...skipping 117 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::DateTimeSuggestion) | |
164 IPC_STRUCT_TRAITS_MEMBER(value) | |
165 IPC_STRUCT_TRAITS_MEMBER(localizedValue) | |
166 IPC_STRUCT_TRAITS_MEMBER(label) | |
167 IPC_STRUCT_TRAITS_END() | |
168 | |
162 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) | 169 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
163 IPC_STRUCT_TRAITS_MEMBER(media_type) | 170 IPC_STRUCT_TRAITS_MEMBER(media_type) |
164 IPC_STRUCT_TRAITS_MEMBER(x) | 171 IPC_STRUCT_TRAITS_MEMBER(x) |
165 IPC_STRUCT_TRAITS_MEMBER(y) | 172 IPC_STRUCT_TRAITS_MEMBER(y) |
166 IPC_STRUCT_TRAITS_MEMBER(link_url) | 173 IPC_STRUCT_TRAITS_MEMBER(link_url) |
167 IPC_STRUCT_TRAITS_MEMBER(link_text) | 174 IPC_STRUCT_TRAITS_MEMBER(link_text) |
168 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) | 175 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) |
169 IPC_STRUCT_TRAITS_MEMBER(src_url) | 176 IPC_STRUCT_TRAITS_MEMBER(src_url) |
170 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) | 177 IPC_STRUCT_TRAITS_MEMBER(has_image_contents) |
171 IPC_STRUCT_TRAITS_MEMBER(page_url) | 178 IPC_STRUCT_TRAITS_MEMBER(page_url) |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 IPC_STRUCT_MEMBER(int, month) | 400 IPC_STRUCT_MEMBER(int, month) |
394 IPC_STRUCT_MEMBER(int, day) | 401 IPC_STRUCT_MEMBER(int, day) |
395 IPC_STRUCT_MEMBER(int, hour) | 402 IPC_STRUCT_MEMBER(int, hour) |
396 IPC_STRUCT_MEMBER(int, minute) | 403 IPC_STRUCT_MEMBER(int, minute) |
397 IPC_STRUCT_MEMBER(int, second) | 404 IPC_STRUCT_MEMBER(int, second) |
398 IPC_STRUCT_MEMBER(int, milli) | 405 IPC_STRUCT_MEMBER(int, milli) |
399 IPC_STRUCT_MEMBER(int, week) | 406 IPC_STRUCT_MEMBER(int, week) |
400 IPC_STRUCT_MEMBER(double, minimum) | 407 IPC_STRUCT_MEMBER(double, minimum) |
401 IPC_STRUCT_MEMBER(double, maximum) | 408 IPC_STRUCT_MEMBER(double, maximum) |
402 IPC_STRUCT_MEMBER(double, step) | 409 IPC_STRUCT_MEMBER(double, step) |
410 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) | |
403 IPC_STRUCT_END() | 411 IPC_STRUCT_END() |
404 | 412 |
405 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) | 413 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
406 // The frame ID for the failure report. | 414 // The frame ID for the failure report. |
407 IPC_STRUCT_MEMBER(int64, frame_id) | 415 IPC_STRUCT_MEMBER(int64, frame_id) |
408 // True if this is the top-most frame. | 416 // True if this is the top-most frame. |
409 IPC_STRUCT_MEMBER(bool, is_main_frame) | 417 IPC_STRUCT_MEMBER(bool, is_main_frame) |
410 // Error code as reported in the DidFailProvisionalLoad callback. | 418 // Error code as reported in the DidFailProvisionalLoad callback. |
411 IPC_STRUCT_MEMBER(int, error_code) | 419 IPC_STRUCT_MEMBER(int, error_code) |
412 // An error message generated from the error_code. This can be an empty | 420 // An error message generated from the error_code. This can be an empty |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
750 | 758 |
751 // The origin of the source frame. | 759 // The origin of the source frame. |
752 IPC_STRUCT_MEMBER(string16, source_origin) | 760 IPC_STRUCT_MEMBER(string16, source_origin) |
753 | 761 |
754 // The origin for the message's target. | 762 // The origin for the message's target. |
755 IPC_STRUCT_MEMBER(string16, target_origin) | 763 IPC_STRUCT_MEMBER(string16, target_origin) |
756 IPC_STRUCT_END() | 764 IPC_STRUCT_END() |
757 | 765 |
758 // Messages sent from the browser to the renderer. | 766 // Messages sent from the browser to the renderer. |
759 | 767 |
768 // Sets the currently selected node's value to be the given data list value. | |
769 IPC_MESSAGE_ROUTED1(ViewMsg_AcceptDataListSuggestion, | |
Miguel Garcia
2013/10/08 17:44:40
I would not allow the suggestion to crop back, jus
keishi
2013/10/21 17:00:58
Removed, used ViewMsg_ReplaceDateTime
| |
770 base::string16 /* accepted data list value */) | |
771 | |
760 // Tells the renderer to cancel an opened date/time dialog. | 772 // Tells the renderer to cancel an opened date/time dialog. |
761 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 773 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
762 | 774 |
763 // Get all savable resource links from current webpage, include main | 775 // Get all savable resource links from current webpage, include main |
764 // frame and sub-frame. | 776 // frame and sub-frame. |
765 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, | 777 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, |
766 GURL /* url of page which is needed to save */) | 778 GURL /* url of page which is needed to save */) |
767 | 779 |
768 // Get html data by serializing all frames of current page with lists | 780 // Get html data by serializing all frames of current page with lists |
769 // which contain all resource links that have local copy. | 781 // which contain all resource links that have local copy. |
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2387 // synchronously (see crbug.com/120597). This IPC message sends the character | 2399 // synchronously (see crbug.com/120597). This IPC message sends the character |
2388 // bounds after every composition change to always have correct bound info. | 2400 // bounds after every composition change to always have correct bound info. |
2389 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2401 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2390 gfx::Range /* composition range */, | 2402 gfx::Range /* composition range */, |
2391 std::vector<gfx::Rect> /* character bounds */) | 2403 std::vector<gfx::Rect> /* character bounds */) |
2392 #endif | 2404 #endif |
2393 | 2405 |
2394 // Adding a new message? Stick to the sort order above: first platform | 2406 // Adding a new message? Stick to the sort order above: first platform |
2395 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2407 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2396 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2408 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |