OLD | NEW |
---|---|
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
674 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 674 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
675 gfx::Point, /* location */ | 675 gfx::Point, /* location */ |
676 blink::WebMediaPlayerAction) | 676 blink::WebMediaPlayerAction) |
677 | 677 |
678 // Tells the renderer to perform the given action on the plugin located at | 678 // Tells the renderer to perform the given action on the plugin located at |
679 // the given point. | 679 // the given point. |
680 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 680 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
681 gfx::Point, /* location */ | 681 gfx::Point, /* location */ |
682 blink::WebPluginAction) | 682 blink::WebPluginAction) |
683 | 683 |
684 // Resets the page scale for the current main frame to the default page scale. | 684 // Sets the page scale for the current main frame to the given page scale. |
685 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) | 685 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
686 | 686 |
687 // Change the zoom level for the current main frame. If the level actually | 687 // Change the zoom level for the current main frame. If the level actually |
688 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 688 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
689 // telling it what url got zoomed and what its current zoom level is. | 689 // telling it what url got zoomed and what its current zoom level is. |
690 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 690 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
691 content::PageZoom /* function */) | 691 content::PageZoom /* function */) |
692 | 692 |
693 // Set the zoom level for a particular url that the renderer is in the | 693 // Set the zoom level for a particular url that the renderer is in the |
694 // process of loading. This will be stored, to be used if the load commits | 694 // process of loading. This will be stored, to be used if the load commits |
695 // and ignored otherwise. | 695 // and ignored otherwise. |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1227 ViewHostMsg_TextInputState_Params /* input state params */) | 1227 ViewHostMsg_TextInputState_Params /* input state params */) |
1228 | 1228 |
1229 // Sent when the renderer changes the zoom level for a particular url, so the | 1229 // Sent when the renderer changes the zoom level for a particular url, so the |
1230 // browser can update its records. If the view is a plugin doc, then url is | 1230 // browser can update its records. If the view is a plugin doc, then url is |
1231 // used to update the zoom level for all pages in that site. Otherwise, the | 1231 // used to update the zoom level for all pages in that site. Otherwise, the |
1232 // render view's id is used so that only the menu is updated. | 1232 // render view's id is used so that only the menu is updated. |
1233 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, | 1233 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
1234 double /* zoom_level */, | 1234 double /* zoom_level */, |
1235 GURL /* url */) | 1235 GURL /* url */) |
1236 | 1236 |
1237 // Sent when the renderer changes its page scale factor and whether or not the | 1237 // Sent when the renderer changes its page scale factor |
Charlie Reis
2015/10/21 21:37:10
nit: End with period.
Kevin McNee - google account
2015/10/22 20:28:48
Done.
| |
1238 // page scale factor is one changes. | 1238 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged, |
1239 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) | 1239 float /* page_scale_factor */) |
1240 | 1240 |
1241 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1241 // Updates the minimum/maximum allowed zoom percent for this tab from the |
1242 // default values. If |remember| is true, then the zoom setting is applied to | 1242 // default values. If |remember| is true, then the zoom setting is applied to |
1243 // other pages in the site and is saved, otherwise it only applies to this | 1243 // other pages in the site and is saved, otherwise it only applies to this |
1244 // tab. | 1244 // tab. |
1245 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1245 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
1246 int /* minimum_percent */, | 1246 int /* minimum_percent */, |
1247 int /* maximum_percent */) | 1247 int /* maximum_percent */) |
1248 | 1248 |
1249 IPC_MESSAGE_ROUTED3( | 1249 IPC_MESSAGE_ROUTED3( |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1380 // Instructs the browser to start plugin IME. | 1380 // Instructs the browser to start plugin IME. |
1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1382 | 1382 |
1383 // Receives content of a web page as plain text. | 1383 // Receives content of a web page as plain text. |
1384 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1384 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
1385 #endif | 1385 #endif |
1386 | 1386 |
1387 // Adding a new message? Stick to the sort order above: first platform | 1387 // Adding a new message? Stick to the sort order above: first platform |
1388 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1388 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1389 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1389 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |