OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | |
6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | |
7 | |
8 #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.
| |
9 | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/memory/weak_ptr.h" | |
12 #include "base/threading/non_thread_safe.h" | |
13 #include "ipc/ipc_listener.h" | |
14 #include "ipc/ipc_sender.h" | |
15 #include "ui/gfx/native_widget_types.h" | |
16 | |
17 namespace IPC { | |
18 class ChannelProxy; | |
19 } | |
20 | |
21 class MetroViewerProcessHost : public IPC::Listener, | |
22 public IPC::Sender, | |
23 public base::NonThreadSafe { | |
24 public: | |
25 MetroViewerProcessHost(); | |
26 virtual ~MetroViewerProcessHost(); | |
27 | |
28 // IPC::Sender implementation. | |
29 virtual bool Send(IPC::Message* msg) OVERRIDE; | |
30 | |
31 // IPC::Listener implementation. | |
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
33 | |
34 private: | |
35 void OnSetTargetSurface(gfx::NativeViewId target_surface); | |
36 void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param); | |
37 | |
38 scoped_ptr<IPC::ChannelProxy> channel_; | |
39 }; | |
Ben Goodger (Google)
2012/10/01 16:30:54
disallow_cop
scottmg
2012/10/01 17:30:24
Done.
| |
40 | |
41 #endif // defined(USE_AURA) | |
42 | |
43 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | |
OLD | NEW |