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

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

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Route requestHideTopControls through browser. Created 7 years, 9 months 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 | Annotate | Revision Log
OLDNEW
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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView) 1348 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView)
1349 1349
1350 // This message relays the beginning or end of a batch event in the IME. 1350 // This message relays the beginning or end of a batch event in the IME.
1351 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged, 1351 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged,
1352 bool /* is_begin */) 1352 bool /* is_begin */)
1353 1353
1354 // Notifies the renderer whether hiding the top controls is enabled. 1354 // Notifies the renderer whether hiding the top controls is enabled.
1355 IPC_MESSAGE_ROUTED1(ViewMsg_EnableHidingTopControls, 1355 IPC_MESSAGE_ROUTED1(ViewMsg_EnableHidingTopControls,
1356 bool /* enable */) 1356 bool /* enable */)
1357 1357
1358 // Tells the renderer to show or hide the top controls.
1359 IPC_MESSAGE_ROUTED1(ViewMsg_ShowTopControls, bool /* show */)
1360
1358 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 1361 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
1359 1362
1360 #elif defined(OS_MACOSX) 1363 #elif defined(OS_MACOSX)
1361 // Let the RenderView know its window has changed visibility. 1364 // Let the RenderView know its window has changed visibility.
1362 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, 1365 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
1363 bool /* visibile */) 1366 bool /* visibile */)
1364 1367
1365 // Let the RenderView know its window's frame has changed. 1368 // Let the RenderView know its window's frame has changed.
1366 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, 1369 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
1367 gfx::Rect /* window frame */, 1370 gfx::Rect /* window frame */,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can 1485 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1483 // throttle these messages. 1486 // throttle these messages.
1484 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) 1487 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
1485 1488
1486 // Sent by the renderer process to request that the browser move the view. 1489 // Sent by the renderer process to request that the browser move the view.
1487 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and 1490 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1488 // the browser may ignore this message. 1491 // the browser may ignore this message.
1489 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, 1492 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1490 gfx::Rect /* position */) 1493 gfx::Rect /* position */)
1491 1494
1495 // Sent by the renderer process to notify the browser that the web page has
1496 // hidden the URL bar programmatically by means of a scroll.
1497 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestShowTopControls, bool /* show */);
1498
1492 // Notifies the browser that a frame in the view has changed. This message 1499 // Notifies the browser that a frame in the view has changed. This message
1493 // has a lot of parameters and is packed/unpacked by functions defined in 1500 // has a lot of parameters and is packed/unpacked by functions defined in
1494 // render_messages.h. 1501 // render_messages.h.
1495 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, 1502 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
1496 ViewHostMsg_FrameNavigate_Params) 1503 ViewHostMsg_FrameNavigate_Params)
1497 1504
1498 // Used to tell the parent that the user right clicked on an area of the 1505 // Used to tell the parent that the user right clicked on an area of the
1499 // content area, and a context menu should be shown for it. The params 1506 // content area, and a context menu should be shown for it. The params
1500 // object contains information about the node(s) that were selected when the 1507 // object contains information about the node(s) that were selected when the
1501 // user right clicked. 1508 // user right clicked.
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2373 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2367 // for details. 2374 // for details.
2368 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2375 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2369 LOGFONT /* font_data */, 2376 LOGFONT /* font_data */,
2370 string16 /* characters */) 2377 string16 /* characters */)
2371 #endif 2378 #endif
2372 2379
2373 // Adding a new message? Stick to the sort order above: first platform 2380 // Adding a new message? Stick to the sort order above: first platform
2374 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2381 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2375 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2382 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698