OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "ui/gfx/geometry/point.h" | 12 #include "ui/gfx/geometry/point.h" |
| 13 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/gfx/ipc/gfx_param_traits.h" | 14 #include "ui/gfx/ipc/gfx_param_traits.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 16 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
16 #include "ui/ozone/ozone_export.h" | 17 #include "ui/ozone/ozone_export.h" |
17 | 18 |
18 #undef IPC_MESSAGE_EXPORT | 19 #undef IPC_MESSAGE_EXPORT |
19 #define IPC_MESSAGE_EXPORT OZONE_EXPORT | 20 #define IPC_MESSAGE_EXPORT OZONE_EXPORT |
20 | 21 |
21 #define IPC_MESSAGE_START OzoneGpuMsgStart | 22 #define IPC_MESSAGE_START OzoneGpuMsgStart |
22 | 23 |
(...skipping 28 matching lines...) Expand all Loading... |
51 // These are messages from the browser to the GPU process. | 52 // These are messages from the browser to the GPU process. |
52 | 53 |
53 // Update the HW cursor bitmap & move to specified location. | 54 // Update the HW cursor bitmap & move to specified location. |
54 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_CursorSet, | 55 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_CursorSet, |
55 gfx::AcceleratedWidget, SkBitmap, gfx::Point) | 56 gfx::AcceleratedWidget, SkBitmap, gfx::Point) |
56 | 57 |
57 // Move the HW cursor to the specified location. | 58 // Move the HW cursor to the specified location. |
58 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove, | 59 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove, |
59 gfx::AcceleratedWidget, gfx::Point) | 60 gfx::AcceleratedWidget, gfx::Point) |
60 | 61 |
| 62 // Explicit creation of a NativeWindowDelegate. We explicitly create the window |
| 63 // delegate such that any state change in the window is not lost while the |
| 64 // surface is created on the GPU side. |
| 65 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_CreateNativeWindowDelegate, |
| 66 gfx::AcceleratedWidget /* widget */) |
| 67 |
| 68 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DestoryNativeWindowDelegate, |
| 69 gfx::AcceleratedWidget /* widget */) |
| 70 |
| 71 // Updates the location and size of the widget on the screen. |
| 72 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_NativeWindowBoundsChanged, |
| 73 gfx::AcceleratedWidget /* widget */, |
| 74 gfx::Rect /* bounds */) |
| 75 |
61 #if defined(OS_CHROMEOS) | 76 #if defined(OS_CHROMEOS) |
62 // Force the DPMS state of the display to on. | 77 // Force the DPMS state of the display to on. |
63 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) | 78 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) |
64 | 79 |
65 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be | 80 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be |
66 // sent as a response. | 81 // sent as a response. |
67 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RefreshNativeDisplays) | 82 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RefreshNativeDisplays) |
68 | 83 |
69 // Configure a display with the specified mode at the specified location. | 84 // Configure a display with the specified mode at the specified location. |
70 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, | 85 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, |
71 int64_t, // display ID | 86 int64_t, // display ID |
72 ui::DisplayMode_Params, // display mode | 87 ui::DisplayMode_Params, // display mode |
73 gfx::Point) // origin for the display | 88 gfx::Point) // origin for the display |
74 | 89 |
75 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, | 90 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, |
76 int64_t) // display ID | 91 int64_t) // display ID |
77 | 92 |
78 //------------------------------------------------------------------------------ | 93 //------------------------------------------------------------------------------ |
79 // Browser Messages | 94 // Browser Messages |
80 // These messages are from the GPU to the browser process. | 95 // These messages are from the GPU to the browser process. |
81 | 96 |
82 // Updates the list of active displays. | 97 // Updates the list of active displays. |
83 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, | 98 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, |
84 std::vector<ui::DisplaySnapshot_Params>) | 99 std::vector<ui::DisplaySnapshot_Params>) |
85 #endif | 100 #endif |
OLD | NEW |