OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "third_party/WebKit/public/platform/WebFocusType.h" | 44 #include "third_party/WebKit/public/platform/WebFocusType.h" |
45 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 45 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
46 #include "third_party/WebKit/public/web/WebFindOptions.h" | 46 #include "third_party/WebKit/public/web/WebFindOptions.h" |
47 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 47 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
48 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" | 48 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" |
49 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 49 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
50 #include "ui/gfx/geometry/rect.h" | 50 #include "ui/gfx/geometry/rect.h" |
51 #include "ui/gfx/geometry/rect_f.h" | 51 #include "ui/gfx/geometry/rect_f.h" |
52 #include "ui/gfx/ipc/gfx_param_traits.h" | 52 #include "ui/gfx/ipc/gfx_param_traits.h" |
53 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 53 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
| 54 #include "ui/gfx/range/range.h" |
54 #include "url/gurl.h" | 55 #include "url/gurl.h" |
55 #include "url/origin.h" | 56 #include "url/origin.h" |
56 | 57 |
57 #if defined(ENABLE_PLUGINS) | 58 #if defined(ENABLE_PLUGINS) |
58 #include "content/common/pepper_renderer_instance_data.h" | 59 #include "content/common/pepper_renderer_instance_data.h" |
59 #endif | 60 #endif |
60 | 61 |
61 // Singly-included section for type definitions. | 62 // Singly-included section for type definitions. |
62 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ | 63 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ |
63 #define CONTENT_COMMON_FRAME_MESSAGES_H_ | 64 #define CONTENT_COMMON_FRAME_MESSAGES_H_ |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 | 1283 |
1283 // Informs the child that the frame has changed visibility. | 1284 // Informs the child that the frame has changed visibility. |
1284 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */) | 1285 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */) |
1285 | 1286 |
1286 // Used to tell the parent that the user right clicked on an area of the | 1287 // Used to tell the parent that the user right clicked on an area of the |
1287 // content area, and a context menu should be shown for it. The params | 1288 // content area, and a context menu should be shown for it. The params |
1288 // object contains information about the node(s) that were selected when the | 1289 // object contains information about the node(s) that were selected when the |
1289 // user right clicked. | 1290 // user right clicked. |
1290 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) | 1291 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) |
1291 | 1292 |
| 1293 // Notification that the text selection has changed. |
| 1294 // Note: The second parameter is the character based offset of the |
| 1295 // base::string16 text in the document. |
| 1296 IPC_MESSAGE_ROUTED3(FrameHostMsg_SelectionChanged, |
| 1297 base::string16 /* text covers the selection range */, |
| 1298 uint32_t /* the offset of the text in the document */, |
| 1299 gfx::Range /* selection range in the document */) |
| 1300 |
1292 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was | 1301 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was |
1293 // requested. The ID is the parameter supplied to | 1302 // requested. The ID is the parameter supplied to |
1294 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the | 1303 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the |
1295 // script as its only element, one of Null, Boolean, Integer, Real, Date, or | 1304 // script as its only element, one of Null, Boolean, Integer, Real, Date, or |
1296 // String. | 1305 // String. |
1297 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, | 1306 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, |
1298 int /* id */, | 1307 int /* id */, |
1299 base::ListValue /* result */) | 1308 base::ListValue /* result */) |
1300 | 1309 |
1301 // A request to run a JavaScript dialog. | 1310 // A request to run a JavaScript dialog. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 // nearest find result in the sending frame. | 1505 // nearest find result in the sending frame. |
1497 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1506 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1498 int /* nfr_request_id */, | 1507 int /* nfr_request_id */, |
1499 float /* distance */) | 1508 float /* distance */) |
1500 #endif | 1509 #endif |
1501 | 1510 |
1502 // Adding a new message? Stick to the sort order above: first platform | 1511 // Adding a new message? Stick to the sort order above: first platform |
1503 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1512 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1504 // platform independent FrameHostMsg, then ifdefs for platform specific | 1513 // platform independent FrameHostMsg, then ifdefs for platform specific |
1505 // FrameHostMsg. | 1514 // FrameHostMsg. |
OLD | NEW |