| 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 // Tell the renderer to send a ViewHostMsg_PageScaleFactorChanged with its |
| 685 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) | 685 // current page scale factor. |
| 686 IPC_MESSAGE_ROUTED0(ViewMsg_GetPageScale) |
| 687 |
| 688 // Sets the page scale for the current main frame to the given page scale. |
| 689 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
| 686 | 690 |
| 687 // Change the zoom level for the current main frame. If the level actually | 691 // 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 | 692 // 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. | 693 // telling it what url got zoomed and what its current zoom level is. |
| 690 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 694 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 691 content::PageZoom /* function */) | 695 content::PageZoom /* function */) |
| 692 | 696 |
| 693 // Set the zoom level for a particular url that the renderer is in the | 697 // 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 | 698 // process of loading. This will be stored, to be used if the load commits |
| 695 // and ignored otherwise. | 699 // and ignored otherwise. |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 ViewHostMsg_TextInputState_Params /* input state params */) | 1231 ViewHostMsg_TextInputState_Params /* input state params */) |
| 1228 | 1232 |
| 1229 // 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 |
| 1230 // 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 |
| 1231 // 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 |
| 1232 // 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. |
| 1233 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, | 1237 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
| 1234 double /* zoom_level */, | 1238 double /* zoom_level */, |
| 1235 GURL /* url */) | 1239 GURL /* url */) |
| 1236 | 1240 |
| 1237 // Sent when the renderer changes its page scale factor and whether or not the | 1241 // Sent when the renderer changes its page scale factor. |
| 1238 // page scale factor is one changes. | 1242 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged, |
| 1239 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) | 1243 float /* page_scale_factor */) |
| 1240 | 1244 |
| 1241 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1245 // 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 | 1246 // 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 | 1247 // other pages in the site and is saved, otherwise it only applies to this |
| 1244 // tab. | 1248 // tab. |
| 1245 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1249 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1246 int /* minimum_percent */, | 1250 int /* minimum_percent */, |
| 1247 int /* maximum_percent */) | 1251 int /* maximum_percent */) |
| 1248 | 1252 |
| 1249 IPC_MESSAGE_ROUTED3( | 1253 IPC_MESSAGE_ROUTED3( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 // Instructs the browser to start plugin IME. | 1384 // Instructs the browser to start plugin IME. |
| 1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1385 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1382 | 1386 |
| 1383 // Receives content of a web page as plain text. | 1387 // Receives content of a web page as plain text. |
| 1384 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1388 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
| 1385 #endif | 1389 #endif |
| 1386 | 1390 |
| 1387 // Adding a new message? Stick to the sort order above: first platform | 1391 // Adding a new message? Stick to the sort order above: first platform |
| 1388 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1392 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1389 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1393 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |