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

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

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/ipc_input_injector.h ('k') | remoting/host/ipc_screen_controls.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_ 5 #ifndef REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_
6 #define REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_ 6 #define REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 11 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
12 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" 12 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class DesktopSessionProxy; 16 class DesktopSessionProxy;
17 17
18 // Routes webrtc::MouseCursorMonitor calls through the IPC channel to the 18 // Routes webrtc::MouseCursorMonitor calls through the IPC channel to the
19 // desktop session agent running in the desktop integration process. 19 // desktop session agent running in the desktop integration process.
20 class IpcMouseCursorMonitor : public webrtc::MouseCursorMonitor { 20 class IpcMouseCursorMonitor : public webrtc::MouseCursorMonitor {
21 public: 21 public:
22 explicit IpcMouseCursorMonitor( 22 explicit IpcMouseCursorMonitor(
23 scoped_refptr<DesktopSessionProxy> desktop_session_proxy); 23 scoped_refptr<DesktopSessionProxy> desktop_session_proxy);
24 virtual ~IpcMouseCursorMonitor(); 24 virtual ~IpcMouseCursorMonitor();
25 25
26 // webrtc::MouseCursorMonitor interface. 26 // webrtc::MouseCursorMonitor interface.
27 virtual void Init(Callback* callback, Mode mode) OVERRIDE; 27 virtual void Init(Callback* callback, Mode mode) override;
28 virtual void Capture() OVERRIDE; 28 virtual void Capture() override;
29 29
30 // Called when the cursor shape has changed. 30 // Called when the cursor shape has changed.
31 void OnMouseCursor(scoped_ptr<webrtc::MouseCursor> cursor); 31 void OnMouseCursor(scoped_ptr<webrtc::MouseCursor> cursor);
32 32
33 private: 33 private:
34 // The callback passed to |webrtc::MouseCursorMonitor::Init()|. 34 // The callback passed to |webrtc::MouseCursorMonitor::Init()|.
35 webrtc::MouseCursorMonitor::Callback* callback_; 35 webrtc::MouseCursorMonitor::Callback* callback_;
36 36
37 // Wraps the IPC channel to the desktop session agent. 37 // Wraps the IPC channel to the desktop session agent.
38 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; 38 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_;
39 39
40 // Used to cancel tasks pending on the capturer when it is stopped. 40 // Used to cancel tasks pending on the capturer when it is stopped.
41 base::WeakPtrFactory<IpcMouseCursorMonitor> weak_factory_; 41 base::WeakPtrFactory<IpcMouseCursorMonitor> weak_factory_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(IpcMouseCursorMonitor); 43 DISALLOW_COPY_AND_ASSIGN(IpcMouseCursorMonitor);
44 }; 44 };
45 45
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif // REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_ 48 #endif // REMOTING_HOST_IPC_MOUSE_CURSOR_MONITOR_H_
OLDNEW
« no previous file with comments | « remoting/host/ipc_input_injector.h ('k') | remoting/host/ipc_screen_controls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698