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

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 ShowTopControls into UpdateTopControlsState, use new TopControlsState enum in plumbing, gener… Created 7 years, 7 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"
11 #include "cc/input/top_controls_state.h"
11 #include "cc/output/compositor_frame.h" 12 #include "cc/output/compositor_frame.h"
12 #include "cc/output/compositor_frame_ack.h" 13 #include "cc/output/compositor_frame_ack.h"
13 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
14 #include "content/common/content_param_traits.h" 15 #include "content/common/content_param_traits.h"
15 #include "content/common/navigation_gesture.h" 16 #include "content/common/navigation_gesture.h"
16 #include "content/common/pepper_renderer_instance_data.h" 17 #include "content/common/pepper_renderer_instance_data.h"
17 #include "content/common/view_message_enums.h" 18 #include "content/common/view_message_enums.h"
18 #include "content/port/common/input_event_ack_state.h" 19 #include "content/port/common/input_event_ack_state.h"
19 #include "content/public/common/common_param_traits.h" 20 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/context_menu_params.h" 21 #include "content/public/common/context_menu_params.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 67
67 IPC_ENUM_TRAITS(AccessibilityMode) 68 IPC_ENUM_TRAITS(AccessibilityMode)
68 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 69 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
69 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 70 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
70 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 71 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
71 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) 72 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type)
72 IPC_ENUM_TRAITS(WebKit::WebPopupType) 73 IPC_ENUM_TRAITS(WebKit::WebPopupType)
73 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 74 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
74 IPC_ENUM_TRAITS(WebMenuItem::Type) 75 IPC_ENUM_TRAITS(WebMenuItem::Type)
75 IPC_ENUM_TRAITS(WindowContainerType) 76 IPC_ENUM_TRAITS(WindowContainerType)
77 IPC_ENUM_TRAITS(cc::TopControlsState)
76 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 78 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
77 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 79 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
78 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 80 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
79 IPC_ENUM_TRAITS(content::NavigationGesture) 81 IPC_ENUM_TRAITS(content::NavigationGesture)
80 IPC_ENUM_TRAITS(content::PageZoom) 82 IPC_ENUM_TRAITS(content::PageZoom)
81 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 83 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
82 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 84 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
83 IPC_ENUM_TRAITS(content::StopFindAction) 85 IPC_ENUM_TRAITS(content::StopFindAction)
84 IPC_ENUM_TRAITS(content::ThreeDAPIType) 86 IPC_ENUM_TRAITS(content::ThreeDAPIType)
85 IPC_ENUM_TRAITS(media::ChannelLayout) 87 IPC_ENUM_TRAITS(media::ChannelLayout)
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 std::vector<int> /* selected indices */) 1263 std::vector<int> /* selected indices */)
1262 1264
1263 // Tells the renderer to try to revert to the zoom level we were at before 1265 // Tells the renderer to try to revert to the zoom level we were at before
1264 // ViewMsg_ScrollFocusedEditableNodeIntoView was called. 1266 // ViewMsg_ScrollFocusedEditableNodeIntoView was called.
1265 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView) 1267 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView)
1266 1268
1267 // This message relays the beginning or end of a batch event in the IME. 1269 // This message relays the beginning or end of a batch event in the IME.
1268 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged, 1270 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged,
1269 bool /* is_begin */) 1271 bool /* is_begin */)
1270 1272
1271 // Notifies the renderer whether hiding/showing the top controls is enabled 1273 // Notifies the renderer whether hiding/showing the top controls is enabled,
1272 // and whether or not to animate to the proper state. 1274 // what the current state should be, and whether or not to animate to the
1275 // proper state.
1273 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, 1276 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
1274 bool /* enable_hiding */, 1277 cc::TopControlsState /* constraints */,
1275 bool /* enable_showing */, 1278 cc::TopControlsState /* current */,
1276 bool /* animate */) 1279 bool /* animate */)
1277 1280
1278 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 1281 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
1279 1282
1280 // Sent by the browser when the display vsync signal was triggered and the 1283 // Sent by the browser when the display vsync signal was triggered and the
1281 // renderer should generate a new frame. 1284 // renderer should generate a new frame.
1282 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync, 1285 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync,
1283 base::TimeTicks /* frame_time */) 1286 base::TimeTicks /* frame_time */)
1284 1287
1285 #elif defined(OS_MACOSX) 1288 #elif defined(OS_MACOSX)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can 1414 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1412 // throttle these messages. 1415 // throttle these messages.
1413 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) 1416 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
1414 1417
1415 // Sent by the renderer process to request that the browser move the view. 1418 // Sent by the renderer process to request that the browser move the view.
1416 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and 1419 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1417 // the browser may ignore this message. 1420 // the browser may ignore this message.
1418 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, 1421 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1419 gfx::Rect /* position */) 1422 gfx::Rect /* position */)
1420 1423
1424 // Sent by the renderer process to notify the browser that the web page has
1425 // programmatically scrolled.
1426 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidProgrammaticallyScroll,
1427 gfx::Point /* scroll_point */)
aelias_OOO_until_Jul13 2013/05/02 18:44:23 Let's change this to gfx::Vector2d (and likewise e
Michael van Ouwerkerk 2013/05/08 16:21:15 Done.
1428
1421 // Notifies the browser that a frame in the view has changed. This message 1429 // Notifies the browser that a frame in the view has changed. This message
1422 // has a lot of parameters and is packed/unpacked by functions defined in 1430 // has a lot of parameters and is packed/unpacked by functions defined in
1423 // render_messages.h. 1431 // render_messages.h.
1424 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, 1432 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
1425 ViewHostMsg_FrameNavigate_Params) 1433 ViewHostMsg_FrameNavigate_Params)
1426 1434
1427 // Used to tell the parent that the user right clicked on an area of the 1435 // Used to tell the parent that the user right clicked on an area of the
1428 // content area, and a context menu should be shown for it. The params 1436 // content area, and a context menu should be shown for it. The params
1429 // object contains information about the node(s) that were selected when the 1437 // object contains information about the node(s) that were selected when the
1430 // user right clicked. 1438 // user right clicked.
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2284 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2277 // for details. 2285 // for details.
2278 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2286 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2279 LOGFONT /* font_data */, 2287 LOGFONT /* font_data */,
2280 string16 /* characters */) 2288 string16 /* characters */)
2281 #endif 2289 #endif
2282 2290
2283 // Adding a new message? Stick to the sort order above: first platform 2291 // Adding a new message? Stick to the sort order above: first platform
2284 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2292 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2285 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2293 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698