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

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

Issue 10700129: remoting/host: Fix cpplint warning of header guards. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_LINUX_H_ 5 #ifndef REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
6 #define LOCAL_INPUT_MONITOR_THREAD_LINUX_H_ 6 #define REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
7 #pragma once
7 8
8 #include "base/callback.h" 9 #include "base/callback.h"
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/threading/simple_thread.h" 12 #include "base/threading/simple_thread.h"
12 #include "remoting/host/local_input_monitor.h" 13 #include "remoting/host/local_input_monitor.h"
13 14
14 typedef struct _XDisplay Display; 15 typedef struct _XDisplay Display;
15 16
16 struct SkIPoint; 17 struct SkIPoint;
17 18
18 namespace remoting { 19 namespace remoting {
19 20
20 class MouseMoveObserver; 21 class MouseMoveObserver;
21 22
22 class LocalInputMonitorThread : public base::SimpleThread { 23 class LocalInputMonitorThread : public base::SimpleThread {
23 public: 24 public:
24 LocalInputMonitorThread( 25 LocalInputMonitorThread(MouseMoveObserver* mouse_move_observer,
25 MouseMoveObserver* mouse_move_observer, 26 const base::Closure& disconnect_callback);
26 const base::Closure& disconnect_callback);
27 virtual ~LocalInputMonitorThread(); 27 virtual ~LocalInputMonitorThread();
28 28
29 void Stop(); 29 void Stop();
30 virtual void Run() OVERRIDE; 30 virtual void Run() OVERRIDE;
31 31
32 void LocalMouseMoved(const SkIPoint& pos); 32 void LocalMouseMoved(const SkIPoint& pos);
33 void LocalKeyPressed(int key_code, bool down); 33 void LocalKeyPressed(int key_code, bool down);
34 34
35 private: 35 private:
36 MouseMoveObserver* mouse_move_observer_; 36 MouseMoveObserver* mouse_move_observer_;
37 base::Closure disconnect_callback_; 37 base::Closure disconnect_callback_;
38 int wakeup_pipe_[2]; 38 int wakeup_pipe_[2];
39 Display* display_; 39 Display* display_;
40 bool alt_pressed_; 40 bool alt_pressed_;
41 bool ctrl_pressed_; 41 bool ctrl_pressed_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread); 43 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread);
44 }; 44 };
45 45
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif 48 #endif // REMOTING_HOST_LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698