OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_CHROMOTING_HOST_H_ |
6 #define REMOTING_CHROMOTING_HOST_H_ | 6 #define REMOTING_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // TODO(wez): ChromotingHost shouldn't need to know about Me2Mom. | 137 // TODO(wez): ChromotingHost shouldn't need to know about Me2Mom. |
138 void set_it2me(bool is_it2me) { | 138 void set_it2me(bool is_it2me) { |
139 is_it2me_ = is_it2me; | 139 is_it2me_ = is_it2me; |
140 } | 140 } |
141 void set_access_code(const std::string& access_code) { | 141 void set_access_code(const std::string& access_code) { |
142 access_code_ = access_code; | 142 access_code_ = access_code; |
143 } | 143 } |
144 | 144 |
145 // Notify all active client sessions that local input has been detected, and | 145 // Notify all active client sessions that local input has been detected, and |
146 // that remote input should be ignored for a short time. | 146 // that remote input should be ignored for a short time. |
147 void LocalMouseMoved(const gfx::Point& new_pos); | 147 void LocalMouseMoved(const SkIPoint& new_pos); |
148 | 148 |
149 // Pause or unpause the session. While the session is paused, remote input | 149 // Pause or unpause the session. While the session is paused, remote input |
150 // is ignored. | 150 // is ignored. |
151 void PauseSession(bool pause); | 151 void PauseSession(bool pause); |
152 | 152 |
153 const UiStrings& ui_strings() { return ui_strings_; } | 153 const UiStrings& ui_strings() { return ui_strings_; } |
154 | 154 |
155 // Set localized strings. Must be called before host is started. | 155 // Set localized strings. Must be called before host is started. |
156 void SetUiStrings(const UiStrings& ui_strings); | 156 void SetUiStrings(const UiStrings& ui_strings); |
157 | 157 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 std::vector<Task*> shutdown_tasks_; | 251 std::vector<Task*> shutdown_tasks_; |
252 | 252 |
253 UiStrings ui_strings_; | 253 UiStrings ui_strings_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 255 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace remoting | 258 } // namespace remoting |
259 | 259 |
260 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 260 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |