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

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

Issue 302603012: Zoom Extension API (content changes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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
« no previous file with comments | « content/browser/host_zoom_map_impl.cc ('k') | content/public/browser/host_zoom_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // Set the zoom level for a particular url that the renderer is in the 674 // Set the zoom level for a particular url that the renderer is in the
675 // process of loading. This will be stored, to be used if the load commits 675 // process of loading. This will be stored, to be used if the load commits
676 // and ignored otherwise. 676 // and ignored otherwise.
677 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 677 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
678 GURL /* url */, 678 GURL /* url */,
679 double /* zoom_level */) 679 double /* zoom_level */)
680 680
681 // Set the zoom level for a particular url, so all render views 681 // Set the zoom level for a particular url, so all render views
682 // displaying this url can update their zoom levels to match. 682 // displaying this url can update their zoom levels to match.
683 // If scheme is empty, then only host is used for matching. 683 // If scheme is empty, then only host is used for matching.
684 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL, 684 // Render views in the exception list do not have their levels changed.
685 IPC_MESSAGE_CONTROL4(ViewMsg_SetZoomLevelForCurrentURL,
685 std::string /* scheme */, 686 std::string /* scheme */,
686 std::string /* host */, 687 std::string /* host */,
687 double /* zoom_level */) 688 double /* zoom_level */,
689 std::set<int> /* exceptions */)
Fady Samuel 2014/06/10 14:24:27 I'm still not particularly comfortable about this
690
691 // Set the zoom level for a particular render view.
692 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevelForView,
693 double /* zoom_level */)
688 694
689 // Change encoding of page in the renderer. 695 // Change encoding of page in the renderer.
690 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 696 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
691 std::string /*new encoding name*/) 697 std::string /*new encoding name*/)
692 698
693 // Reset encoding of page in the renderer back to default. 699 // Reset encoding of page in the renderer back to default.
694 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 700 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
695 701
696 // Used to tell a render view whether it should expose various bindings 702 // Used to tell a render view whether it should expose various bindings
697 // that allow JS content extended privileges. See BindingsPolicy for valid 703 // that allow JS content extended privileges. See BindingsPolicy for valid
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 // synchronously (see crbug.com/120597). This IPC message sends the character 1731 // synchronously (see crbug.com/120597). This IPC message sends the character
1726 // bounds after every composition change to always have correct bound info. 1732 // bounds after every composition change to always have correct bound info.
1727 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1733 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1728 gfx::Range /* composition range */, 1734 gfx::Range /* composition range */,
1729 std::vector<gfx::Rect> /* character bounds */) 1735 std::vector<gfx::Rect> /* character bounds */)
1730 #endif 1736 #endif
1731 1737
1732 // Adding a new message? Stick to the sort order above: first platform 1738 // Adding a new message? Stick to the sort order above: first platform
1733 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1739 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1734 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1740 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/host_zoom_map_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