OLD | NEW |
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 #ifndef REMOTING_HOST_DESKTOP_RESIZER_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_RESIZER_H_ |
6 #define REMOTING_HOST_DESKTOP_RESIZER_H_ | 6 #define REMOTING_HOST_DESKTOP_RESIZER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "remoting/host/screen_resolution.h" | 11 #include "remoting/host/screen_resolution.h" |
12 #include "third_party/skia/include/core/SkRect.h" | |
13 | 12 |
14 namespace remoting { | 13 namespace remoting { |
15 | 14 |
16 class DesktopResizer { | 15 class DesktopResizer { |
17 public: | 16 public: |
18 virtual ~DesktopResizer() {} | 17 virtual ~DesktopResizer() {} |
19 | 18 |
20 // Create a platform-specific DesktopResizer instance. | 19 // Create a platform-specific DesktopResizer instance. |
21 static scoped_ptr<DesktopResizer> Create(); | 20 static scoped_ptr<DesktopResizer> Create(); |
22 | 21 |
(...skipping 20 matching lines...) Expand all Loading... |
43 // Restore the original desktop resolution. The caller must provide the | 42 // Restore the original desktop resolution. The caller must provide the |
44 // original resolution of the desktop, as returned by |GetCurrentResolution|, | 43 // original resolution of the desktop, as returned by |GetCurrentResolution|, |
45 // as a hint. However, implementaions are free to ignore this. For example, | 44 // as a hint. However, implementaions are free to ignore this. For example, |
46 // virtual hosts will typically ignore it to avoid unnecessary resizes. | 45 // virtual hosts will typically ignore it to avoid unnecessary resizes. |
47 virtual void RestoreResolution(const ScreenResolution& original) = 0; | 46 virtual void RestoreResolution(const ScreenResolution& original) = 0; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace remoting | 49 } // namespace remoting |
51 | 50 |
52 #endif // REMOTING_HOST_DESKTOP_RESIZER_H_ | 51 #endif // REMOTING_HOST_DESKTOP_RESIZER_H_ |
OLD | NEW |