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

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

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Created 6 years, 11 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 #if defined(OS_MACOSX) 66 #if defined(OS_MACOSX)
67 #include "content/common/mac/font_descriptor.h" 67 #include "content/common/mac/font_descriptor.h"
68 #endif 68 #endif
69 69
70 #undef IPC_MESSAGE_EXPORT 70 #undef IPC_MESSAGE_EXPORT
71 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 71 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
72 72
73 #define IPC_MESSAGE_START ViewMsgStart 73 #define IPC_MESSAGE_START ViewMsgStart
74 74
75 IPC_ENUM_TRAITS(AccessibilityMode) 75 IPC_ENUM_TRAITS(AccessibilityModeFlag)
76 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 76 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
77 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType) 77 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType)
78 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) 78 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type)
79 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) 79 IPC_ENUM_TRAITS(blink::WebPluginAction::Type)
80 IPC_ENUM_TRAITS(blink::WebPopupType) 80 IPC_ENUM_TRAITS(blink::WebPopupType)
81 IPC_ENUM_TRAITS(blink::WebTextDirection) 81 IPC_ENUM_TRAITS(blink::WebTextDirection)
82 IPC_ENUM_TRAITS(WindowContainerType) 82 IPC_ENUM_TRAITS(WindowContainerType)
83 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 83 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
84 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 84 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
85 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 85 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 735
736 // The initial page ID to use for this view, which must be larger than any 736 // The initial page ID to use for this view, which must be larger than any
737 // existing navigation that might be loaded in the view. Page IDs are unique 737 // existing navigation that might be loaded in the view. Page IDs are unique
738 // to a view and are only updated by the renderer after this initial value. 738 // to a view and are only updated by the renderer after this initial value.
739 IPC_STRUCT_MEMBER(int32, next_page_id) 739 IPC_STRUCT_MEMBER(int32, next_page_id)
740 740
741 // The properties of the screen associated with the view. 741 // The properties of the screen associated with the view.
742 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) 742 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info)
743 743
744 // The accessibility mode of the renderer. 744 // The accessibility mode of the renderer.
745 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) 745 IPC_STRUCT_MEMBER(unsigned int, accessibility_mode)
746 746
747 // Specifies whether partially swapping composited buffers is 747 // Specifies whether partially swapping composited buffers is
748 // allowed for a renderer. Partial swaps will be used if they are both 748 // allowed for a renderer. Partial swaps will be used if they are both
749 // allowed and supported. 749 // allowed and supported.
750 IPC_STRUCT_MEMBER(bool, allow_partial_swap) 750 IPC_STRUCT_MEMBER(bool, allow_partial_swap)
751 IPC_STRUCT_END() 751 IPC_STRUCT_END()
752 752
753 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) 753 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
754 // The serialized script value. 754 // The serialized script value.
755 IPC_STRUCT_MEMBER(base::string16, data) 755 IPC_STRUCT_MEMBER(base::string16, data)
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, 1264 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML,
1265 int /* job_id */, 1265 int /* job_id */,
1266 IPC::PlatformFileForTransit /* file handle */) 1266 IPC::PlatformFileForTransit /* file handle */)
1267 1267
1268 // Temporary message to diagnose an unexpected condition in WebContentsImpl. 1268 // Temporary message to diagnose an unexpected condition in WebContentsImpl.
1269 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, 1269 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData,
1270 GURL /* data */) 1270 GURL /* data */)
1271 1271
1272 // Change the accessibility mode in the renderer process. 1272 // Change the accessibility mode in the renderer process.
1273 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, 1273 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode,
1274 AccessibilityMode) 1274 unsigned int /* accessibility_mode */)
1275 1275
1276 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer 1276 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
1277 // process to release the magnified image. 1277 // process to release the magnified image.
1278 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, 1278 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB,
1279 TransportDIB::Handle /* DIB handle */) 1279 TransportDIB::Handle /* DIB handle */)
1280 1280
1281 // Notifies the renderer that a snapshot has been retrieved. 1281 // Notifies the renderer that a snapshot has been retrieved.
1282 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, 1282 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted,
1283 int /* snapshot_id */, 1283 int /* snapshot_id */,
1284 gfx::Size /* size */, 1284 gfx::Size /* size */,
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 // synchronously (see crbug.com/120597). This IPC message sends the character 2331 // synchronously (see crbug.com/120597). This IPC message sends the character
2332 // bounds after every composition change to always have correct bound info. 2332 // bounds after every composition change to always have correct bound info.
2333 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2333 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2334 gfx::Range /* composition range */, 2334 gfx::Range /* composition range */,
2335 std::vector<gfx::Rect> /* character bounds */) 2335 std::vector<gfx::Rect> /* character bounds */)
2336 #endif 2336 #endif
2337 2337
2338 // Adding a new message? Stick to the sort order above: first platform 2338 // Adding a new message? Stick to the sort order above: first platform
2339 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2339 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2340 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2340 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698