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

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: Convert to use PageMsg instead of FrameMsg. 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 #ifndef CONTENT_COMMON_PAGE_MESSAGES_H_
6 #define CONTENT_COMMON_PAGE_MESSAGES_H_
7
5 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
6 9
alexmos 2016/04/07 23:48:08 nit: why this blank line?
wjmaclean 2016/04/08 20:13:29 Done.
10 #include "ui/gfx/geometry/rect.h"
11
7 // IPC messages for page-level actions. 12 // IPC messages for page-level actions.
8 // Multiply-included message file, hence no include guard. 13 // Multiply-included message file, hence no include guard.
9 14
10 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
12 17
13 #define IPC_MESSAGE_START PageMsgStart 18 #define IPC_MESSAGE_START PageMsgStart
14 19
20 // Create a 'type' for our enum, since IPC doesn't support enum classes (yet).
alexmos 2016/04/07 23:48:08 Hmm, we use things like WebSandboxFlags and WebTre
wjmaclean 2016/04/08 20:13:29 Ahh, ok. I was getting messages about the pickler
21 using PageMsg_SetZoomLevel_Command = int;
22 enum {
23 ZOOM_SET_TEMPORARY,
24 ZOOM_CLEAR_TEMPORARY,
25 ZOOM_USE_CURRENT_TEMPORARY_MODE
26 };
27
15 // Messages sent from the browser to the renderer. 28 // Messages sent from the browser to the renderer.
16 29
17 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, 30 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect,
18 gfx::Rect /* window_screen_rect */) 31 gfx::Rect /* window_screen_rect */)
19 32
33 IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel,
34 PageMsg_SetZoomLevel_Command /* command */,
35 double /* zoom_level */)
36
20 // ----------------------------------------------------------------------------- 37 // -----------------------------------------------------------------------------
21 // Messages sent from the renderer to the browser. 38 // Messages sent from the renderer to the browser.
22 39
23 // Adding a new message? Stick to the sort order above: first platform 40 // Adding a new message? Stick to the sort order above: first platform
24 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform 41 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform
25 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. 42 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg.
43
44 #endif // CONTENT_COMMON_PAGE_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698