Chromium Code Reviews| 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_RESIZING_HOST_OBSERVER_H_ | |
| 6 #define REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "remoting/host/host_status_observer.h" | |
| 11 | |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/compiler_specific.h" | |
| 14 #include "third_party/skia/include/core/SkSize.h" | |
| 15 | |
| 16 namespace remoting { | |
| 17 | |
| 18 class DesktopResizer; | |
| 19 | |
| 20 class ResizingHostObserver : public remoting::HostStatusObserver { | |
|
Wez
2012/09/20 21:35:15
Summarize the semantics implemented by the Resizin
Jamie
2012/09/20 22:59:59
Done.
| |
| 21 public: | |
| 22 explicit ResizingHostObserver(DesktopResizer* desktop_resizer); | |
| 23 virtual ~ResizingHostObserver(); | |
| 24 | |
| 25 // HostStatusObserver interface | |
| 26 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | |
| 27 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | |
| 28 virtual void OnClientDimensionsChanged(const std::string& jid, | |
| 29 const SkISize& size) OVERRIDE; | |
| 30 | |
| 31 private: | |
| 32 DesktopResizer* desktop_resizer_; | |
| 33 SkISize original_size_; | |
| 34 std::string client_jid_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver); | |
| 37 | |
| 38 }; | |
| 39 | |
| 40 } // namespace remoting | |
| 41 | |
| 42 #endif // REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ | |
| OLD | NEW |