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

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

Issue 7992011: Move us fully from gfx:: over to skia types for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for bad DEPS Created 9 years, 2 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/host_mock_objects.h ('k') | remoting/host/local_input_monitor_thread_linux.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
6 #define LOCAL_INPUT_MONITOR_THREAD_LINUX_H_ 6 #define LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
7 7
8 #include "base/threading/simple_thread.h" 8 #include "base/threading/simple_thread.h"
9 #include "ui/gfx/point.h" 9 #include "third_party/skia/include/core/SkPoint.h"
10 10
11 typedef struct _XDisplay Display; 11 typedef struct _XDisplay Display;
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 class ChromotingHost; 15 class ChromotingHost;
16 16
17 class LocalInputMonitorThread : public base::SimpleThread { 17 class LocalInputMonitorThread : public base::SimpleThread {
18 public: 18 public:
19 explicit LocalInputMonitorThread(ChromotingHost* host); 19 explicit LocalInputMonitorThread(ChromotingHost* host);
20 virtual ~LocalInputMonitorThread(); 20 virtual ~LocalInputMonitorThread();
21 21
22 void Stop(); 22 void Stop();
23 virtual void Run(); 23 virtual void Run();
24 24
25 void LocalMouseMoved(const gfx::Point& pos); 25 void LocalMouseMoved(const SkIPoint& pos);
26 void LocalKeyPressed(int key_code, bool down); 26 void LocalKeyPressed(int key_code, bool down);
27 27
28 private: 28 private:
29 ChromotingHost* host_; 29 ChromotingHost* host_;
30 int wakeup_pipe_[2]; 30 int wakeup_pipe_[2];
31 Display* display_; 31 Display* display_;
32 bool alt_pressed_; 32 bool alt_pressed_;
33 bool ctrl_pressed_; 33 bool ctrl_pressed_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread); 35 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorThread);
36 }; 36 };
37 37
38 } // namespace remoting 38 } // namespace remoting
39 39
40 #endif 40 #endif
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/host/local_input_monitor_thread_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698