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

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: Fixed reviewers comments Created 7 years, 2 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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 IPC_STRUCT_BEGIN(ViewHostMsg_BeginPinch_Params) 1661 IPC_STRUCT_BEGIN(ViewHostMsg_BeginPinch_Params)
1662 IPC_STRUCT_MEMBER(bool, zoom_in) 1662 IPC_STRUCT_MEMBER(bool, zoom_in)
1663 IPC_STRUCT_MEMBER(int32, pixels_to_move) 1663 IPC_STRUCT_MEMBER(int32, pixels_to_move)
1664 IPC_STRUCT_MEMBER(int32, anchor_x) 1664 IPC_STRUCT_MEMBER(int32, anchor_x)
1665 IPC_STRUCT_MEMBER(int32, anchor_y) 1665 IPC_STRUCT_MEMBER(int32, anchor_y)
1666 IPC_STRUCT_END() 1666 IPC_STRUCT_END()
1667 1667
1668 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch, 1668 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch,
1669 ViewHostMsg_BeginPinch_Params /* params */) 1669 ViewHostMsg_BeginPinch_Params /* params */)
1670 1670
1671 // Sent to make host accept image of a certain expected size instead of current
1672 // view size. This is essential to emulate screen metrics, where render widget
1673 // renders only a part of the hosting view. Empty |size| means that default view
1674 // size is expected.
1675 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetExpectedSize,
aelias_OOO_until_Jul13 2013/09/27 22:51:14 Hmm, this SetExpectedSize thing still feels wrong.
dgozman 2013/10/01 06:22:16 This works when setting childrenTransform instead
1676 gfx::Size /* size */)
1677
1671 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1678 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1672 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1679 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1673 1680
1674 // Message sent from renderer to the browser when focus changes inside the 1681 // Message sent from renderer to the browser when focus changes inside the
1675 // webpage. The parameter says whether the newly focused element needs 1682 // webpage. The parameter says whether the newly focused element needs
1676 // keyboard input (true for textfields, text areas and content editable divs). 1683 // keyboard input (true for textfields, text areas and content editable divs).
1677 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, 1684 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1678 bool /* is_editable_node */) 1685 bool /* is_editable_node */)
1679 1686
1680 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, 1687 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 // synchronously (see crbug.com/120597). This IPC message sends the character 2394 // synchronously (see crbug.com/120597). This IPC message sends the character
2388 // bounds after every composition change to always have correct bound info. 2395 // bounds after every composition change to always have correct bound info.
2389 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2396 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2390 gfx::Range /* composition range */, 2397 gfx::Range /* composition range */,
2391 std::vector<gfx::Rect> /* character bounds */) 2398 std::vector<gfx::Rect> /* character bounds */)
2392 #endif 2399 #endif
2393 2400
2394 // Adding a new message? Stick to the sort order above: first platform 2401 // Adding a new message? Stick to the sort order above: first platform
2395 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2402 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2396 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2403 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698