Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: remoting/host/local_input_monitor_thread_win.h

Issue 10700129: remoting/host: Fix cpplint warning of header guards. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot to remove one Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/local_input_monitor_thread_linux.h ('k') | remoting/host/sighup_listener_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 LOCAL_INPUT_MONITOR_THREAD_WIN_H_ 5 #ifndef REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_WIN_H_
6 #define LOCAL_INPUT_MONITOR_THREAD_WIN_H_ 6 #define REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_WIN_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/simple_thread.h" 13 #include "base/threading/simple_thread.h"
14 14
15 struct SkIPoint; 15 struct SkIPoint;
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class MouseMoveObserver; 19 class MouseMoveObserver;
20 20
21 class LocalInputMonitorThread : public base::SimpleThread { 21 class LocalInputMonitorThread : public base::SimpleThread {
22 public: 22 public:
23 static void AddMouseMoveObserver(MouseMoveObserver* mouse_move_observer); 23 static void AddMouseMoveObserver(MouseMoveObserver* mouse_move_observer);
24 static void RemoveMouseMoveObserver(MouseMoveObserver* mouse_move_observer); 24 static void RemoveMouseMoveObserver(MouseMoveObserver* mouse_move_observer);
25 25
26 private: 26 private:
27 LocalInputMonitorThread(); 27 LocalInputMonitorThread();
28 virtual ~LocalInputMonitorThread(); 28 virtual ~LocalInputMonitorThread();
29 29
30 void AddObserver(MouseMoveObserver* mouse_move_observer); 30 void AddObserver(MouseMoveObserver* mouse_move_observer);
31 bool RemoveObserver(MouseMoveObserver* mouse_move_observer); 31 bool RemoveObserver(MouseMoveObserver* mouse_move_observer);
32 32
33 void Stop(); 33 void Stop();
34 virtual void Run() OVERRIDE; // Overridden from SimpleThread. 34
35 // Overridden from base::SimpleThread:
36 virtual void Run() OVERRIDE;
35 37
36 void LocalMouseMoved(const SkIPoint& mouse_position); 38 void LocalMouseMoved(const SkIPoint& mouse_position);
37 static LRESULT WINAPI HandleLowLevelMouseEvent(int code, 39 static LRESULT WINAPI HandleLowLevelMouseEvent(int code,
38 WPARAM event_type, 40 WPARAM event_type,
39 LPARAM event_data); 41 LPARAM event_data);
40 42
41 base::Lock lock_; 43 base::Lock lock_;
42 typedef std::set<MouseMoveObserver*> MouseMoveObservers; 44 typedef std::set<MouseMoveObserver*> MouseMoveObservers;
43 MouseMoveObservers observers_; 45 MouseMoveObservers observers_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread); 47 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread);
46 }; 48 };
47 49
48 } // namespace remoting 50 } // namespace remoting
49 51
50 #endif 52 #endif // REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_WIN_H_
OLDNEW
« no previous file with comments | « remoting/host/local_input_monitor_thread_linux.h ('k') | remoting/host/sighup_listener_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698