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

Side by Side Diff: remoting/host/input_injector_mac.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « remoting/host/input_injector_chromeos.cc ('k') | remoting/host/input_injector_win.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) 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 #include "remoting/host/input_injector.h" 5 #include "remoting/host/input_injector.h"
6 6
7 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
9 #include <IOKit/pwr_mgt/IOPMLib.h> 9 #include <IOKit/pwr_mgt/IOPMLib.h>
10 #include <stdint.h>
10 #include <algorithm> 11 #include <algorithm>
11 12
12 #include "base/basictypes.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/mac/scoped_cftyperef.h" 16 #include "base/mac/scoped_cftyperef.h"
17 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
18 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
19 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
20 #include "base/time/time.h" 21 #include "base/time/time.h"
21 #include "remoting/host/clipboard.h" 22 #include "remoting/host/clipboard.h"
22 #include "remoting/proto/internal.pb.h" 23 #include "remoting/proto/internal.pb.h"
23 #include "remoting/protocol/message_decoder.h" 24 #include "remoting/protocol/message_decoder.h"
24 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 25 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
25 #include "third_party/webrtc/modules/desktop_capture/mac/desktop_configuration.h " 26 #include "third_party/webrtc/modules/desktop_capture/mac/desktop_configuration.h "
26 #include "ui/events/keycodes/dom/keycode_converter.h" 27 #include "ui/events/keycodes/dom/keycode_converter.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void Stop(); 102 void Stop();
102 103
103 private: 104 private:
104 friend class base::RefCountedThreadSafe<Core>; 105 friend class base::RefCountedThreadSafe<Core>;
105 virtual ~Core(); 106 virtual ~Core();
106 107
107 void WakeUpDisplay(); 108 void WakeUpDisplay();
108 109
109 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 110 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
110 webrtc::DesktopVector mouse_pos_; 111 webrtc::DesktopVector mouse_pos_;
111 uint32 mouse_button_state_; 112 uint32_t mouse_button_state_;
112 scoped_ptr<Clipboard> clipboard_; 113 scoped_ptr<Clipboard> clipboard_;
113 uint64_t left_modifiers_; 114 uint64_t left_modifiers_;
114 uint64_t right_modifiers_; 115 uint64_t right_modifiers_;
115 base::TimeTicks last_time_display_woken_; 116 base::TimeTicks last_time_display_woken_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(Core); 118 DISALLOW_COPY_AND_ASSIGN(Core);
118 }; 119 };
119 120
120 scoped_refptr<Core> core_; 121 scoped_refptr<Core> core_;
121 122
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 391 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
391 return make_scoped_ptr(new InputInjectorMac(main_task_runner)); 392 return make_scoped_ptr(new InputInjectorMac(main_task_runner));
392 } 393 }
393 394
394 // static 395 // static
395 bool InputInjector::SupportsTouchEvents() { 396 bool InputInjector::SupportsTouchEvents() {
396 return false; 397 return false;
397 } 398 }
398 399
399 } // namespace remoting 400 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/input_injector_chromeos.cc ('k') | remoting/host/input_injector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698