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

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

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/navigation_gesture.h" 12 #include "content/common/navigation_gesture.h"
13 #include "content/public/common/color_suggestion.h" 13 #include "content/public/common/color_suggestion.h"
14 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
15 #include "content/public/common/context_menu_params.h" 15 #include "content/public/common/context_menu_params.h"
16 #include "content/public/common/frame_navigate_params.h" 16 #include "content/public/common/frame_navigate_params.h"
17 #include "content/public/common/javascript_message_type.h" 17 #include "content/public/common/javascript_message_type.h"
18 #include "content/public/common/page_state.h" 18 #include "content/public/common/page_state.h"
19 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
20 #include "ui/gfx/ipc/gfx_param_traits.h" 20 #include "ui/gfx/ipc/gfx_param_traits.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 #undef IPC_MESSAGE_EXPORT 23 #undef IPC_MESSAGE_EXPORT
24 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 24 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
25 25
26 #define IPC_MESSAGE_START FrameMsgStart 26 #define IPC_MESSAGE_START FrameMsgStart
27 27
28 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
29 AccessibilityModeOff,
30 AccessibilityModeComplete)
28 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, 31 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
29 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, 32 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
30 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) 33 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
31 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 34 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
32 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 35 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
33 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
34 blink::WebContextMenuData::MediaTypeLast) 37 blink::WebContextMenuData::MediaTypeLast)
35 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 38 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
36 39
37 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 40 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 350
348 // Request the text surrounding the selection with a |max_length|. The response 351 // Request the text surrounding the selection with a |max_length|. The response
349 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. 352 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse.
350 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, 353 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest,
351 size_t /* max_length */) 354 size_t /* max_length */)
352 355
353 // Tells the renderer to insert a link to the specified stylesheet. This is 356 // Tells the renderer to insert a link to the specified stylesheet. This is
354 // needed to support navigation transitions. 357 // needed to support navigation transitions.
355 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) 358 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string)
356 359
360 // Change the accessibility mode in the renderer process.
361 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode,
362 AccessibilityMode)
363
357 // ----------------------------------------------------------------------------- 364 // -----------------------------------------------------------------------------
358 // Messages sent from the renderer to the browser. 365 // Messages sent from the renderer to the browser.
359 366
360 // Blink and JavaScript error messages to log to the console 367 // Blink and JavaScript error messages to log to the console
361 // or debugger UI. 368 // or debugger UI.
362 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 369 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
363 int32, /* log level */ 370 int32, /* log level */
364 base::string16, /* msg */ 371 base::string16, /* msg */
365 int32, /* line number */ 372 int32, /* line number */
366 base::string16 /* source id */ ) 373 base::string16 /* source id */ )
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 // |endOffset| are the offsets of the selection in the returned |content|. 618 // |endOffset| are the offsets of the selection in the returned |content|.
612 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 619 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
613 base::string16, /* content */ 620 base::string16, /* content */
614 size_t, /* startOffset */ 621 size_t, /* startOffset */
615 size_t /* endOffset */) 622 size_t /* endOffset */)
616 623
617 // Notifies the browser that the renderer has a pending navigation transition. 624 // Notifies the browser that the renderer has a pending navigation transition.
618 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, 625 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest,
619 int /* render_frame_id */, 626 int /* render_frame_id */,
620 bool /* is_transition */) 627 bool /* is_transition */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698