OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_DESKTOP_RESIZER_H_ |
| 6 #define REMOTING_HOST_DESKTOP_RESIZER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "remoting/host/host_status_observer.h" |
| 11 |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 class DesktopResizer { |
| 17 public: |
| 18 virtual ~DesktopResizer(); |
| 19 |
| 20 static scoped_ptr<DesktopResizer> Create(); |
| 21 |
| 22 virtual SkISize GetSize() = 0; |
| 23 virtual void SetSize(const SkISize& size) = 0; |
| 24 |
| 25 class HostStatusObserver : public remoting::HostStatusObserver { |
| 26 public: |
| 27 explicit HostStatusObserver(DesktopResizer* desktop_resizer); |
| 28 |
| 29 // HostStatusObserver interface |
| 30 virtual void OnClientAuthenticated(const std::string& jid); |
| 31 virtual void OnClientDisconnected(const std::string& jid); |
| 32 virtual void OnClientDimensionsChanged(const SkISize& size); |
| 33 |
| 34 private: |
| 35 DesktopResizer* desktop_resizer_; |
| 36 SkISize original_size_; |
| 37 }; |
| 38 }; |
| 39 |
| 40 } // namespace remoting |
| 41 |
| 42 #endif // REMOTING_HOST_DESKTOP_RESIZER_H_ |
OLD | NEW |