Chromium Code Reviews| Index: remoting/host/resizing_host_observer.h |
| diff --git a/remoting/host/resizing_host_observer.h b/remoting/host/resizing_host_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9b5085e79d99021310bf5ecabe5fee5e0a102949 |
| --- /dev/null |
| +++ b/remoting/host/resizing_host_observer.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ |
| +#define REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ |
| + |
| +#include <string> |
| + |
| +#include "remoting/host/host_status_observer.h" |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "third_party/skia/include/core/SkSize.h" |
| + |
| +namespace remoting { |
| + |
| +class DesktopResizer; |
| + |
| +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.
|
| + public: |
| + explicit ResizingHostObserver(DesktopResizer* desktop_resizer); |
| + virtual ~ResizingHostObserver(); |
| + |
| + // HostStatusObserver interface |
| + virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
| + virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
| + virtual void OnClientDimensionsChanged(const std::string& jid, |
| + const SkISize& size) OVERRIDE; |
| + |
| + private: |
| + DesktopResizer* desktop_resizer_; |
| + SkISize original_size_; |
| + std::string client_jid_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver); |
| + |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ |