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

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 copyright years 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
« no previous file with comments | « content/common/media/audio_param_traits.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // Asks the browser for a unique routing ID. 679 // Asks the browser for a unique routing ID.
678 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, 680 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID,
679 int /* routing_id */) 681 int /* routing_id */)
680 682
681 // Asks the browser for the default audio hardware buffer-size. 683 // Asks the browser for the default audio hardware buffer-size.
682 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareBufferSize, 684 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareBufferSize,
683 uint32 /* buffer_size */) 685 uint32 /* buffer_size */)
684 686
685 // Asks the browser for the default audio input hardware sample-rate. 687 // Asks the browser for the default audio input hardware sample-rate.
686 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate, 688 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate,
687 double /* sample_rate */) 689 int /* sample_rate */)
688 690
689 // Asks the browser for the default audio hardware sample-rate. 691 // Asks the browser for the default audio hardware sample-rate.
690 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate, 692 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate,
691 double /* sample_rate */) 693 int /* sample_rate */)
692 694
693 // Asks the browser for the default number of audio input channels. 695 // Asks the browser for the default channel layout.
694 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelCount, 696 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelLayout,
695 uint32 /* channels */) 697 ChannelLayout /* channel layout */)
696 698
697 // Asks the browser for CPU usage of the renderer process in percents. 699 // Asks the browser for CPU usage of the renderer process in percents.
698 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, 700 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage,
699 int /* CPU usage in percents */) 701 int /* CPU usage in percents */)
700 702
701 // Tells the renderer to create a new view. 703 // Tells the renderer to create a new view.
702 // This message is slightly different, the view it takes (via 704 // This message is slightly different, the view it takes (via
703 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 705 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
704 // non-view control message. 706 // non-view control message.
705 IPC_MESSAGE_CONTROL1(ViewMsg_New, 707 IPC_MESSAGE_CONTROL1(ViewMsg_New,
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 // have a javascript send a native value (string, number, boolean) to the 1990 // have a javascript send a native value (string, number, boolean) to the
1989 // listener in Cpp. (DomAutomationController) 1991 // listener in Cpp. (DomAutomationController)
1990 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 1992 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1991 std::string /* json_string */, 1993 std::string /* json_string */,
1992 int /* automation_id */) 1994 int /* automation_id */)
1993 1995
1994 // Enable or disable inverting of web content pixels, for users who prefer 1996 // Enable or disable inverting of web content pixels, for users who prefer
1995 // white-on-black. 1997 // white-on-black.
1996 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, 1998 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent,
1997 bool /* invert */) 1999 bool /* invert */)
OLDNEW
« no previous file with comments | « content/common/media/audio_param_traits.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698