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

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: Fix more compile errors Created 6 years, 7 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 "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 24
25 #define IPC_MESSAGE_START FrameMsgStart 25 #define IPC_MESSAGE_START FrameMsgStart
26 26
27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
28 AccessibilityModeOff,
29 AccessibilityModeComplete)
27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, 30 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
28 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, 31 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
29 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) 32 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
30 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 33 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
31 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 34 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 35 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
33 blink::WebContextMenuData::MediaTypeLast) 36 blink::WebContextMenuData::MediaTypeLast)
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 37 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
35 38
36 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 39 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // doing so. 349 // doing so.
347 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, 350 IPC_MESSAGE_ROUTED1(FrameMsg_Reload,
348 bool /* ignore_cache */) 351 bool /* ignore_cache */)
349 352
350 // Notifies the color chooser client that the user selected a color. 353 // Notifies the color chooser client that the user selected a color.
351 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) 354 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor)
352 355
353 // Notifies the color chooser client that the color chooser has ended. 356 // Notifies the color chooser client that the color chooser has ended.
354 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) 357 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned)
355 358
359 // Change the accessibility mode in the renderer process.
360 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode,
361 AccessibilityMode)
362
356 // ----------------------------------------------------------------------------- 363 // -----------------------------------------------------------------------------
357 // Messages sent from the renderer to the browser. 364 // Messages sent from the renderer to the browser.
358 365
359 // Blink and JavaScript error messages to log to the console 366 // Blink and JavaScript error messages to log to the console
360 // or debugger UI. 367 // or debugger UI.
361 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 368 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
362 int32, /* log level */ 369 int32, /* log level */
363 base::string16, /* msg */ 370 base::string16, /* msg */
364 int32, /* line number */ 371 int32, /* line number */
365 base::string16 /* source id */ ) 372 base::string16 /* source id */ )
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 SkColor /* color */) 601 SkColor /* color */)
595 602
596 // Notifies the browser that media has started/stopped playing. 603 // Notifies the browser that media has started/stopped playing.
597 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, 604 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification,
598 int64 /* player_cookie, distinguishes instances */, 605 int64 /* player_cookie, distinguishes instances */,
599 bool /* has_video */, 606 bool /* has_video */,
600 bool /* has_audio */) 607 bool /* has_audio */)
601 608
602 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, 609 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification,
603 int64 /* player_cookie, distinguishes instances */) 610 int64 /* player_cookie, distinguishes instances */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698