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

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

Issue 10918224: Cross-platform plumbing for resize-to-client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698