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

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

Issue 11231077: Move a bunch more code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/navigation_gesture.h ('k') | content/common/web_database_observer_impl.h » ('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"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "content/common/mac/font_descriptor.h" 54 #include "content/common/mac/font_descriptor.h"
55 #endif 55 #endif
56 56
57 #undef IPC_MESSAGE_EXPORT 57 #undef IPC_MESSAGE_EXPORT
58 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 58 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
59 59
60 #define IPC_MESSAGE_START ViewMsgStart 60 #define IPC_MESSAGE_START ViewMsgStart
61 61
62 IPC_ENUM_TRAITS(AccessibilityMode) 62 IPC_ENUM_TRAITS(AccessibilityMode)
63 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 63 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
64 IPC_ENUM_TRAITS(NavigationGesture)
65 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 64 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
66 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 65 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
67 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 66 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
68 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) 67 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type)
69 IPC_ENUM_TRAITS(WebKit::WebPopupType) 68 IPC_ENUM_TRAITS(WebKit::WebPopupType)
70 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 69 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
71 IPC_ENUM_TRAITS(WebMenuItem::Type) 70 IPC_ENUM_TRAITS(WebMenuItem::Type)
72 IPC_ENUM_TRAITS(WindowContainerType) 71 IPC_ENUM_TRAITS(WindowContainerType)
73 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 72 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
74 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 73 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
74 IPC_ENUM_TRAITS(content::NavigationGesture)
75 IPC_ENUM_TRAITS(content::PageZoom) 75 IPC_ENUM_TRAITS(content::PageZoom)
76 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 76 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
77 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 77 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
78 IPC_ENUM_TRAITS(content::StopFindAction) 78 IPC_ENUM_TRAITS(content::StopFindAction)
79 IPC_ENUM_TRAITS(media::ChannelLayout) 79 IPC_ENUM_TRAITS(media::ChannelLayout)
80 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 80 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
81 IPC_ENUM_TRAITS(ui::TextInputType) 81 IPC_ENUM_TRAITS(ui::TextInputType)
82 82
83 IPC_STRUCT_TRAITS_BEGIN(EditCommand)
84 IPC_STRUCT_TRAITS_MEMBER(name)
85 IPC_STRUCT_TRAITS_MEMBER(value)
86 IPC_STRUCT_TRAITS_END()
87
88 #if defined(OS_MACOSX) 83 #if defined(OS_MACOSX)
89 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 84 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
90 IPC_STRUCT_TRAITS_MEMBER(font_name) 85 IPC_STRUCT_TRAITS_MEMBER(font_name)
91 IPC_STRUCT_TRAITS_MEMBER(font_point_size) 86 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
92 IPC_STRUCT_TRAITS_END() 87 IPC_STRUCT_TRAITS_END()
93 #endif 88 #endif
94 89
95 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCompositionUnderline) 90 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCompositionUnderline)
96 IPC_STRUCT_TRAITS_MEMBER(startOffset) 91 IPC_STRUCT_TRAITS_MEMBER(startOffset)
97 IPC_STRUCT_TRAITS_MEMBER(endOffset) 92 IPC_STRUCT_TRAITS_MEMBER(endOffset)
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_STRUCT_TRAITS_MEMBER(selection_end) 275 IPC_STRUCT_TRAITS_MEMBER(selection_end)
281 #endif 276 #endif
282 IPC_STRUCT_TRAITS_END() 277 IPC_STRUCT_TRAITS_END()
283 278
284 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext) 279 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext)
285 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) 280 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
286 IPC_STRUCT_TRAITS_MEMBER(request_id) 281 IPC_STRUCT_TRAITS_MEMBER(request_id)
287 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) 282 IPC_STRUCT_TRAITS_MEMBER(render_widget_id)
288 IPC_STRUCT_TRAITS_END() 283 IPC_STRUCT_TRAITS_END()
289 284
285 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
286 IPC_STRUCT_TRAITS_MEMBER(name)
287 IPC_STRUCT_TRAITS_MEMBER(value)
288 IPC_STRUCT_TRAITS_END()
289
290 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) 290 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
291 IPC_STRUCT_TRAITS_MEMBER(mode) 291 IPC_STRUCT_TRAITS_MEMBER(mode)
292 IPC_STRUCT_TRAITS_MEMBER(title) 292 IPC_STRUCT_TRAITS_MEMBER(title)
293 IPC_STRUCT_TRAITS_MEMBER(default_file_name) 293 IPC_STRUCT_TRAITS_MEMBER(default_file_name)
294 IPC_STRUCT_TRAITS_MEMBER(accept_types) 294 IPC_STRUCT_TRAITS_MEMBER(accept_types)
295 IPC_STRUCT_TRAITS_END() 295 IPC_STRUCT_TRAITS_END()
296 296
297 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) 297 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
298 IPC_STRUCT_TRAITS_MEMBER(page_id) 298 IPC_STRUCT_TRAITS_MEMBER(page_id)
299 IPC_STRUCT_TRAITS_MEMBER(url) 299 IPC_STRUCT_TRAITS_MEMBER(url)
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) 474 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams)
475 // The frame ID for this navigation. The frame ID uniquely identifies the 475 // The frame ID for this navigation. The frame ID uniquely identifies the
476 // frame the navigation happened in for a given renderer. 476 // frame the navigation happened in for a given renderer.
477 IPC_STRUCT_MEMBER(int64, frame_id) 477 IPC_STRUCT_MEMBER(int64, frame_id)
478 478
479 // Information regarding the security of the connection (empty if the 479 // Information regarding the security of the connection (empty if the
480 // connection was not secure). 480 // connection was not secure).
481 IPC_STRUCT_MEMBER(std::string, security_info) 481 IPC_STRUCT_MEMBER(std::string, security_info)
482 482
483 // The gesture that initiated this navigation. 483 // The gesture that initiated this navigation.
484 IPC_STRUCT_MEMBER(NavigationGesture, gesture) 484 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture)
485 485
486 // True if this was a post request. 486 // True if this was a post request.
487 IPC_STRUCT_MEMBER(bool, is_post) 487 IPC_STRUCT_MEMBER(bool, is_post)
488 488
489 // The POST body identifier. -1 if it doesn't exist. 489 // The POST body identifier. -1 if it doesn't exist.
490 IPC_STRUCT_MEMBER(int64, post_id) 490 IPC_STRUCT_MEMBER(int64, post_id)
491 491
492 // Whether the frame navigation resulted in no change to the documents within 492 // Whether the frame navigation resulted in no change to the documents within
493 // the page. For example, the navigation may have just resulted in scrolling 493 // the page. For example, the navigation may have just resulted in scrolling
494 // to a named anchor. 494 // to a named anchor.
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 // by webkit, the specified edit commands shall be executed against current 946 // by webkit, the specified edit commands shall be executed against current
947 // focused frame. 947 // focused frame.
948 // Parameters 948 // Parameters
949 // * edit_commands (see chrome/common/edit_command_types.h) 949 // * edit_commands (see chrome/common/edit_command_types.h)
950 // Contains one or more edit commands. 950 // Contains one or more edit commands.
951 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed 951 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed
952 // definition of webkit edit commands. 952 // definition of webkit edit commands.
953 // 953 //
954 // This message must be sent just before sending a key event. 954 // This message must be sent just before sending a key event.
955 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent, 955 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent,
956 std::vector<EditCommand> /* edit_commands */) 956 std::vector<content::EditCommand> /* edit_commands */)
957 957
958 // Message payload is the name/value of a WebCore edit command to execute. 958 // Message payload is the name/value of a WebCore edit command to execute.
959 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand, 959 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand,
960 std::string, /* name */ 960 std::string, /* name */
961 std::string /* value */) 961 std::string /* value */)
962 962
963 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) 963 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost)
964 964
965 // TODO(darin): figure out how this meshes with RestoreFocus 965 // TODO(darin): figure out how this meshes with RestoreFocus
966 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, 966 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus,
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2410 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2411 GURL /* content_url */) 2411 GURL /* content_url */)
2412 #endif 2412 #endif
2413 2413
2414 // Notifies that multiple touch targets may have been pressed, and to show 2414 // Notifies that multiple touch targets may have been pressed, and to show
2415 // the disambiguation popup. 2415 // the disambiguation popup.
2416 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2416 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2417 gfx::Rect, /* Border of touched targets */ 2417 gfx::Rect, /* Border of touched targets */
2418 gfx::Size, /* Size of zoomed image */ 2418 gfx::Size, /* Size of zoomed image */
2419 TransportDIB::Id /* DIB of zoomed image */) 2419 TransportDIB::Id /* DIB of zoomed image */)
OLDNEW
« no previous file with comments | « content/common/navigation_gesture.h ('k') | content/common/web_database_observer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698