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/frame_messages.h

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't use metadata to stash IPC messages 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 "content/public/common/widget_visible_state.h"
19 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
20 #include "url/gurl.h" 21 #include "url/gurl.h"
21 22
22 #undef IPC_MESSAGE_EXPORT 23 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 24 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 25
25 #define IPC_MESSAGE_START FrameMsgStart 26 #define IPC_MESSAGE_START FrameMsgStart
26 27
27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, 28 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
28 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, 29 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
29 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) 30 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
30 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 31 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
31 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 32 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 33 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
33 blink::WebContextMenuData::MediaTypeLast) 34 blink::WebContextMenuData::MediaTypeLast)
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 35 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
36 IPC_ENUM_TRAITS_MAX_VALUE(content::WidgetVisibleState,
37 content::WIDGET_VISIBLE_STATE_MAX)
35 38
36 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 39 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
37 IPC_STRUCT_TRAITS_MEMBER(color) 40 IPC_STRUCT_TRAITS_MEMBER(color)
38 IPC_STRUCT_TRAITS_MEMBER(label) 41 IPC_STRUCT_TRAITS_MEMBER(label)
39 IPC_STRUCT_TRAITS_END() 42 IPC_STRUCT_TRAITS_END()
40 43
41 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 44 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
42 IPC_STRUCT_TRAITS_MEMBER(media_type) 45 IPC_STRUCT_TRAITS_MEMBER(media_type)
43 IPC_STRUCT_TRAITS_MEMBER(x) 46 IPC_STRUCT_TRAITS_MEMBER(x)
44 IPC_STRUCT_TRAITS_MEMBER(y) 47 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 SkColor /* color */) 597 SkColor /* color */)
595 598
596 // Notifies the browser that media has started/stopped playing. 599 // Notifies the browser that media has started/stopped playing.
597 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, 600 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification,
598 int64 /* player_cookie, distinguishes instances */, 601 int64 /* player_cookie, distinguishes instances */,
599 bool /* has_video */, 602 bool /* has_video */,
600 bool /* has_audio */) 603 bool /* has_audio */)
601 604
602 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, 605 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification,
603 int64 /* player_cookie, distinguishes instances */) 606 int64 /* player_cookie, distinguishes instances */)
607
608 // TODO(mkosiba): docs
609 IPC_MESSAGE_ROUTED1(FrameHostMsg_WidgetVisibleStateChanged,
610 content::WidgetVisibleState /* visible state */)
611
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698