Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 #include "content/public/common/stop_find_action.h" | 32 #include "content/public/common/stop_find_action.h" |
| 33 #include "content/public/common/three_d_api_types.h" | 33 #include "content/public/common/three_d_api_types.h" |
| 34 #include "content/public/common/window_container_type.h" | 34 #include "content/public/common/window_container_type.h" |
| 35 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
| 36 #include "ipc/ipc_message_macros.h" | 36 #include "ipc/ipc_message_macros.h" |
| 37 #include "ipc/ipc_platform_file.h" | 37 #include "ipc/ipc_platform_file.h" |
| 38 #include "media/audio/audio_parameters.h" | 38 #include "media/audio/audio_parameters.h" |
| 39 #include "media/base/channel_layout.h" | 39 #include "media/base/channel_layout.h" |
| 40 #include "media/base/media_log_event.h" | 40 #include "media/base/media_log_event.h" |
| 41 #include "net/base/network_change_notifier.h" | 41 #include "net/base/network_change_notifier.h" |
| 42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | |
| 42 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 43 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 43 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 44 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 44 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 45 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 45 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" | 46 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" |
| 46 #include "third_party/WebKit/public/web/WebFindOptions.h" | 47 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 47 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 48 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
| 48 #include "third_party/WebKit/public/web/WebPluginAction.h" | 49 #include "third_party/WebKit/public/web/WebPluginAction.h" |
| 49 #include "third_party/WebKit/public/web/WebPopupType.h" | 50 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 50 #include "third_party/WebKit/public/web/WebTextDirection.h" | 51 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 51 #include "third_party/skia/include/core/SkBitmap.h" | 52 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 77 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition, | 78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition, |
| 78 blink::WebDeviceEmulationParams::ScreenPositionLast) | 79 blink::WebDeviceEmulationParams::ScreenPositionLast) |
| 79 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type, | 80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type, |
| 80 blink::WebMediaPlayerAction::Type::TypeLast) | 81 blink::WebMediaPlayerAction::Type::TypeLast) |
| 81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type, | 82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type, |
| 82 blink::WebPluginAction::Type::TypeLast) | 83 blink::WebPluginAction::Type::TypeLast) |
| 83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType, | 84 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType, |
| 84 blink::WebPopupType::WebPopupTypeLast) | 85 blink::WebPopupType::WebPopupTypeLast) |
| 85 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, | 86 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, |
| 86 blink::WebTextDirection::WebTextDirectionLast) | 87 blink::WebTextDirection::WebTextDirectionLast) |
| 88 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode, | |
| 89 blink::WebDisplayMode::WebDisplayModeFullscreen) | |
|
scheib
2015/03/27 16:50:51
Enum should have a ___Last member.
| |
| 87 IPC_ENUM_TRAITS(WindowContainerType) | 90 IPC_ENUM_TRAITS(WindowContainerType) |
| 88 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 91 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
| 89 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 92 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
| 90 IPC_ENUM_TRAITS(content::MenuItem::Type) | 93 IPC_ENUM_TRAITS(content::MenuItem::Type) |
| 91 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, | 94 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture, |
| 92 content::NavigationGestureLast) | 95 content::NavigationGestureLast) |
| 93 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, | 96 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom, |
| 94 content::PageZoom::PAGE_ZOOM_OUT, | 97 content::PageZoom::PAGE_ZOOM_OUT, |
| 95 content::PageZoom::PAGE_ZOOM_IN) | 98 content::PageZoom::PAGE_ZOOM_IN) |
| 96 IPC_ENUM_TRAITS(gfx::FontRenderParams::Hinting) | 99 IPC_ENUM_TRAITS(gfx::FontRenderParams::Hinting) |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 457 // isn't supported). | 460 // isn't supported). |
| 458 IPC_STRUCT_MEMBER(float, top_controls_height) | 461 IPC_STRUCT_MEMBER(float, top_controls_height) |
| 459 // The size of the visible viewport, which may be smaller than the view if the | 462 // The size of the visible viewport, which may be smaller than the view if the |
| 460 // view is partially occluded (e.g. by a virtual keyboard). The size is in | 463 // view is partially occluded (e.g. by a virtual keyboard). The size is in |
| 461 // DPI-adjusted pixels. | 464 // DPI-adjusted pixels. |
| 462 IPC_STRUCT_MEMBER(gfx::Size, visible_viewport_size) | 465 IPC_STRUCT_MEMBER(gfx::Size, visible_viewport_size) |
| 463 // The resizer rect. | 466 // The resizer rect. |
| 464 IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect) | 467 IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect) |
| 465 // Indicates whether a page is fullscreen or not. | 468 // Indicates whether a page is fullscreen or not. |
| 466 IPC_STRUCT_MEMBER(bool, is_fullscreen) | 469 IPC_STRUCT_MEMBER(bool, is_fullscreen) |
| 470 // The display mode. | |
| 471 IPC_STRUCT_MEMBER(blink::WebDisplayMode, display_mode) | |
| 467 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect | 472 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect |
| 468 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. | 473 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. |
| 469 IPC_STRUCT_MEMBER(bool, needs_resize_ack) | 474 IPC_STRUCT_MEMBER(bool, needs_resize_ack) |
| 470 IPC_STRUCT_END() | 475 IPC_STRUCT_END() |
| 471 | 476 |
| 472 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 477 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 473 // Renderer-wide preferences. | 478 // Renderer-wide preferences. |
| 474 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 479 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 475 | 480 |
| 476 // Preferences for this view. | 481 // Preferences for this view. |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1672 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1677 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1673 // for details. | 1678 // for details. |
| 1674 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1679 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1675 LOGFONT /* font_data */, | 1680 LOGFONT /* font_data */, |
| 1676 base::string16 /* characters */) | 1681 base::string16 /* characters */) |
| 1677 #endif | 1682 #endif |
| 1678 | 1683 |
| 1679 // Adding a new message? Stick to the sort order above: first platform | 1684 // Adding a new message? Stick to the sort order above: first platform |
| 1680 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1685 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1681 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1686 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |