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

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

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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
« no previous file with comments | « remoting/host/input_injector_linux.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 <algorithm> 9 #include <algorithm>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 using protocol::MouseEvent; 56 using protocol::MouseEvent;
57 57
58 // A class to generate events on Mac. 58 // A class to generate events on Mac.
59 class InputInjectorMac : public InputInjector { 59 class InputInjectorMac : public InputInjector {
60 public: 60 public:
61 explicit InputInjectorMac( 61 explicit InputInjectorMac(
62 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 62 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
63 virtual ~InputInjectorMac(); 63 virtual ~InputInjectorMac();
64 64
65 // ClipboardStub interface. 65 // ClipboardStub interface.
66 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 66 virtual void InjectClipboardEvent(const ClipboardEvent& event) override;
67 67
68 // InputStub interface. 68 // InputStub interface.
69 virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE; 69 virtual void InjectKeyEvent(const KeyEvent& event) override;
70 virtual void InjectTextEvent(const TextEvent& event) OVERRIDE; 70 virtual void InjectTextEvent(const TextEvent& event) override;
71 virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE; 71 virtual void InjectMouseEvent(const MouseEvent& event) override;
72 72
73 // InputInjector interface. 73 // InputInjector interface.
74 virtual void Start( 74 virtual void Start(
75 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; 75 scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
76 76
77 private: 77 private:
78 // The actual implementation resides in InputInjectorMac::Core class. 78 // The actual implementation resides in InputInjectorMac::Core class.
79 class Core : public base::RefCountedThreadSafe<Core> { 79 class Core : public base::RefCountedThreadSafe<Core> {
80 public: 80 public:
81 explicit Core(scoped_refptr<base::SingleThreadTaskRunner> task_runner); 81 explicit Core(scoped_refptr<base::SingleThreadTaskRunner> task_runner);
82 82
83 // Mirrors the ClipboardStub interface. 83 // Mirrors the ClipboardStub interface.
84 void InjectClipboardEvent(const ClipboardEvent& event); 84 void InjectClipboardEvent(const ClipboardEvent& event);
85 85
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 } // namespace 336 } // namespace
337 337
338 scoped_ptr<InputInjector> InputInjector::Create( 338 scoped_ptr<InputInjector> InputInjector::Create(
339 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 339 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
340 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 340 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
341 return make_scoped_ptr(new InputInjectorMac(main_task_runner)); 341 return make_scoped_ptr(new InputInjectorMac(main_task_runner));
342 } 342 }
343 343
344 } // namespace remoting 344 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/input_injector_linux.cc ('k') | remoting/host/input_injector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698