Index: chrome/browser/metro_viewer/metro_viewer_process_host_win.h |
diff --git a/chrome/browser/metro_viewer/metro_viewer_process_host_win.h b/chrome/browser/metro_viewer/metro_viewer_process_host_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fd5adb591f897dfb9198872c6710e1999b3d02d1 |
--- /dev/null |
+++ b/chrome/browser/metro_viewer/metro_viewer_process_host_win.h |
@@ -0,0 +1,43 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |
+#define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |
+ |
+#if defined(USE_AURA) |
Ben Goodger (Google)
2012/10/01 16:30:54
we tend not to do things like this, rather, we wra
scottmg
2012/10/01 17:30:24
Done.
|
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "base/memory/weak_ptr.h" |
+#include "base/threading/non_thread_safe.h" |
+#include "ipc/ipc_listener.h" |
+#include "ipc/ipc_sender.h" |
+#include "ui/gfx/native_widget_types.h" |
+ |
+namespace IPC { |
+class ChannelProxy; |
+} |
+ |
+class MetroViewerProcessHost : public IPC::Listener, |
+ public IPC::Sender, |
+ public base::NonThreadSafe { |
+ public: |
+ MetroViewerProcessHost(); |
+ virtual ~MetroViewerProcessHost(); |
+ |
+ // IPC::Sender implementation. |
+ virtual bool Send(IPC::Message* msg) OVERRIDE; |
+ |
+ // IPC::Listener implementation. |
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ |
+ private: |
+ void OnSetTargetSurface(gfx::NativeViewId target_surface); |
+ void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param); |
+ |
+ scoped_ptr<IPC::ChannelProxy> channel_; |
+}; |
Ben Goodger (Google)
2012/10/01 16:30:54
disallow_cop
scottmg
2012/10/01 17:30:24
Done.
|
+ |
+#endif // defined(USE_AURA) |
+ |
+#endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |