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

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

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 8 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 80 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
81 IPC_ENUM_TRAITS(content::MenuItem::Type) 81 IPC_ENUM_TRAITS(content::MenuItem::Type)
82 IPC_ENUM_TRAITS(content::NavigationGesture) 82 IPC_ENUM_TRAITS(content::NavigationGesture)
83 IPC_ENUM_TRAITS(content::PageZoom) 83 IPC_ENUM_TRAITS(content::PageZoom)
84 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 84 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
85 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 85 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
86 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, 86 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
87 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) 87 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
88 IPC_ENUM_TRAITS(content::StopFindAction) 88 IPC_ENUM_TRAITS(content::StopFindAction)
89 IPC_ENUM_TRAITS(content::ThreeDAPIType) 89 IPC_ENUM_TRAITS(content::ThreeDAPIType)
90 IPC_ENUM_TRAITS(content::ZoomMode)
90 IPC_ENUM_TRAITS(media::ChannelLayout) 91 IPC_ENUM_TRAITS(media::ChannelLayout)
91 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 92 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
92 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) 93 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
93 IPC_ENUM_TRAITS(ui::TextInputType) 94 IPC_ENUM_TRAITS(ui::TextInputType)
94 95
95 #if defined(OS_MACOSX) 96 #if defined(OS_MACOSX)
96 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 97 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
97 IPC_STRUCT_TRAITS_MEMBER(font_name) 98 IPC_STRUCT_TRAITS_MEMBER(font_name)
98 IPC_STRUCT_TRAITS_MEMBER(font_point_size) 99 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
99 IPC_STRUCT_TRAITS_END() 100 IPC_STRUCT_TRAITS_END()
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 706
706 // Change the zoom level for the current main frame. If the level actually 707 // Change the zoom level for the current main frame. If the level actually
707 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 708 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
708 // telling it what url got zoomed and what its current zoom level is. 709 // telling it what url got zoomed and what its current zoom level is.
709 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 710 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
710 content::PageZoom /* function */) 711 content::PageZoom /* function */)
711 712
712 // Set the zoom level for the current main frame. If the level actually 713 // Set the zoom level for the current main frame. If the level actually
713 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 714 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
714 // telling it what url got zoomed and what its current zoom level is. 715 // telling it what url got zoomed and what its current zoom level is.
715 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, 716 IPC_MESSAGE_ROUTED3(ViewMsg_SetZoomLevel,
716 double /* zoom_level */) 717 int /* zoom_id */,
718 double /* zoom_level */,
719 content::ZoomMode /* zoom_mode */)
717 720
718 // Set the zoom level for a particular url that the renderer is in the 721 // Set the zoom level for a particular url that the renderer is in the
719 // process of loading. This will be stored, to be used if the load commits 722 // process of loading. This will be stored, to be used if the load commits
720 // and ignored otherwise. 723 // and ignored otherwise.
721 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 724 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
722 GURL /* url */, 725 GURL /* url */,
723 double /* zoom_level */) 726 double /* zoom_level */)
724 727
725 // Set the zoom level for a particular url, so all render views 728 // Set the zoom level for a particular url, so all render views
726 // displaying this url can update their zoom levels to match. 729 // displaying this url can update their zoom levels to match.
727 // If scheme is empty, then only host is used for matching. 730 // If scheme is empty, then only host is used for matching.
728 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL, 731 IPC_MESSAGE_CONTROL4(ViewMsg_SetZoomLevelForCurrentURL,
729 std::string /* scheme */, 732 std::string /* scheme */,
730 std::string /* host */, 733 std::string /* host */,
731 double /* zoom_level */) 734 double /* zoom_level */,
735 std::set<int> /* exceptions */)
732 736
733 // Change encoding of page in the renderer. 737 // Change encoding of page in the renderer.
734 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 738 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
735 std::string /*new encoding name*/) 739 std::string /*new encoding name*/)
736 740
737 // Reset encoding of page in the renderer back to default. 741 // Reset encoding of page in the renderer back to default.
738 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 742 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
739 743
740 // Used to tell a render view whether it should expose various bindings 744 // Used to tell a render view whether it should expose various bindings
741 // that allow JS content extended privileges. See BindingsPolicy for valid 745 // that allow JS content extended privileges. See BindingsPolicy for valid
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm, 1576 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm,
1573 GURL, /* in - originating frame URL */ 1577 GURL, /* in - originating frame URL */
1574 base::string16 /* in - alert message */, 1578 base::string16 /* in - alert message */,
1575 bool /* in - is a reload */, 1579 bool /* in - is a reload */,
1576 bool /* out - success */, 1580 bool /* out - success */,
1577 base::string16 /* out - This is ignored.*/) 1581 base::string16 /* out - This is ignored.*/)
1578 1582
1579 // Sent when the renderer changes the zoom level for a particular url, so the 1583 // Sent when the renderer changes the zoom level for a particular url, so the
1580 // browser can update its records. If remember is true, then url is used to 1584 // browser can update its records. If remember is true, then url is used to
1581 // update the zoom level for all pages in that site. Otherwise, the render 1585 // update the zoom level for all pages in that site. Otherwise, the render
1582 // view's id is used so that only the menu is updated. 1586 // view's id is used so that only the menu is updated. |zoom_id| uniquely
1583 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, 1587 // identifies this zoom change.
1588 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidZoomURL,
1589 int /* zoom_id */,
1584 double /* zoom_level */, 1590 double /* zoom_level */,
1585 bool /* remember */, 1591 bool /* remember */,
1586 GURL /* url */) 1592 GURL /* url */)
1587 1593
1588 // Updates the minimum/maximum allowed zoom percent for this tab from the 1594 // Updates the minimum/maximum allowed zoom percent for this tab from the
1589 // default values. If |remember| is true, then the zoom setting is applied to 1595 // default values. If |remember| is true, then the zoom setting is applied to
1590 // other pages in the site and is saved, otherwise it only applies to this 1596 // other pages in the site and is saved, otherwise it only applies to this
1591 // tab. 1597 // tab.
1592 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, 1598 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
1593 int /* minimum_percent */, 1599 int /* minimum_percent */,
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 // synchronously (see crbug.com/120597). This IPC message sends the character 1898 // synchronously (see crbug.com/120597). This IPC message sends the character
1893 // bounds after every composition change to always have correct bound info. 1899 // bounds after every composition change to always have correct bound info.
1894 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1900 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1895 gfx::Range /* composition range */, 1901 gfx::Range /* composition range */,
1896 std::vector<gfx::Rect> /* character bounds */) 1902 std::vector<gfx::Rect> /* character bounds */)
1897 #endif 1903 #endif
1898 1904
1899 // Adding a new message? Stick to the sort order above: first platform 1905 // Adding a new message? Stick to the sort order above: first platform
1900 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1906 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1901 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1907 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698