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

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: Reviewer comments. 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 // Use the specified DesktopResizer to keep the match host desktop size to the
21 // client view size as far as is possible. When the connection closes, restore
22 // the original desktop size.
23 class ResizingHostObserver : public remoting::HostStatusObserver {
tfarina 2012/09/23 02:37:41 nit: remoting:: here is unnecessary, as we are in
Jamie 2012/09/24 22:49:15 Done.
24 public:
25 explicit ResizingHostObserver(DesktopResizer* desktop_resizer);
26 virtual ~ResizingHostObserver();
27
28 // HostStatusObserver interface
29 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
30 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
31 virtual void OnClientDimensionsChanged(const std::string& jid,
32 const SkISize& size) OVERRIDE;
33
34 private:
35 DesktopResizer* desktop_resizer_;
36 SkISize original_size_;
37 std::string client_jid_;
38
39 DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver);
40
tfarina 2012/09/23 02:37:41 nit: rm extra blank line.
Jamie 2012/09/24 22:49:15 Done.
41 };
42
43 } // namespace remoting
44
45 #endif // REMOTING_HOST_RESIZING_HOST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698