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

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

Issue 287093002: Remove ViewMsg_SetZoomLevel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add std:: namespace to find() to fix Android compile. Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 662
663 // Requests that the RenderView's main frame sets its opener to null. 663 // Requests that the RenderView's main frame sets its opener to null.
664 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) 664 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener)
665 665
666 // Change the zoom level for the current main frame. If the level actually 666 // Change the zoom level for the current main frame. If the level actually
667 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 667 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
668 // telling it what url got zoomed and what its current zoom level is. 668 // telling it what url got zoomed and what its current zoom level is.
669 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 669 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
670 content::PageZoom /* function */) 670 content::PageZoom /* function */)
671 671
672 // Set the zoom level for the current main frame. If the level actually
673 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
674 // telling it what url got zoomed and what its current zoom level is.
675 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel,
676 double /* zoom_level */)
677
678 // Set the zoom level for a particular url that the renderer is in the 672 // Set the zoom level for a particular url that the renderer is in the
679 // process of loading. This will be stored, to be used if the load commits 673 // process of loading. This will be stored, to be used if the load commits
680 // and ignored otherwise. 674 // and ignored otherwise.
681 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 675 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
682 GURL /* url */, 676 GURL /* url */,
683 double /* zoom_level */) 677 double /* zoom_level */)
684 678
685 // Set the zoom level for a particular url, so all render views 679 // Set the zoom level for a particular url, so all render views
686 // displaying this url can update their zoom levels to match. 680 // displaying this url can update their zoom levels to match.
687 // If scheme is empty, then only host is used for matching. 681 // If scheme is empty, then only host is used for matching.
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 1111
1118 // Notifies the browser that we want to show a destination url for a potential 1112 // Notifies the browser that we want to show a destination url for a potential
1119 // action (e.g. when the user is hovering over a link). 1113 // action (e.g. when the user is hovering over a link).
1120 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, 1114 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL,
1121 int32, 1115 int32,
1122 GURL) 1116 GURL)
1123 1117
1124 // Sent when the document element is available for the top-level frame. This 1118 // Sent when the document element is available for the top-level frame. This
1125 // happens after the page starts loading, but before all resources are 1119 // happens after the page starts loading, but before all resources are
1126 // finished. 1120 // finished.
1127 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) 1121 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame,
1122 bool /* uses_temporary_zoom_level */)
1128 1123
1129 // Sent when the renderer loads a resource from its memory cache. 1124 // Sent when the renderer loads a resource from its memory cache.
1130 // The security info is non empty if the resource was originally loaded over 1125 // The security info is non empty if the resource was originally loaded over
1131 // a secure connection. 1126 // a secure connection.
1132 // Note: May only be sent once per URL per frame per committed load. 1127 // Note: May only be sent once per URL per frame per committed load.
1133 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, 1128 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache,
1134 GURL /* url */, 1129 GURL /* url */,
1135 std::string /* security info */, 1130 std::string /* security info */,
1136 std::string /* http method */, 1131 std::string /* http method */,
1137 std::string /* mime type */, 1132 std::string /* mime type */,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 bool /* can_compose_inline in the focused node */) 1428 bool /* can_compose_inline in the focused node */)
1434 1429
1435 // Required for updating text input state. 1430 // Required for updating text input state.
1436 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, 1431 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
1437 ViewHostMsg_TextInputState_Params /* input state params */) 1432 ViewHostMsg_TextInputState_Params /* input state params */)
1438 1433
1439 // Required for cancelling an ongoing input method composition. 1434 // Required for cancelling an ongoing input method composition.
1440 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) 1435 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition)
1441 1436
1442 // Sent when the renderer changes the zoom level for a particular url, so the 1437 // Sent when the renderer changes the zoom level for a particular url, so the
1443 // browser can update its records. If remember is true, then url is used to 1438 // browser can update its records. If the view is a plugin doc, then url is
1444 // update the zoom level for all pages in that site. Otherwise, the render 1439 // used to update the zoom level for all pages in that site. Otherwise, the
1445 // view's id is used so that only the menu is updated. 1440 // render view's id is used so that only the menu is updated.
1446 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, 1441 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
1447 double /* zoom_level */, 1442 double /* zoom_level */,
1448 bool /* remember */,
1449 GURL /* url */) 1443 GURL /* url */)
1450 1444
1451 // Updates the minimum/maximum allowed zoom percent for this tab from the 1445 // Updates the minimum/maximum allowed zoom percent for this tab from the
1452 // default values. If |remember| is true, then the zoom setting is applied to 1446 // default values. If |remember| is true, then the zoom setting is applied to
1453 // other pages in the site and is saved, otherwise it only applies to this 1447 // other pages in the site and is saved, otherwise it only applies to this
1454 // tab. 1448 // tab.
1455 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, 1449 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
1456 int /* minimum_percent */, 1450 int /* minimum_percent */,
1457 int /* maximum_percent */, 1451 int /* maximum_percent */)
1458 bool /* remember */)
1459 1452
1460 // Notify the browser that this render process can or can't be suddenly 1453 // Notify the browser that this render process can or can't be suddenly
1461 // terminated. 1454 // terminated.
1462 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, 1455 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
1463 bool /* enabled */) 1456 bool /* enabled */)
1464 1457
1465 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) 1458 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params)
1466 IPC_STRUCT_MEMBER(int32, surface_id) 1459 IPC_STRUCT_MEMBER(int32, surface_id)
1467 IPC_STRUCT_MEMBER(uint64, surface_handle) 1460 IPC_STRUCT_MEMBER(uint64, surface_handle)
1468 IPC_STRUCT_MEMBER(int32, route_id) 1461 IPC_STRUCT_MEMBER(int32, route_id)
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 // synchronously (see crbug.com/120597). This IPC message sends the character 1727 // synchronously (see crbug.com/120597). This IPC message sends the character
1735 // bounds after every composition change to always have correct bound info. 1728 // bounds after every composition change to always have correct bound info.
1736 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1729 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1737 gfx::Range /* composition range */, 1730 gfx::Range /* composition range */,
1738 std::vector<gfx::Rect> /* character bounds */) 1731 std::vector<gfx::Rect> /* character bounds */)
1739 #endif 1732 #endif
1740 1733
1741 // Adding a new message? Stick to the sort order above: first platform 1734 // Adding a new message? Stick to the sort order above: first platform
1742 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1735 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1743 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1736 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/host_zoom_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698