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

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

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to master@{#386187}. Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "content/common/page_message_enums.h"
5 #include "ipc/ipc_message_macros.h" 6 #include "ipc/ipc_message_macros.h"
7 #include "ui/gfx/geometry/rect.h"
6 8
7 // IPC messages for page-level actions. 9 // IPC messages for page-level actions.
8 // Multiply-included message file, hence no include guard. 10 // Multiply-included message file, hence no include guard.
9 11
10 #undef IPC_MESSAGE_EXPORT 12 #undef IPC_MESSAGE_EXPORT
11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
12 14
13 #define IPC_MESSAGE_START PageMsgStart 15 #define IPC_MESSAGE_START PageMsgStart
14 16
17 IPC_ENUM_TRAITS_MAX_VALUE(
18 PageMsg_SetZoomLevel_Command,
19 PageMsg_SetZoomLevel_Command::ZOOM_USE_CURRENT_TEMPORARY_MODE);
alexmos 2016/04/11 23:19:11 It might be a good idea to define a PageMsg_SetZoo
wjmaclean 2016/04/13 18:47:47 Done.
20
15 // Messages sent from the browser to the renderer. 21 // Messages sent from the browser to the renderer.
16 22
17 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, 23 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect,
18 gfx::Rect /* window_screen_rect */) 24 gfx::Rect /* window_screen_rect */)
19 25
26 IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel,
27 PageMsg_SetZoomLevel_Command /* command */,
28 double /* zoom_level */)
29
20 // ----------------------------------------------------------------------------- 30 // -----------------------------------------------------------------------------
21 // Messages sent from the renderer to the browser. 31 // Messages sent from the renderer to the browser.
22 32
23 // Adding a new message? Stick to the sort order above: first platform 33 // Adding a new message? Stick to the sort order above: first platform
24 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform 34 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform
25 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. 35 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698