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

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

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge after sync. Created 7 years, 8 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
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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged, 1359 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged,
1360 bool /* is_begin */) 1360 bool /* is_begin */)
1361 1361
1362 // Notifies the renderer whether hiding/showing the top controls is enabled 1362 // Notifies the renderer whether hiding/showing the top controls is enabled
1363 // and whether or not to animate to the proper state. 1363 // and whether or not to animate to the proper state.
1364 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, 1364 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
1365 bool /* enable_hiding */, 1365 bool /* enable_hiding */,
1366 bool /* enable_showing */, 1366 bool /* enable_showing */,
1367 bool /* animate */) 1367 bool /* animate */)
1368 1368
1369 // Tells the renderer to show or hide the top controls.
1370 IPC_MESSAGE_ROUTED1(ViewMsg_ShowTopControls, bool /* show */)
jam 2013/04/17 16:24:59 i'm not familiar what top controls are? is this a
Michael van Ouwerkerk 2013/04/18 18:11:38 It's the piece of browser ui at the top that inclu
jam 2013/04/19 18:30:22 I see. it seems like a layering violation that thi
1371
1369 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 1372 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
1370 1373
1371 #elif defined(OS_MACOSX) 1374 #elif defined(OS_MACOSX)
1372 // Let the RenderView know its window has changed visibility. 1375 // Let the RenderView know its window has changed visibility.
1373 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, 1376 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
1374 bool /* visibile */) 1377 bool /* visibile */)
1375 1378
1376 // Let the RenderView know its window's frame has changed. 1379 // Let the RenderView know its window's frame has changed.
1377 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, 1380 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
1378 gfx::Rect /* window frame */, 1381 gfx::Rect /* window frame */,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can 1504 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1502 // throttle these messages. 1505 // throttle these messages.
1503 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) 1506 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
1504 1507
1505 // Sent by the renderer process to request that the browser move the view. 1508 // Sent by the renderer process to request that the browser move the view.
1506 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and 1509 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1507 // the browser may ignore this message. 1510 // the browser may ignore this message.
1508 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, 1511 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1509 gfx::Rect /* position */) 1512 gfx::Rect /* position */)
1510 1513
1514 // Sent by the renderer process to notify the browser that the web page has
1515 // programmatically scrolled.
1516 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidProgrammaticallyScroll,
1517 gfx::Point /* scroll point */)
jam 2013/04/17 16:24:59 nit: convention is that the comment holds the para
Michael van Ouwerkerk 2013/04/18 18:11:38 Done.
1518
1511 // Notifies the browser that a frame in the view has changed. This message 1519 // Notifies the browser that a frame in the view has changed. This message
1512 // has a lot of parameters and is packed/unpacked by functions defined in 1520 // has a lot of parameters and is packed/unpacked by functions defined in
1513 // render_messages.h. 1521 // render_messages.h.
1514 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, 1522 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
1515 ViewHostMsg_FrameNavigate_Params) 1523 ViewHostMsg_FrameNavigate_Params)
1516 1524
1517 // Used to tell the parent that the user right clicked on an area of the 1525 // Used to tell the parent that the user right clicked on an area of the
1518 // content area, and a context menu should be shown for it. The params 1526 // content area, and a context menu should be shown for it. The params
1519 // object contains information about the node(s) that were selected when the 1527 // object contains information about the node(s) that were selected when the
1520 // user right clicked. 1528 // user right clicked.
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2408 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2401 // for details. 2409 // for details.
2402 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2410 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2403 LOGFONT /* font_data */, 2411 LOGFONT /* font_data */,
2404 string16 /* characters */) 2412 string16 /* characters */)
2405 #endif 2413 #endif
2406 2414
2407 // Adding a new message? Stick to the sort order above: first platform 2415 // Adding a new message? Stick to the sort order above: first platform
2408 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2416 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2409 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2417 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698