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

Side by Side Diff: remoting/host/host_status_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_HOST_STATUS_OBSERVER_H_ 5 #ifndef REMOTING_HOST_HOST_STATUS_OBSERVER_H_
6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_ 6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/skia/include/core/SkRect.h" 10 #include "third_party/skia/include/core/SkRect.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // An authenticated client is disconnected. 40 // An authenticated client is disconnected.
41 virtual void OnClientDisconnected(const std::string& jid) {} 41 virtual void OnClientDisconnected(const std::string& jid) {}
42 42
43 // Called on notification of a route change event, when a channel is 43 // Called on notification of a route change event, when a channel is
44 // connected. 44 // connected.
45 virtual void OnClientRouteChange(const std::string& jid, 45 virtual void OnClientRouteChange(const std::string& jid,
46 const std::string& channel_name, 46 const std::string& channel_name,
47 const protocol::TransportRoute& route) {} 47 const protocol::TransportRoute& route) {}
48 48
49 // Called when the client view dimensions change. 49 // Called when the client view size or pixel density change.
50 virtual void OnClientDimensionsChanged(const std::string& jid, 50 virtual void OnClientResolutionChanged(const std::string& jid,
51 const SkISize& size) {} 51 const SkISize& size,
52 const SkIPoint& dpi) {}
52 53
53 // Called when hosting is started for an account. 54 // Called when hosting is started for an account.
54 virtual void OnStart(const std::string& xmpp_login) {} 55 virtual void OnStart(const std::string& xmpp_login) {}
55 56
56 // Called when the host shuts down. 57 // Called when the host shuts down.
57 virtual void OnShutdown() {} 58 virtual void OnShutdown() {}
58 }; 59 };
59 60
60 } // namespace remoting 61 } // namespace remoting
61 62
62 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ 63 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698