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

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: Additions to HostZoomMap API. 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // Set the zoom level for a particular url that the renderer is in the 673 // Set the zoom level for a particular url that the renderer is in the
674 // process of loading. This will be stored, to be used if the load commits 674 // process of loading. This will be stored, to be used if the load commits
675 // and ignored otherwise. 675 // and ignored otherwise.
676 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 676 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
677 GURL /* url */, 677 GURL /* url */,
678 double /* zoom_level */) 678 double /* zoom_level */)
679 679
680 // Set the zoom level for a particular url, so all render views 680 // Set the zoom level for a particular url, so all render views
681 // displaying this url can update their zoom levels to match. 681 // displaying this url can update their zoom levels to match.
682 // If scheme is empty, then only host is used for matching. 682 // If scheme is empty, then only host is used for matching.
683 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL, 683 // Render views in the exception list do not have their levels changed.
684 IPC_MESSAGE_CONTROL4(ViewMsg_SetZoomLevelForCurrentURL,
684 std::string /* scheme */, 685 std::string /* scheme */,
685 std::string /* host */, 686 std::string /* host */,
686 double /* zoom_level */) 687 double /* zoom_level */,
688 std::set<int> /* exceptions */)
Fady Samuel 2014/06/09 15:43:21 It seems kind of heavy weight to iterate through a
wjmaclean 2014/06/09 17:23:29 Personally, I would think that a single IPC would
689
690 // Set the zoom level for a particular render view.
691 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevelForView,
Fady Samuel 2014/06/09 15:43:21 To the comment above, the first parameter sets the
692 double /* zoom_level */)
687 693
688 // Change encoding of page in the renderer. 694 // Change encoding of page in the renderer.
689 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 695 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
690 std::string /*new encoding name*/) 696 std::string /*new encoding name*/)
691 697
692 // Reset encoding of page in the renderer back to default. 698 // Reset encoding of page in the renderer back to default.
693 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 699 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
694 700
695 // Used to tell a render view whether it should expose various bindings 701 // Used to tell a render view whether it should expose various bindings
696 // that allow JS content extended privileges. See BindingsPolicy for valid 702 // that allow JS content extended privileges. See BindingsPolicy for valid
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 // synchronously (see crbug.com/120597). This IPC message sends the character 1729 // synchronously (see crbug.com/120597). This IPC message sends the character
1724 // bounds after every composition change to always have correct bound info. 1730 // bounds after every composition change to always have correct bound info.
1725 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1731 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1726 gfx::Range /* composition range */, 1732 gfx::Range /* composition range */,
1727 std::vector<gfx::Rect> /* character bounds */) 1733 std::vector<gfx::Rect> /* character bounds */)
1728 #endif 1734 #endif
1729 1735
1730 // Adding a new message? Stick to the sort order above: first platform 1736 // Adding a new message? Stick to the sort order above: first platform
1731 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1737 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1732 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1738 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698