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

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

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years, 9 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/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/css_colors.h" 11 #include "content/common/css_colors.h"
12 #include "content/common/edit_command.h" 12 #include "content/common/edit_command.h"
13 #include "content/common/navigation_gesture.h" 13 #include "content/common/navigation_gesture.h"
14 #include "content/common/view_message_enums.h" 14 #include "content/common/view_message_enums.h"
15 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
16 #include "content/public/common/context_menu_params.h" 16 #include "content/public/common/context_menu_params.h"
17 #include "content/public/common/file_chooser_params.h" 17 #include "content/public/common/file_chooser_params.h"
18 #include "content/public/common/frame_navigate_params.h" 18 #include "content/public/common/frame_navigate_params.h"
19 #include "content/public/common/page_zoom.h" 19 #include "content/public/common/page_zoom.h"
20 #include "content/public/common/referrer.h" 20 #include "content/public/common/referrer.h"
21 #include "content/public/common/renderer_preferences.h" 21 #include "content/public/common/renderer_preferences.h"
22 #include "content/public/common/stop_find_action.h" 22 #include "content/public/common/stop_find_action.h"
23 #include "content/public/common/webkit_param_traits.h" 23 #include "content/public/common/webkit_param_traits.h"
24 #include "content/public/common/window_container_type.h" 24 #include "content/public/common/window_container_type.h"
25 #include "ipc/ipc_channel_handle.h" 25 #include "ipc/ipc_channel_handle.h"
26 #include "ipc/ipc_message_macros.h" 26 #include "ipc/ipc_message_macros.h"
27 #include "ipc/ipc_platform_file.h" 27 #include "ipc/ipc_platform_file.h"
28 #include "media/base/channel_layout.h"
28 #include "media/base/media_log_event.h" 29 #include "media/base/media_log_event.h"
29 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
37 #include "ui/base/ime/text_input_type.h" 38 #include "ui/base/ime/text_input_type.h"
38 #include "ui/base/javascript_message_type.h" 39 #include "ui/base/javascript_message_type.h"
39 #include "ui/base/range/range.h" 40 #include "ui/base/range/range.h"
40 #include "ui/gfx/point.h" 41 #include "ui/gfx/point.h"
41 #include "ui/gfx/rect.h" 42 #include "ui/gfx/rect.h"
42 #include "webkit/glue/webcookie.h" 43 #include "webkit/glue/webcookie.h"
43 #include "webkit/glue/webmenuitem.h" 44 #include "webkit/glue/webmenuitem.h"
44 #include "webkit/glue/webpreferences.h" 45 #include "webkit/glue/webpreferences.h"
45 #include "webkit/plugins/npapi/webplugin.h" 46 #include "webkit/plugins/npapi/webplugin.h"
46 47
47 #if defined(OS_MACOSX) 48 #if defined(OS_MACOSX)
48 #include "content/common/mac/font_descriptor.h" 49 #include "content/common/mac/font_descriptor.h"
49 #endif 50 #endif
50 51
51 #undef IPC_MESSAGE_EXPORT 52 #undef IPC_MESSAGE_EXPORT
52 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 53 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
53 54
54 #define IPC_MESSAGE_START ViewMsgStart 55 #define IPC_MESSAGE_START ViewMsgStart
55 56
57 IPC_ENUM_TRAITS(ChannelLayout)
56 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 58 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
57 IPC_ENUM_TRAITS(NavigationGesture) 59 IPC_ENUM_TRAITS(NavigationGesture)
58 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 60 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
59 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 61 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
60 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 62 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
61 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) 63 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type)
62 IPC_ENUM_TRAITS(WebKit::WebPopupType) 64 IPC_ENUM_TRAITS(WebKit::WebPopupType)
63 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) 65 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
64 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 66 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
65 IPC_ENUM_TRAITS(WebMenuItem::Type) 67 IPC_ENUM_TRAITS(WebMenuItem::Type)
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 uint32 /* buffer_size */) 675 uint32 /* buffer_size */)
674 676
675 // Asks the browser for the default audio input hardware sample-rate. 677 // Asks the browser for the default audio input hardware sample-rate.
676 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate, 678 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate,
677 double /* sample_rate */) 679 double /* sample_rate */)
678 680
679 // Asks the browser for the default audio hardware sample-rate. 681 // Asks the browser for the default audio hardware sample-rate.
680 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate, 682 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate,
681 double /* sample_rate */) 683 double /* sample_rate */)
682 684
683 // Asks the browser for the default number of audio input channels. 685 // Asks the browser for the default channel layout.
684 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelCount, 686 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelLayout,
685 uint32 /* channels */) 687 ChannelLayout /* channel layout */)
686 688
687 // Asks the browser for CPU usage of the renderer process in percents. 689 // Asks the browser for CPU usage of the renderer process in percents.
688 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, 690 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage,
689 int /* CPU usage in percents */) 691 int /* CPU usage in percents */)
690 692
691 // Tells the renderer to create a new view. 693 // Tells the renderer to create a new view.
692 // This message is slightly different, the view it takes (via 694 // This message is slightly different, the view it takes (via
693 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 695 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
694 // non-view control message. 696 // non-view control message.
695 IPC_MESSAGE_CONTROL1(ViewMsg_New, 697 IPC_MESSAGE_CONTROL1(ViewMsg_New,
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 // have a javascript send a native value (string, number, boolean) to the 1956 // have a javascript send a native value (string, number, boolean) to the
1955 // listener in Cpp. (DomAutomationController) 1957 // listener in Cpp. (DomAutomationController)
1956 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 1958 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1957 std::string /* json_string */, 1959 std::string /* json_string */,
1958 int /* automation_id */) 1960 int /* automation_id */)
1959 1961
1960 // Enable or disable inverting of web content pixels, for users who prefer 1962 // Enable or disable inverting of web content pixels, for users who prefer
1961 // white-on-black. 1963 // white-on-black.
1962 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, 1964 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent,
1963 bool /* invert */) 1965 bool /* invert */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698