Chromium Code Reviews| Index: ui/ozone/platform/dri/gpu/gpu_messages.h |
| diff --git a/ui/ozone/platform/dri/gpu/gpu_messages.h b/ui/ozone/platform/dri/gpu/gpu_messages.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8fb335e631f3603835573672507e356330e24486 |
| --- /dev/null |
| +++ b/ui/ozone/platform/dri/gpu/gpu_messages.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Multiply-included message file, hence no include guard here, but see below |
| +// for a much smaller-than-usual include guard section. |
| + |
| +#include "ipc/ipc_message_macros.h" |
| +#include "ui/gfx/geometry/rect.h" |
| +#include "ui/gfx/ipc/gfx_param_traits.h" |
| +#include "ui/gfx/native_widget_types.h" |
| +#include "ui/ozone/ozone_export.h" |
| + |
| +#undef IPC_MESSAGE_EXPORT |
| +#define IPC_MESSAGE_EXPORT OZONE_EXPORT |
| + |
| +#define IPC_MESSAGE_START OzoneGpuMsgStart |
|
dnicoara
2014/08/16 00:34:00
spang@ pointed out that I can't do this in here si
|
| + |
| +//------------------------------------------------------------------------------ |
| +// GPU Messages |
| +// These are messages from the browser to the GPU process. |
| + |
| +// Explicit creation of a NativeWindowDelegate. We explicitly create the window |
| +// delegate such that any state change in the window is not lost while the |
| +// surface is created on the GPU side. |
| +IPC_MESSAGE_CONTROL1(DriGpuMsg_CreateNativeWindowDelegate, |
| + gfx::AcceleratedWidget /* widget */) |
| + |
| +IPC_MESSAGE_CONTROL1(DriGpuMsg_DestoryNativeWindowDelegate, |
| + gfx::AcceleratedWidget /* widget */) |
| + |
| +// Updates the location and size of the widget on the screen. |
| +IPC_MESSAGE_CONTROL2(DriGpuMsg_NativeWindowBoundsChanged, |
| + gfx::AcceleratedWidget /* widget */, |
| + gfx::Rect /* bounds */) |