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 // Sets the page scale for the current main frame to the given page scale. |
| 685 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
| 686 |
684 // Resets the page scale for the current main frame to the default page scale. | 687 // Resets the page scale for the current main frame to the default page scale. |
685 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) | 688 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) |
686 | 689 |
687 // Change the zoom level for the current main frame. If the level actually | 690 // 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 | 691 // 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. | 692 // telling it what url got zoomed and what its current zoom level is. |
690 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 693 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
691 content::PageZoom /* function */) | 694 content::PageZoom /* function */) |
692 | 695 |
693 // Set the zoom level for a particular url that the renderer is in the | 696 // Set the zoom level for a particular url that the renderer is in the |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 ViewHostMsg_TextInputState_Params /* input state params */) | 1231 ViewHostMsg_TextInputState_Params /* input state params */) |
1229 | 1232 |
1230 // Sent when the renderer changes the zoom level for a particular url, so the | 1233 // Sent when the renderer changes the zoom level for a particular url, so the |
1231 // browser can update its records. If the view is a plugin doc, then url is | 1234 // browser can update its records. If the view is a plugin doc, then url is |
1232 // used to update the zoom level for all pages in that site. Otherwise, the | 1235 // used to update the zoom level for all pages in that site. Otherwise, the |
1233 // render view's id is used so that only the menu is updated. | 1236 // render view's id is used so that only the menu is updated. |
1234 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, | 1237 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
1235 double /* zoom_level */, | 1238 double /* zoom_level */, |
1236 GURL /* url */) | 1239 GURL /* url */) |
1237 | 1240 |
| 1241 // Sent when the renderer changes its page scale factor |
| 1242 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged, |
| 1243 float /* page_scale_factor */) |
| 1244 |
1238 // Sent when the renderer changes its page scale factor and whether or not the | 1245 // Sent when the renderer changes its page scale factor and whether or not the |
1239 // page scale factor is one changes. | 1246 // page scale factor is one changes. |
1240 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) | 1247 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) |
1241 | 1248 |
1242 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1249 // Updates the minimum/maximum allowed zoom percent for this tab from the |
1243 // default values. If |remember| is true, then the zoom setting is applied to | 1250 // default values. If |remember| is true, then the zoom setting is applied to |
1244 // other pages in the site and is saved, otherwise it only applies to this | 1251 // other pages in the site and is saved, otherwise it only applies to this |
1245 // tab. | 1252 // tab. |
1246 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1253 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
1247 int /* minimum_percent */, | 1254 int /* minimum_percent */, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 // Instructs the browser to start plugin IME. | 1388 // Instructs the browser to start plugin IME. |
1382 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1389 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1383 | 1390 |
1384 // Receives content of a web page as plain text. | 1391 // Receives content of a web page as plain text. |
1385 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1392 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
1386 #endif | 1393 #endif |
1387 | 1394 |
1388 // Adding a new message? Stick to the sort order above: first platform | 1395 // Adding a new message? Stick to the sort order above: first platform |
1389 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1396 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1390 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1397 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |