OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | 5 #ifndef CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |
6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | 6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 public base::NonThreadSafe { | 21 public base::NonThreadSafe { |
22 public: | 22 public: |
23 MetroViewerProcessHost(); | 23 MetroViewerProcessHost(); |
24 virtual ~MetroViewerProcessHost(); | 24 virtual ~MetroViewerProcessHost(); |
25 | 25 |
26 // IPC::Sender implementation. | 26 // IPC::Sender implementation. |
27 virtual bool Send(IPC::Message* msg) OVERRIDE; | 27 virtual bool Send(IPC::Message* msg) OVERRIDE; |
28 | 28 |
29 // IPC::Listener implementation. | 29 // IPC::Listener implementation. |
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 31 virtual void OnChannelError() OVERRIDE; |
31 | 32 |
32 private: | 33 private: |
33 void OnSetTargetSurface(gfx::NativeViewId target_surface); | 34 void OnSetTargetSurface(gfx::NativeViewId target_surface); |
34 void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param); | 35 void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param); |
| 36 void OnMouseMoved(int x, int y, int modifiers); |
| 37 void OnMouseButton(int x, int y, int modifiers); |
35 | 38 |
36 scoped_ptr<IPC::ChannelProxy> channel_; | 39 scoped_ptr<IPC::ChannelProxy> channel_; |
37 | 40 |
38 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost); | 41 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost); |
39 }; | 42 }; |
40 | 43 |
41 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ | 44 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ |
OLD | NEW |