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

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: Remove exceptions from IPC. 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 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 // Render views in the exception list do not have their levels changed.
684 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL, 685 IPC_MESSAGE_CONTROL3(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 */)
688 689
690 // Set whether a particular view uses a temporary zoom level.
691 IPC_MESSAGE_ROUTED1(ViewMsg_SetUsesTemporaryZoomLevel,
692 bool /* uses_temporary_zoom_level */)
693
694 // Set the zoom level for a particular render view.
695 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevelForView,
Fady Samuel 2014/06/10 20:05:14 These two IPCs are tightly coupled (see comments i
wjmaclean 2014/06/10 20:18:54 Except then we are forced to set a level when in m
696 double /* zoom_level */)
697
689 // Change encoding of page in the renderer. 698 // Change encoding of page in the renderer.
690 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 699 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
691 std::string /*new encoding name*/) 700 std::string /*new encoding name*/)
692 701
693 // Reset encoding of page in the renderer back to default. 702 // Reset encoding of page in the renderer back to default.
694 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 703 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
695 704
696 // Used to tell a render view whether it should expose various bindings 705 // Used to tell a render view whether it should expose various bindings
697 // that allow JS content extended privileges. See BindingsPolicy for valid 706 // that allow JS content extended privileges. See BindingsPolicy for valid
698 // flag values. 707 // flag values.
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 // synchronously (see crbug.com/120597). This IPC message sends the character 1734 // synchronously (see crbug.com/120597). This IPC message sends the character
1726 // bounds after every composition change to always have correct bound info. 1735 // bounds after every composition change to always have correct bound info.
1727 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1736 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1728 gfx::Range /* composition range */, 1737 gfx::Range /* composition range */,
1729 std::vector<gfx::Rect> /* character bounds */) 1738 std::vector<gfx::Rect> /* character bounds */)
1730 #endif 1739 #endif
1731 1740
1732 // Adding a new message? Stick to the sort order above: first platform 1741 // Adding a new message? Stick to the sort order above: first platform
1733 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1742 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1734 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1743 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698