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

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

Issue 10918224: Cross-platform plumbing for resize-to-client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed reviewer comments and trybot fixes. Created 8 years, 3 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698