OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SESSION_CONTROLLER_H_ | 5 #ifndef REMOTING_HOST_SESSION_CONTROLLER_H_ |
6 #define REMOTING_HOST_SESSION_CONTROLLER_H_ | 6 #define REMOTING_HOST_SESSION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "remoting/host/mouse_move_observer.h" | |
10 #include "third_party/skia/include/core/SkPoint.h" | 9 #include "third_party/skia/include/core/SkPoint.h" |
11 #include "third_party/skia/include/core/SkSize.h" | 10 #include "third_party/skia/include/core/SkSize.h" |
12 | 11 |
13 namespace remoting { | 12 namespace remoting { |
14 | 13 |
15 class ScreenResolution; | 14 class ScreenResolution; |
16 | 15 |
17 class SessionController { | 16 class SessionController { |
Sergey Ulanov
2013/03/20 06:31:06
This interface is used for two unrelated features
alexeypa (please no reviews)
2013/03/20 17:05:29
It is indeed used for two unrelated purposes yet I
| |
18 public: | 17 public: |
19 // TODO(alexeypa): remove MouseMoveObserver entirely and move | 18 class Delegate { |
20 // OnLocalMouseMoved() method to SessionController::Delegate. | |
21 // See http://crbug.com/104544. | |
22 class Delegate : public MouseMoveObserver { | |
23 public: | 19 public: |
24 virtual ~Delegate() {} | 20 virtual ~Delegate() {} |
25 | 21 |
26 // Disconnects the client session, tears down transport resources and stops | 22 // Disconnects the client session, tears down transport resources and stops |
27 // scheduler components. | 23 // scheduler components. |
28 virtual void DisconnectSession() = 0; | 24 virtual void DisconnectSession() = 0; |
29 | 25 |
30 // Called when local mouse movement is detected. | 26 // Called when local mouse movement is detected. |
31 virtual void OnLocalMouseMoved(const SkIPoint& position) = 0; | 27 virtual void OnLocalMouseMoved(const SkIPoint& position) = 0; |
32 }; | 28 }; |
33 | 29 |
34 virtual ~SessionController() {} | 30 virtual ~SessionController() {} |
35 | 31 |
36 // Attempts to set new screen resolution in the session. | 32 // Attempts to set new screen resolution in the session. |
37 virtual void SetScreenResolution(const ScreenResolution& resolution) = 0; | 33 virtual void SetScreenResolution(const ScreenResolution& resolution) = 0; |
38 }; | 34 }; |
39 | 35 |
40 } // namespace remoting | 36 } // namespace remoting |
41 | 37 |
42 #endif // REMOTING_HOST_SESSION_CONTROLLER_H_ | 38 #endif // REMOTING_HOST_SESSION_CONTROLLER_H_ |
OLD | NEW |