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

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

Issue 1408393003: Propagate pageScaleFactor to GuestViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant initialization of AwLayoutSizer's page scale factor in tests Created 5 years, 1 month 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 (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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, 692 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
693 gfx::Point, /* location */ 693 gfx::Point, /* location */
694 blink::WebMediaPlayerAction) 694 blink::WebMediaPlayerAction)
695 695
696 // Tells the renderer to perform the given action on the plugin located at 696 // Tells the renderer to perform the given action on the plugin located at
697 // the given point. 697 // the given point.
698 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, 698 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
699 gfx::Point, /* location */ 699 gfx::Point, /* location */
700 blink::WebPluginAction) 700 blink::WebPluginAction)
701 701
702 // Resets the page scale for the current main frame to the default page scale. 702 // Sets the page scale for the current main frame to the given page scale.
703 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) 703 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */)
704 704
705 // Change the zoom level for the current main frame. If the level actually 705 // Change the zoom level for the current main frame. If the level actually
706 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 706 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
707 // telling it what url got zoomed and what its current zoom level is. 707 // telling it what url got zoomed and what its current zoom level is.
708 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 708 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
709 content::PageZoom /* function */) 709 content::PageZoom /* function */)
710 710
711 // Set the zoom level for a particular url that the renderer is in the 711 // Set the zoom level for a particular url that the renderer is in the
712 // process of loading. This will be stored, to be used if the load commits 712 // process of loading. This will be stored, to be used if the load commits
713 // and ignored otherwise. 713 // and ignored otherwise.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 ViewHostMsg_TextInputState_Params /* input state params */) 1244 ViewHostMsg_TextInputState_Params /* input state params */)
1245 1245
1246 // Sent when the renderer changes the zoom level for a particular url, so the 1246 // Sent when the renderer changes the zoom level for a particular url, so the
1247 // browser can update its records. If the view is a plugin doc, then url is 1247 // browser can update its records. If the view is a plugin doc, then url is
1248 // used to update the zoom level for all pages in that site. Otherwise, the 1248 // used to update the zoom level for all pages in that site. Otherwise, the
1249 // render view's id is used so that only the menu is updated. 1249 // render view's id is used so that only the menu is updated.
1250 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, 1250 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
1251 double /* zoom_level */, 1251 double /* zoom_level */,
1252 GURL /* url */) 1252 GURL /* url */)
1253 1253
1254 // Sent when the renderer changes its page scale factor and whether or not the 1254 // Sent when the renderer changes its page scale factor.
1255 // page scale factor is one changes. 1255 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged,
1256 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) 1256 float /* page_scale_factor */)
1257 1257
1258 // Updates the minimum/maximum allowed zoom percent for this tab from the 1258 // Updates the minimum/maximum allowed zoom percent for this tab from the
1259 // default values. If |remember| is true, then the zoom setting is applied to 1259 // default values. If |remember| is true, then the zoom setting is applied to
1260 // other pages in the site and is saved, otherwise it only applies to this 1260 // other pages in the site and is saved, otherwise it only applies to this
1261 // tab. 1261 // tab.
1262 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, 1262 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
1263 int /* minimum_percent */, 1263 int /* minimum_percent */,
1264 int /* maximum_percent */) 1264 int /* maximum_percent */)
1265 1265
1266 IPC_MESSAGE_ROUTED3( 1266 IPC_MESSAGE_ROUTED3(
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 // Instructs the browser to start plugin IME. 1397 // Instructs the browser to start plugin IME.
1398 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) 1398 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1399 1399
1400 // Receives content of a web page as plain text. 1400 // Receives content of a web page as plain text.
1401 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); 1401 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1402 #endif 1402 #endif
1403 1403
1404 // Adding a new message? Stick to the sort order above: first platform 1404 // Adding a new message? Stick to the sort order above: first platform
1405 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1405 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1406 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1406 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698