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

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

Issue 12077046: Plumb an overscroll callback form the compositor to the Android UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // to a view and are only updated by the renderer after this initial value. 689 // to a view and are only updated by the renderer after this initial value.
690 IPC_STRUCT_MEMBER(int32, next_page_id) 690 IPC_STRUCT_MEMBER(int32, next_page_id)
691 691
692 // The properties of the screen associated with the view. 692 // The properties of the screen associated with the view.
693 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) 693 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info)
694 694
695 // The accessibility mode of the renderer. 695 // The accessibility mode of the renderer.
696 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) 696 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode)
697 IPC_STRUCT_END() 697 IPC_STRUCT_END()
698 698
699 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateFrameInfo_Params)
aelias_OOO_until_Jul13 2013/01/30 18:02:48 ViewHostMsg_UpdateFrameInfo is going to get delete
700 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset)
701 IPC_STRUCT_MEMBER(gfx::Vector2d, unused_scroll_delta)
702 IPC_STRUCT_MEMBER(float, page_scale_factor)
703 IPC_STRUCT_MEMBER(float, min_page_scale_factor)
704 IPC_STRUCT_MEMBER(float, max_page_scale_factor)
705 IPC_STRUCT_MEMBER(gfx::Size, content_size)
706 IPC_STRUCT_END()
707
699 // Messages sent from the browser to the renderer. 708 // Messages sent from the browser to the renderer.
700 709
701 // Set the top-level frame to the provided name. 710 // Set the top-level frame to the provided name.
702 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, 711 IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
703 std::string /* frame_name */) 712 std::string /* frame_name */)
704 713
705 // Sent to the RenderView when a new tab is swapped into an existing 714 // Sent to the RenderView when a new tab is swapped into an existing
706 // tab and the histories need to be merged. The existing tab has a history of 715 // tab and the histories need to be merged. The existing tab has a history of
707 // |merged_history_length| which precedes the history of the new tab. All 716 // |merged_history_length| which precedes the history of the new tab. All
708 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 717 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 // Tells the renderer to try to revert to the zoom level we were at before 1319 // Tells the renderer to try to revert to the zoom level we were at before
1311 // ViewMsg_ScrollFocusedEditableNodeIntoView was called. 1320 // ViewMsg_ScrollFocusedEditableNodeIntoView was called.
1312 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView) 1321 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView)
1313 1322
1314 // Message sent when the renderer changed the background color for the view. 1323 // Message sent when the renderer changed the background color for the view.
1315 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, 1324 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor,
1316 uint32 /* bg_color */) 1325 uint32 /* bg_color */)
1317 1326
1318 // Information about current document scroll, scale and size. Sent on a 1327 // Information about current document scroll, scale and size. Sent on a
1319 // best-effort basis. 1328 // best-effort basis.
1320 IPC_MESSAGE_ROUTED5(ViewHostMsg_UpdateFrameInfo, 1329 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFrameInfo,
1321 gfx::Vector2d /* scroll_offset */, 1330 ViewHostMsg_UpdateFrameInfo_Params)
1322 float /* page_scale_factor */,
1323 float /* min_page_scale_factor */,
1324 float /* max_page_scale_factor */,
1325 gfx::Size /* content_size */)
1326 1331
1327 #elif defined(OS_MACOSX) 1332 #elif defined(OS_MACOSX)
1328 // Let the RenderView know its window has changed visibility. 1333 // Let the RenderView know its window has changed visibility.
1329 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, 1334 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
1330 bool /* visibile */) 1335 bool /* visibile */)
1331 1336
1332 // Let the RenderView know its window's frame has changed. 1337 // Let the RenderView know its window's frame has changed.
1333 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, 1338 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
1334 gfx::Rect /* window frame */, 1339 gfx::Rect /* window frame */,
1335 gfx::Rect /* content view frame */) 1340 gfx::Rect /* content view frame */)
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2383 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2379 // for details. 2384 // for details.
2380 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2385 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2381 LOGFONT /* font_data */, 2386 LOGFONT /* font_data */,
2382 string16 /* characters */) 2387 string16 /* characters */)
2383 #endif 2388 #endif
2384 2389
2385 // Notifies the browser that the frame with the given id was detached. 2390 // Notifies the browser that the frame with the given id was detached.
2386 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, 2391 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached,
2387 int64 /* frame_id */) 2392 int64 /* frame_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698