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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/page_messages.h
diff --git a/content/common/page_messages.h b/content/common/page_messages.h
index 284c134508b5d9227303ec5f96ec52235e628176..c434c80e14ce3c0c650db9c55a77293191c13b1f 100644
--- a/content/common/page_messages.h
+++ b/content/common/page_messages.h
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/common/page_message_enums.h"
#include "ipc/ipc_message_macros.h"
+#include "ui/gfx/geometry/rect.h"
// IPC messages for page-level actions.
// Multiply-included message file, hence no include guard.
@@ -12,11 +14,19 @@
#define IPC_MESSAGE_START PageMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(
+ PageMsg_SetZoomLevel_Command,
+ 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.
+
// Messages sent from the browser to the renderer.
IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect,
gfx::Rect /* window_screen_rect */)
+IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel,
+ PageMsg_SetZoomLevel_Command /* command */,
+ double /* zoom_level */)
+
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.

Powered by Google App Engine
This is Rietveld 408576698