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" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, | 386 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, |
387 // a new unique ID is created and assigned to the worker. | 387 // a new unique ID is created and assigned to the worker. |
388 IPC_STRUCT_MEMBER(int, route_id) | 388 IPC_STRUCT_MEMBER(int, route_id) |
389 | 389 |
390 // The ID of the appcache the main shared worker script resource was loaded | 390 // The ID of the appcache the main shared worker script resource was loaded |
391 // from, only valid for shared workers. | 391 // from, only valid for shared workers. |
392 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) | 392 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) |
393 IPC_STRUCT_END() | 393 IPC_STRUCT_END() |
394 | 394 |
395 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 395 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
396 IPC_STRUCT_MEMBER(int, dialog_type) | 396 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
397 IPC_STRUCT_MEMBER(int, year) | 397 IPC_STRUCT_MEMBER(double, dialog_value) |
398 IPC_STRUCT_MEMBER(int, month) | |
399 IPC_STRUCT_MEMBER(int, day) | |
400 IPC_STRUCT_MEMBER(int, hour) | |
401 IPC_STRUCT_MEMBER(int, minute) | |
402 IPC_STRUCT_MEMBER(int, second) | |
403 IPC_STRUCT_MEMBER(int, milli) | |
404 IPC_STRUCT_MEMBER(int, week) | |
405 IPC_STRUCT_MEMBER(double, minimum) | 398 IPC_STRUCT_MEMBER(double, minimum) |
406 IPC_STRUCT_MEMBER(double, maximum) | 399 IPC_STRUCT_MEMBER(double, maximum) |
407 IPC_STRUCT_MEMBER(double, step) | 400 IPC_STRUCT_MEMBER(double, step) |
408 IPC_STRUCT_END() | 401 IPC_STRUCT_END() |
409 | 402 |
410 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) | 403 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
411 // The frame ID for the failure report. | 404 // The frame ID for the failure report. |
412 IPC_STRUCT_MEMBER(int64, frame_id) | 405 IPC_STRUCT_MEMBER(int64, frame_id) |
413 // The WebFrame's uniqueName(). | 406 // The WebFrame's uniqueName(). |
414 IPC_STRUCT_MEMBER(string16, frame_unique_name) | 407 IPC_STRUCT_MEMBER(string16, frame_unique_name) |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 // window (and what action to take regarding the selection). | 958 // window (and what action to take regarding the selection). |
966 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, | 959 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, |
967 content::StopFindAction /* action */) | 960 content::StopFindAction /* action */) |
968 | 961 |
969 // Informs the renderer about various statistics the browser has (e.g. | 962 // Informs the renderer about various statistics the browser has (e.g. |
970 // latency) regarding the frames that have been displayed. | 963 // latency) regarding the frames that have been displayed. |
971 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, | 964 IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats, |
972 content::BrowserRenderingStats /* stats */) | 965 content::BrowserRenderingStats /* stats */) |
973 | 966 |
974 // Replaces a date time input field. | 967 // Replaces a date time input field. |
975 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 968 IPC_MESSAGE_ROUTED2(ViewMsg_ReplaceDateTime, |
976 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 969 int /* identifier */, |
| 970 double /* dialog_value */) |
977 | 971 |
978 // Copies the image at location x, y to the clipboard (if there indeed is an | 972 // Copies the image at location x, y to the clipboard (if there indeed is an |
979 // image at that location). | 973 // image at that location). |
980 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 974 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
981 int /* x */, | 975 int /* x */, |
982 int /* y */) | 976 int /* y */) |
983 | 977 |
984 // Tells the renderer to perform the given action on the media player | 978 // Tells the renderer to perform the given action on the media player |
985 // located at the given point. | 979 // located at the given point. |
986 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 980 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 2011 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
2018 int /* request_id */, | 2012 int /* request_id */, |
2019 base::FilePath /* file_path */) | 2013 base::FilePath /* file_path */) |
2020 | 2014 |
2021 // Tells the browser to move the focus to the next (previous if reverse is | 2015 // Tells the browser to move the focus to the next (previous if reverse is |
2022 // true) focusable element. | 2016 // true) focusable element. |
2023 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 2017 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
2024 bool /* reverse */) | 2018 bool /* reverse */) |
2025 | 2019 |
2026 // Required for opening a date/time dialog | 2020 // Required for opening a date/time dialog |
2027 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 2021 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenDateTimeDialog, |
| 2022 int /* identifier */, |
2028 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 2023 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
2029 | 2024 |
2030 IPC_MESSAGE_ROUTED3(ViewHostMsg_TextInputTypeChanged, | 2025 IPC_MESSAGE_ROUTED3(ViewHostMsg_TextInputTypeChanged, |
2031 ui::TextInputType /* TextInputType of the focused node */, | 2026 ui::TextInputType /* TextInputType of the focused node */, |
2032 ui::TextInputMode /* TextInputMode of the focused node */, | 2027 ui::TextInputMode /* TextInputMode of the focused node */, |
2033 bool /* can_compose_inline in the focused node */) | 2028 bool /* can_compose_inline in the focused node */) |
2034 | 2029 |
2035 // Required for updating text input state. | 2030 // Required for updating text input state. |
2036 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 2031 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
2037 ViewHostMsg_TextInputState_Params /* input state params */) | 2032 ViewHostMsg_TextInputState_Params /* input state params */) |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2377 // synchronously (see crbug.com/120597). This IPC message sends the character | 2372 // synchronously (see crbug.com/120597). This IPC message sends the character |
2378 // bounds after every composition change to always have correct bound info. | 2373 // bounds after every composition change to always have correct bound info. |
2379 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2374 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2380 gfx::Range /* composition range */, | 2375 gfx::Range /* composition range */, |
2381 std::vector<gfx::Rect> /* character bounds */) | 2376 std::vector<gfx::Rect> /* character bounds */) |
2382 #endif | 2377 #endif |
2383 | 2378 |
2384 // Adding a new message? Stick to the sort order above: first platform | 2379 // Adding a new message? Stick to the sort order above: first platform |
2385 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2380 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2386 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2381 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |