| 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/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 // Whether or not inline composition can be performed for the current input. | 352 // Whether or not inline composition can be performed for the current input. |
| 353 IPC_STRUCT_MEMBER(bool, can_compose_inline) | 353 IPC_STRUCT_MEMBER(bool, can_compose_inline) |
| 354 | 354 |
| 355 // Whether or not the IME should be shown as a result of this update. Even if | 355 // Whether or not the IME should be shown as a result of this update. Even if |
| 356 // true, the IME will only be shown if the type is appropriate (e.g. not | 356 // true, the IME will only be shown if the type is appropriate (e.g. not |
| 357 // TEXT_INPUT_TYPE_NONE). | 357 // TEXT_INPUT_TYPE_NONE). |
| 358 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) | 358 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) |
| 359 IPC_STRUCT_END() | 359 IPC_STRUCT_END() |
| 360 | 360 |
| 361 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
| 362 IPC_STRUCT_MEMBER(int, dialog_type) |
| 363 IPC_STRUCT_MEMBER(int, year) |
| 364 IPC_STRUCT_MEMBER(int, month) |
| 365 IPC_STRUCT_MEMBER(int, day) |
| 366 IPC_STRUCT_MEMBER(int, hour) |
| 367 IPC_STRUCT_MEMBER(int, minute) |
| 368 IPC_STRUCT_MEMBER(int, second) |
| 369 IPC_STRUCT_END() |
| 370 |
| 361 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) | 371 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) |
| 362 // URL for the worker script. | 372 // URL for the worker script. |
| 363 IPC_STRUCT_MEMBER(GURL, url) | 373 IPC_STRUCT_MEMBER(GURL, url) |
| 364 | 374 |
| 365 // Name for a SharedWorker, otherwise empty string. | 375 // Name for a SharedWorker, otherwise empty string. |
| 366 IPC_STRUCT_MEMBER(string16, name) | 376 IPC_STRUCT_MEMBER(string16, name) |
| 367 | 377 |
| 368 // The ID of the parent document (unique within parent renderer). | 378 // The ID of the parent document (unique within parent renderer). |
| 369 IPC_STRUCT_MEMBER(unsigned long long, document_id) | 379 IPC_STRUCT_MEMBER(unsigned long long, document_id) |
| 370 | 380 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 IPC_MESSAGE_ROUTED0(ViewMsg_Paste) | 917 IPC_MESSAGE_ROUTED0(ViewMsg_Paste) |
| 908 IPC_MESSAGE_ROUTED0(ViewMsg_PasteAndMatchStyle) | 918 IPC_MESSAGE_ROUTED0(ViewMsg_PasteAndMatchStyle) |
| 909 // Replaces the selected region or a word around the cursor with the | 919 // Replaces the selected region or a word around the cursor with the |
| 910 // specified string. | 920 // specified string. |
| 911 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, | 921 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, |
| 912 string16) | 922 string16) |
| 913 IPC_MESSAGE_ROUTED0(ViewMsg_Delete) | 923 IPC_MESSAGE_ROUTED0(ViewMsg_Delete) |
| 914 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll) | 924 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll) |
| 915 | 925 |
| 916 // Replaces a date time input field. | 926 // Replaces a date time input field. |
| 917 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, string16 /* text */) | 927 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
| 928 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
| 918 | 929 |
| 919 IPC_MESSAGE_ROUTED0(ViewMsg_Unselect) | 930 IPC_MESSAGE_ROUTED0(ViewMsg_Unselect) |
| 920 | 931 |
| 921 // Requests the renderer to select the region between two points. | 932 // Requests the renderer to select the region between two points. |
| 922 // Expects a SelectRange_ACK message when finished. | 933 // Expects a SelectRange_ACK message when finished. |
| 923 IPC_MESSAGE_ROUTED2(ViewMsg_SelectRange, | 934 IPC_MESSAGE_ROUTED2(ViewMsg_SelectRange, |
| 924 gfx::Point /* start */, | 935 gfx::Point /* start */, |
| 925 gfx::Point /* end */) | 936 gfx::Point /* end */) |
| 926 | 937 |
| 927 // Requests the renderer to move the caret selection toward the point. | 938 // Requests the renderer to move the caret selection toward the point. |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1990 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| 1980 int /* request_id */, | 1991 int /* request_id */, |
| 1981 FilePath /* file_path */) | 1992 FilePath /* file_path */) |
| 1982 | 1993 |
| 1983 // Tells the browser to move the focus to the next (previous if reverse is | 1994 // Tells the browser to move the focus to the next (previous if reverse is |
| 1984 // true) focusable element. | 1995 // true) focusable element. |
| 1985 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1996 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
| 1986 bool /* reverse */) | 1997 bool /* reverse */) |
| 1987 | 1998 |
| 1988 // Required for opening a date/time dialog | 1999 // Required for opening a date/time dialog |
| 1989 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenDateTimeDialog, | 2000 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, |
| 1990 int /* type */, | 2001 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
| 1991 std::string /* value */) | |
| 1992 | 2002 |
| 1993 // Required for updating text input state. | 2003 // Required for updating text input state. |
| 1994 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 2004 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
| 1995 ViewHostMsg_TextInputState_Params /* input state params */) | 2005 ViewHostMsg_TextInputState_Params /* input state params */) |
| 1996 | 2006 |
| 1997 // Message sent when the IME text composition range changes. | 2007 // Message sent when the IME text composition range changes. |
| 1998 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2008 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1999 ui::Range /* composition range */, | 2009 ui::Range /* composition range */, |
| 2000 std::vector<gfx::Rect> /* character bounds */) | 2010 std::vector<gfx::Rect> /* character bounds */) |
| 2001 | 2011 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2384 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2375 // for details. | 2385 // for details. |
| 2376 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2386 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2377 LOGFONT /* font_data */, | 2387 LOGFONT /* font_data */, |
| 2378 string16 /* characters */) | 2388 string16 /* characters */) |
| 2379 #endif | 2389 #endif |
| 2380 | 2390 |
| 2381 // Notifies the browser that the frame with the given id was detached. | 2391 // Notifies the browser that the frame with the given id was detached. |
| 2382 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, | 2392 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, |
| 2383 int64 /* frame_id */) | 2393 int64 /* frame_id */) |
| OLD | NEW |