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

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

Issue 12678008: Reworked the plumbing required to pass the client resolution to the desktop resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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 "third_party/skia/include/core/SkPoint.h" 9 #include "third_party/skia/include/core/SkPoint.h"
10 #include "third_party/skia/include/core/SkSize.h" 10 #include "third_party/skia/include/core/SkSize.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 struct ScreenResolution;
15
14 class SessionController { 16 class SessionController {
15 public: 17 public:
16 virtual ~SessionController() {} 18 virtual ~SessionController() {}
17 19
18 // Called when the client view size or pixel density change. 20 // Attempts to set new screen resolution in the session.
19 virtual void OnClientResolutionChanged(const SkIPoint& client_dpi, 21 virtual void SetScreenResolution(const ScreenResolution& resolution) = 0;
20 const SkISize& client_size) = 0;
21 }; 22 };
22 23
23 } // namespace remoting 24 } // namespace remoting
24 25
25 #endif // REMOTING_HOST_SESSION_CONTROLLER_H_ 26 #endif // REMOTING_HOST_SESSION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698