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

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

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Style Created 7 years, 3 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/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) 883 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK)
884 884
885 // Tells the render view that a SwapBuffers was completed. Typically, 885 // Tells the render view that a SwapBuffers was completed. Typically,
886 // SwapBuffers requests go from renderer -> GPU process -> browser. Most 886 // SwapBuffers requests go from renderer -> GPU process -> browser. Most
887 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. 887 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack.
888 // Using Echo routes the ack from browser -> GPU process -> renderer, while this 888 // Using Echo routes the ack from browser -> GPU process -> renderer, while this
889 // Ack goes directly from browser -> renderer. This is not used for the threaded 889 // Ack goes directly from browser -> renderer. This is not used for the threaded
890 // compositor path. 890 // compositor path.
891 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) 891 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK)
892 892
893 // Tells the render view that a ViewHostMsg_EmulateDevice message
894 // was processed. This signals the render view that it's safe to emulate,
895 // and host will accept rendered image of any size.
896 IPC_MESSAGE_ROUTED1(ViewMsg_EmulateDevice_ACK,
897 bool /* enabled */)
898
893 // Tells the render widget that a smooth scroll completed. 899 // Tells the render widget that a smooth scroll completed.
894 IPC_MESSAGE_ROUTED0(ViewMsg_SyntheticGestureCompleted) 900 IPC_MESSAGE_ROUTED0(ViewMsg_SyntheticGestureCompleted)
895 901
896 // Tells the renderer to focus the first (last if reverse is true) focusable 902 // Tells the renderer to focus the first (last if reverse is true) focusable
897 // node. 903 // node.
898 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, 904 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus,
899 bool /* reverse */) 905 bool /* reverse */)
900 906
901 // Executes custom context menu action that was provided from WebKit. 907 // Executes custom context menu action that was provided from WebKit.
902 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, 908 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction,
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) 1648 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params)
1643 IPC_STRUCT_MEMBER(bool, scroll_down) 1649 IPC_STRUCT_MEMBER(bool, scroll_down)
1644 IPC_STRUCT_MEMBER(int, pixels_to_scroll) 1650 IPC_STRUCT_MEMBER(int, pixels_to_scroll)
1645 IPC_STRUCT_MEMBER(int, mouse_event_x) 1651 IPC_STRUCT_MEMBER(int, mouse_event_x)
1646 IPC_STRUCT_MEMBER(int, mouse_event_y) 1652 IPC_STRUCT_MEMBER(int, mouse_event_y)
1647 IPC_STRUCT_END() 1653 IPC_STRUCT_END()
1648 1654
1649 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, 1655 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll,
1650 ViewHostMsg_BeginSmoothScroll_Params /* params */) 1656 ViewHostMsg_BeginSmoothScroll_Params /* params */)
1651 1657
1658 // Sent to initiate emulating device mode. In this mode, rendered image may be
1659 // not the same size as view itself. In response to this message, the host
1660 // generates a ViewMsg_EmulateDevice_ACK message.
1661 IPC_MESSAGE_ROUTED1(ViewHostMsg_EmulateDevice,
1662 bool /* enabled */)
1663
1652 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1664 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1653 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1665 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1654 1666
1655 // Message sent from renderer to the browser when focus changes inside the 1667 // Message sent from renderer to the browser when focus changes inside the
1656 // webpage. The parameter says whether the newly focused element needs 1668 // webpage. The parameter says whether the newly focused element needs
1657 // keyboard input (true for textfields, text areas and content editable divs). 1669 // keyboard input (true for textfields, text areas and content editable divs).
1658 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, 1670 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1659 bool /* is_editable_node */) 1671 bool /* is_editable_node */)
1660 1672
1661 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, 1673 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 // synchronously (see crbug.com/120597). This IPC message sends the character 2381 // synchronously (see crbug.com/120597). This IPC message sends the character
2370 // bounds after every composition change to always have correct bound info. 2382 // bounds after every composition change to always have correct bound info.
2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2383 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2372 ui::Range /* composition range */, 2384 ui::Range /* composition range */,
2373 std::vector<gfx::Rect> /* character bounds */) 2385 std::vector<gfx::Rect> /* character bounds */)
2374 #endif 2386 #endif
2375 2387
2376 // Adding a new message? Stick to the sort order above: first platform 2388 // Adding a new message? Stick to the sort order above: first platform
2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2389 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2390 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698