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

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

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 7 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/backoff_timer.cc ('k') | remoting/host/mouse_shape_pump.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MOUSE_SHAPE_PUMP_H_ 5 #ifndef REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
6 #define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ 6 #define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // webrtc::MouseCursorMonitor::Callback implementation. 33 // webrtc::MouseCursorMonitor::Callback implementation.
34 void OnMouseCursor(webrtc::MouseCursor* mouse_cursor) override; 34 void OnMouseCursor(webrtc::MouseCursor* mouse_cursor) override;
35 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state, 35 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state,
36 const webrtc::DesktopVector& position) override; 36 const webrtc::DesktopVector& position) override;
37 37
38 base::ThreadChecker thread_checker_; 38 base::ThreadChecker thread_checker_;
39 std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_; 39 std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_;
40 protocol::CursorShapeStub* cursor_shape_stub_; 40 protocol::CursorShapeStub* cursor_shape_stub_;
41 41
42 base::Timer capture_timer_; 42 base::RepeatingTimer capture_timer_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(MouseShapePump); 44 DISALLOW_COPY_AND_ASSIGN(MouseShapePump);
45 }; 45 };
46 46
47 } // namespace remoting 47 } // namespace remoting
48 48
49 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ 49 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
OLDNEW
« no previous file with comments | « remoting/host/backoff_timer.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698