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

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

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups after restructuring based on review feedback from @jam. 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
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/content_param_traits.h" 11 #include "content/common/content_param_traits.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/javascript_message_type.h" 19 #include "content/public/common/javascript_message_type.h"
20 #include "content/public/common/page_zoom.h" 20 #include "content/public/common/page_zoom.h"
21 #include "content/public/common/referrer.h" 21 #include "content/public/common/referrer.h"
22 #include "content/public/common/renderer_preferences.h" 22 #include "content/public/common/renderer_preferences.h"
23 #include "content/public/common/stop_find_action.h" 23 #include "content/public/common/stop_find_action.h"
24 #include "content/public/common/three_d_api_types.h"
24 #include "content/public/common/window_container_type.h" 25 #include "content/public/common/window_container_type.h"
25 #include "ipc/ipc_channel_handle.h" 26 #include "ipc/ipc_channel_handle.h"
26 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
27 #include "ipc/ipc_platform_file.h" 28 #include "ipc/ipc_platform_file.h"
28 #include "media/base/channel_layout.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/Platform/chromium/public/WebFloatPoint.h" 32 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" 33 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 69 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
69 IPC_ENUM_TRAITS(WebMenuItem::Type) 70 IPC_ENUM_TRAITS(WebMenuItem::Type)
70 IPC_ENUM_TRAITS(WindowContainerType) 71 IPC_ENUM_TRAITS(WindowContainerType)
71 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 72 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
72 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 73 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
73 IPC_ENUM_TRAITS(content::NavigationGesture) 74 IPC_ENUM_TRAITS(content::NavigationGesture)
74 IPC_ENUM_TRAITS(content::PageZoom) 75 IPC_ENUM_TRAITS(content::PageZoom)
75 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 76 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
76 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 77 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
77 IPC_ENUM_TRAITS(content::StopFindAction) 78 IPC_ENUM_TRAITS(content::StopFindAction)
79 IPC_ENUM_TRAITS(content::ThreeDAPIType)
78 IPC_ENUM_TRAITS(media::ChannelLayout) 80 IPC_ENUM_TRAITS(media::ChannelLayout)
79 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 81 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
80 IPC_ENUM_TRAITS(ui::TextInputType) 82 IPC_ENUM_TRAITS(ui::TextInputType)
81 83
82 #if defined(OS_MACOSX) 84 #if defined(OS_MACOSX)
83 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 85 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
84 IPC_STRUCT_TRAITS_MEMBER(font_name) 86 IPC_STRUCT_TRAITS_MEMBER(font_name)
85 IPC_STRUCT_TRAITS_MEMBER(font_point_size) 87 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
86 IPC_STRUCT_TRAITS_END() 88 IPC_STRUCT_TRAITS_END()
87 #endif 89 #endif
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2399 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2401 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2400 GURL /* content_url */) 2402 GURL /* content_url */)
2401 #endif 2403 #endif
2402 2404
2403 // Notifies that multiple touch targets may have been pressed, and to show 2405 // Notifies that multiple touch targets may have been pressed, and to show
2404 // the disambiguation popup. 2406 // the disambiguation popup.
2405 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2407 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2406 gfx::Rect, /* Border of touched targets */ 2408 gfx::Rect, /* Border of touched targets */
2407 gfx::Size, /* Size of zoomed image */ 2409 gfx::Size, /* Size of zoomed image */
2408 TransportDIB::Id /* DIB of zoomed image */) 2410 TransportDIB::Id /* DIB of zoomed image */)
2411
2412 // Sent by the renderer process to check whether client 3D APIs
2413 // (Pepper 3D, WebGL) are explicitly blocked.
2414 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Are3DAPIsBlocked,
2415 int /* render_view_id */,
2416 GURL /* top origin url */,
jam 2012/11/15 16:57:25 nit: here and below, the convention is to put the
Ken Russell (switch to Gerrit) 2012/11/15 20:53:25 Renamed some of the dispatching methods' parameter
2417 content::ThreeDAPIType /* requesting API */,
2418 bool /* blocked */)
2419
2420 // Sent by the renderer process to indicate that a context was lost by
2421 // client 3D content (Pepper 3D, WebGL) running on the page at the
2422 // given URL.
2423 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext,
2424 GURL /* top origin url */,
2425 content::ThreeDAPIType /* context type */,
2426 int /* GL_ARB_robustness context loss code */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698