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 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 | 1946 |
1947 // Send the tooltip text for the current mouse position to the browser. | 1947 // Send the tooltip text for the current mouse position to the browser. |
1948 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1948 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
1949 base::string16 /* tooltip text string */, | 1949 base::string16 /* tooltip text string */, |
1950 blink::WebTextDirection /* text direction hint */) | 1950 blink::WebTextDirection /* text direction hint */) |
1951 | 1951 |
1952 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK) | 1952 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK) |
1953 IPC_MESSAGE_ROUTED0(ViewHostMsg_MoveCaret_ACK) | 1953 IPC_MESSAGE_ROUTED0(ViewHostMsg_MoveCaret_ACK) |
1954 | 1954 |
1955 // Notification that the text selection has changed. | 1955 // Notification that the text selection has changed. |
1956 // Note: The secound parameter is the character based offset of the string16 | 1956 // Note: The secound parameter is the character based offset of the |
| 1957 // base::string16 |
1957 // text in the document. | 1958 // text in the document. |
1958 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1959 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
1959 base::string16 /* text covers the selection range */, | 1960 base::string16 /* text covers the selection range */, |
1960 size_t /* the offset of the text in the document */, | 1961 size_t /* the offset of the text in the document */, |
1961 gfx::Range /* selection range in the document */) | 1962 gfx::Range /* selection range in the document */) |
1962 | 1963 |
1963 // Notification that the selection bounds have changed. | 1964 // Notification that the selection bounds have changed. |
1964 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, | 1965 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, |
1965 ViewHostMsg_SelectionBounds_Params) | 1966 ViewHostMsg_SelectionBounds_Params) |
1966 | 1967 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 // display events. If |enabled| is true, the BeginFrame message will continue | 2302 // display events. If |enabled| is true, the BeginFrame message will continue |
2302 // to be be delivered until the notification is disabled. | 2303 // to be be delivered until the notification is disabled. |
2303 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 2304 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
2304 bool /* enabled */) | 2305 bool /* enabled */) |
2305 | 2306 |
2306 // Reply to the ViewMsg_ExtractSmartClipData message. | 2307 // Reply to the ViewMsg_ExtractSmartClipData message. |
2307 // TODO(juhui24.lee@samsung.com): this should be changed to a vector of structs | 2308 // TODO(juhui24.lee@samsung.com): this should be changed to a vector of structs |
2308 // instead of encoding the data as a string which is not allowed normally. Since | 2309 // instead of encoding the data as a string which is not allowed normally. Since |
2309 // ths is only used in Android WebView, it's allowed temporarily. | 2310 // ths is only used in Android WebView, it's allowed temporarily. |
2310 // http://crbug.com/330872 | 2311 // http://crbug.com/330872 |
2311 IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, | 2312 IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, base::string16) |
2312 string16) | |
2313 | 2313 |
2314 #elif defined(OS_MACOSX) | 2314 #elif defined(OS_MACOSX) |
2315 // Request that the browser load a font into shared memory for us. | 2315 // Request that the browser load a font into shared memory for us. |
2316 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2316 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
2317 FontDescriptor /* font to load */, | 2317 FontDescriptor /* font to load */, |
2318 uint32 /* buffer size */, | 2318 uint32 /* buffer size */, |
2319 base::SharedMemoryHandle /* font data */, | 2319 base::SharedMemoryHandle /* font data */, |
2320 uint32 /* font id */) | 2320 uint32 /* font id */) |
2321 | 2321 |
2322 // Informs the browser that a plugin has gained or lost focus. | 2322 // Informs the browser that a plugin has gained or lost focus. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 // synchronously (see crbug.com/120597). This IPC message sends the character | 2362 // synchronously (see crbug.com/120597). This IPC message sends the character |
2363 // bounds after every composition change to always have correct bound info. | 2363 // bounds after every composition change to always have correct bound info. |
2364 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2364 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2365 gfx::Range /* composition range */, | 2365 gfx::Range /* composition range */, |
2366 std::vector<gfx::Rect> /* character bounds */) | 2366 std::vector<gfx::Rect> /* character bounds */) |
2367 #endif | 2367 #endif |
2368 | 2368 |
2369 // Adding a new message? Stick to the sort order above: first platform | 2369 // Adding a new message? Stick to the sort order above: first platform |
2370 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2370 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2371 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2371 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |