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

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

Issue 12220092: Rename ClientDimensions to ClientResolution and add pixel-size and DPI fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typos in ChromotingInstance. Created 7 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ 5 #ifndef REMOTING_HOST_RESIZING_HOST_OBSERVER_H_
6 #define REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ 6 #define REMOTING_HOST_RESIZING_HOST_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "remoting/host/host_status_observer.h" 10 #include "remoting/host/host_status_observer.h"
(...skipping 11 matching lines...) Expand all
22 // view size as closely as is possible. When the connection closes, restore 22 // view size as closely as is possible. When the connection closes, restore
23 // the original desktop size. 23 // the original desktop size.
24 class ResizingHostObserver : public HostStatusObserver { 24 class ResizingHostObserver : public HostStatusObserver {
25 public: 25 public:
26 ResizingHostObserver(DesktopResizer* desktop_resizer, ChromotingHost* host); 26 ResizingHostObserver(DesktopResizer* desktop_resizer, ChromotingHost* host);
27 virtual ~ResizingHostObserver(); 27 virtual ~ResizingHostObserver();
28 28
29 // HostStatusObserver interface 29 // HostStatusObserver interface
30 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 30 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
31 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 31 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
32 virtual void OnClientDimensionsChanged(const std::string& jid, 32 virtual void OnClientResolutionChanged(const std::string& jid,
33 const SkISize& size) OVERRIDE; 33 const SkISize& size,
34 const SkIPoint& dpi) OVERRIDE;
34 35
35 private: 36 private:
36 DesktopResizer* const desktop_resizer_; 37 DesktopResizer* const desktop_resizer_;
37 scoped_refptr<ChromotingHost> host_; 38 scoped_refptr<ChromotingHost> host_;
38 SkISize original_size_; 39 SkISize original_size_;
39 SkISize previous_size_; 40 SkISize previous_size_;
40 std::string client_jid_; 41 std::string client_jid_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver); 43 DISALLOW_COPY_AND_ASSIGN(ResizingHostObserver);
43 }; 44 };
44 45
45 } // namespace remoting 46 } // namespace remoting
46 47
47 #endif // REMOTING_HOST_RESIZING_HOST_OBSERVER_H_ 48 #endif // REMOTING_HOST_RESIZING_HOST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698