Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: content/common/frame_messages.h

Issue 2445193005: Route setHasReceivedUserGesture() state for RemoteFrames (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 #endif // defined(ENABLE_PLUGINS) 909 #endif // defined(ENABLE_PLUGINS)
910 910
911 // Used to instruct the RenderFrame to go into "view source" mode. This should 911 // Used to instruct the RenderFrame to go into "view source" mode. This should
912 // only be sent to the main frame. 912 // only be sent to the main frame.
913 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) 913 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode)
914 914
915 // Tells the frame to suppress any further modal dialogs. This ensures that no 915 // Tells the frame to suppress any further modal dialogs. This ensures that no
916 // ScopedPageLoadDeferrer is on the stack for SwapOut. 916 // ScopedPageLoadDeferrer is on the stack for SwapOut.
917 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs) 917 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs)
918 918
919 // Tells the frame to consider itself to have received a user gesture (based
920 // on a user gesture proceed by a descendant).
921 IPC_MESSAGE_ROUTED0(FrameMsg_SetHasReceivedUserGesture)
922
919 IPC_MESSAGE_ROUTED1(FrameMsg_RunFileChooserResponse, 923 IPC_MESSAGE_ROUTED1(FrameMsg_RunFileChooserResponse,
920 std::vector<content::FileChooserFileInfo>) 924 std::vector<content::FileChooserFileInfo>)
921 925
922 // ----------------------------------------------------------------------------- 926 // -----------------------------------------------------------------------------
923 // Messages sent from the renderer to the browser. 927 // Messages sent from the renderer to the browser.
924 928
925 // Blink and JavaScript error messages to log to the console 929 // Blink and JavaScript error messages to log to the console
926 // or debugger UI. 930 // or debugger UI.
927 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 931 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
928 int32_t, /* log level */ 932 int32_t, /* log level */
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent, 1282 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent,
1279 IPC::WebInputEventPointer /* event */) 1283 IPC::WebInputEventPointer /* event */)
1280 1284
1281 // Tells the parent that a child's frame rect has changed (or the rect/scroll 1285 // Tells the parent that a child's frame rect has changed (or the rect/scroll
1282 // position of a child's ancestor has changed). 1286 // position of a child's ancestor has changed).
1283 IPC_MESSAGE_ROUTED1(FrameHostMsg_FrameRectChanged, gfx::Rect /* frame_rect */) 1287 IPC_MESSAGE_ROUTED1(FrameHostMsg_FrameRectChanged, gfx::Rect /* frame_rect */)
1284 1288
1285 // Informs the child that the frame has changed visibility. 1289 // Informs the child that the frame has changed visibility.
1286 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */) 1290 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */)
1287 1291
1292 // Indicates that a child of this frame recieved a user gesture, and this
1293 // frame should in turn consider itself to have received a user gesture.
1294 IPC_MESSAGE_ROUTED0(FrameHostMsg_SetHasReceivedUserGesture)
1295
1288 // Used to tell the parent that the user right clicked on an area of the 1296 // Used to tell the parent that the user right clicked on an area of the
1289 // content area, and a context menu should be shown for it. The params 1297 // content area, and a context menu should be shown for it. The params
1290 // object contains information about the node(s) that were selected when the 1298 // object contains information about the node(s) that were selected when the
1291 // user right clicked. 1299 // user right clicked.
1292 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) 1300 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
1293 1301
1294 // Notification that the text selection has changed. 1302 // Notification that the text selection has changed.
1295 // Note: The second parameter is the character based offset of the 1303 // Note: The second parameter is the character based offset of the
1296 // base::string16 text in the document. 1304 // base::string16 text in the document.
1297 IPC_MESSAGE_ROUTED3(FrameHostMsg_SelectionChanged, 1305 IPC_MESSAGE_ROUTED3(FrameHostMsg_SelectionChanged,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 // nearest find result in the sending frame. 1514 // nearest find result in the sending frame.
1507 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1515 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1508 int /* nfr_request_id */, 1516 int /* nfr_request_id */,
1509 float /* distance */) 1517 float /* distance */)
1510 #endif 1518 #endif
1511 1519
1512 // Adding a new message? Stick to the sort order above: first platform 1520 // Adding a new message? Stick to the sort order above: first platform
1513 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1521 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1514 // platform independent FrameHostMsg, then ifdefs for platform specific 1522 // platform independent FrameHostMsg, then ifdefs for platform specific
1515 // FrameHostMsg. 1523 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698