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

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: . 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/selected_file_info.h" 22 #include "content/public/common/selected_file_info.h"
23 #include "content/public/common/stop_find_action.h" 23 #include "content/public/common/stop_find_action.h"
24 #include "content/public/common/webkit_param_traits.h" 24 #include "content/public/common/webkit_param_traits.h"
25 #include "content/public/common/window_container_type.h" 25 #include "content/public/common/window_container_type.h"
26 #include "ipc/ipc_channel_handle.h" 26 #include "ipc/ipc_channel_handle.h"
27 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
28 #include "ipc/ipc_platform_file.h" 28 #include "ipc/ipc_platform_file.h"
29 #include "media/base/channel_layout.h"
29 #include "media/base/media_log_event.h" 30 #include "media/base/media_log_event.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 31 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
38 #include "ui/base/ime/text_input_type.h" 39 #include "ui/base/ime/text_input_type.h"
39 #include "ui/base/javascript_message_type.h" 40 #include "ui/base/javascript_message_type.h"
40 #include "ui/base/range/range.h" 41 #include "ui/base/range/range.h"
41 #include "ui/gfx/point.h" 42 #include "ui/gfx/point.h"
42 #include "ui/gfx/rect.h" 43 #include "ui/gfx/rect.h"
43 #include "webkit/glue/webcookie.h" 44 #include "webkit/glue/webcookie.h"
44 #include "webkit/glue/webmenuitem.h" 45 #include "webkit/glue/webmenuitem.h"
45 #include "webkit/glue/webpreferences.h" 46 #include "webkit/glue/webpreferences.h"
46 #include "webkit/plugins/npapi/webplugin.h" 47 #include "webkit/plugins/npapi/webplugin.h"
47 48
48 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
49 #include "content/common/mac/font_descriptor.h" 50 #include "content/common/mac/font_descriptor.h"
50 #endif 51 #endif
51 52
52 #undef IPC_MESSAGE_EXPORT 53 #undef IPC_MESSAGE_EXPORT
53 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 54 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
54 55
55 #define IPC_MESSAGE_START ViewMsgStart 56 #define IPC_MESSAGE_START ViewMsgStart
56 57
58 IPC_ENUM_TRAITS(ChannelLayout)
57 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 59 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
58 IPC_ENUM_TRAITS(NavigationGesture) 60 IPC_ENUM_TRAITS(NavigationGesture)
59 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 61 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
60 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 62 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
61 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 63 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
62 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) 64 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type)
63 IPC_ENUM_TRAITS(WebKit::WebPopupType) 65 IPC_ENUM_TRAITS(WebKit::WebPopupType)
64 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) 66 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
65 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 67 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
66 IPC_ENUM_TRAITS(WebMenuItem::Type) 68 IPC_ENUM_TRAITS(WebMenuItem::Type)
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // Asks the browser for a unique routing ID. 675 // Asks the browser for a unique routing ID.
674 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, 676 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID,
675 int /* routing_id */) 677 int /* routing_id */)
676 678
677 // Asks the browser for the default audio hardware buffer-size. 679 // Asks the browser for the default audio hardware buffer-size.
678 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareBufferSize, 680 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareBufferSize,
679 uint32 /* buffer_size */) 681 uint32 /* buffer_size */)
680 682
681 // Asks the browser for the default audio input hardware sample-rate. 683 // Asks the browser for the default audio input hardware sample-rate.
682 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate, 684 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate,
683 double /* sample_rate */) 685 int /* sample_rate */)
684 686
685 // Asks the browser for the default audio hardware sample-rate. 687 // Asks the browser for the default audio hardware sample-rate.
686 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate, 688 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate,
687 double /* sample_rate */) 689 int /* sample_rate */)
688 690
689 // Asks the browser for the default number of audio input channels. 691 // Asks the browser for the default channel layout.
690 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelCount, 692 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelLayout,
691 uint32 /* channels */) 693 ChannelLayout /* channel layout */)
692 694
693 // Asks the browser for CPU usage of the renderer process in percents. 695 // Asks the browser for CPU usage of the renderer process in percents.
694 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, 696 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage,
695 int /* CPU usage in percents */) 697 int /* CPU usage in percents */)
696 698
697 // Tells the renderer to create a new view. 699 // Tells the renderer to create a new view.
698 // This message is slightly different, the view it takes (via 700 // This message is slightly different, the view it takes (via
699 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 701 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
700 // non-view control message. 702 // non-view control message.
701 IPC_MESSAGE_CONTROL1(ViewMsg_New, 703 IPC_MESSAGE_CONTROL1(ViewMsg_New,
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 // have a javascript send a native value (string, number, boolean) to the 1967 // have a javascript send a native value (string, number, boolean) to the
1966 // listener in Cpp. (DomAutomationController) 1968 // listener in Cpp. (DomAutomationController)
1967 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 1969 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1968 std::string /* json_string */, 1970 std::string /* json_string */,
1969 int /* automation_id */) 1971 int /* automation_id */)
1970 1972
1971 // Enable or disable inverting of web content pixels, for users who prefer 1973 // Enable or disable inverting of web content pixels, for users who prefer
1972 // white-on-black. 1974 // white-on-black.
1973 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, 1975 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent,
1974 bool /* invert */) 1976 bool /* invert */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698