summaryrefslogtreecommitdiffstats
path: root/ui/metro_viewer
diff options
context:
space:
mode:
Diffstat (limited to 'ui/metro_viewer')
-rw-r--r--ui/metro_viewer/metro_viewer.gyp28
-rw-r--r--ui/metro_viewer/metro_viewer_message_generator.cc33
-rw-r--r--ui/metro_viewer/metro_viewer_message_generator.h7
-rw-r--r--ui/metro_viewer/metro_viewer_messages.h22
4 files changed, 90 insertions, 0 deletions
diff --git a/ui/metro_viewer/metro_viewer.gyp b/ui/metro_viewer/metro_viewer.gyp
new file mode 100644
index 0000000..a9436d6
--- /dev/null
+++ b/ui/metro_viewer/metro_viewer.gyp
@@ -0,0 +1,28 @@
+# Copyright (c) 2012 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'targets': [
+ {
+ 'target_name': 'metro_viewer',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ '../../skia/skia.gyp:skia',
+ ],
+ 'sources': [
+ 'metro_viewer_message_generator.cc',
+ 'metro_viewer_message_generator.h',
+ 'metro_viewer_messages.h',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ },
+ ],
+}
+
diff --git a/ui/metro_viewer/metro_viewer_message_generator.cc b/ui/metro_viewer/metro_viewer_message_generator.cc
new file mode 100644
index 0000000..360321c
--- /dev/null
+++ b/ui/metro_viewer/metro_viewer_message_generator.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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.
+
+// Get basic type definitions.
+#define IPC_MESSAGE_IMPL
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+
+// Generate constructors.
+#include "ipc/struct_constructor_macros.h"
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+
+// Generate destructors.
+#include "ipc/struct_destructor_macros.h"
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+
+// Generate param traits write methods.
+#include "ipc/param_traits_write_macros.h"
+namespace IPC {
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+} // namespace IPC
+
+// Generate param traits read methods.
+#include "ipc/param_traits_read_macros.h"
+namespace IPC {
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+} // namespace IPC
+
+// Generate param traits log methods.
+#include "ipc/param_traits_log_macros.h"
+namespace IPC {
+#include "ui/metro_viewer/metro_viewer_message_generator.h"
+} // namespace IPC
diff --git a/ui/metro_viewer/metro_viewer_message_generator.h b/ui/metro_viewer/metro_viewer_message_generator.h
new file mode 100644
index 0000000..4ea8688
--- /dev/null
+++ b/ui/metro_viewer/metro_viewer_message_generator.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 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 file, hence no include guard.
+
+#include "ui/metro_viewer/metro_viewer_messages.h"
diff --git a/ui/metro_viewer/metro_viewer_messages.h b/ui/metro_viewer/metro_viewer_messages.h
new file mode 100644
index 0000000..776e06b
--- /dev/null
+++ b/ui/metro_viewer/metro_viewer_messages.h
@@ -0,0 +1,22 @@
+// Copyright 2012 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, no include guard.
+
+#include "base/basictypes.h"
+#include "ipc/ipc_message_macros.h"
+#include "ui/gfx/native_widget_types.h"
+
+#define IPC_MESSAGE_START MetroViewerMsgStart
+
+// Messages sent from the viewer to the browser.
+
+// Inform the browser of the surface to target for compositing.
+IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface,
+ gfx::NativeViewId /* target hwnd */)
+
+IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseEvent,
+ int, /* msg */
+ uintptr_t, /* message's wParam */
+ intptr_t /* message's lParam */)