| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 // Notify all active client sessions that local input has been detected, and | 140 // Notify all active client sessions that local input has been detected, and |
| 141 // that remote input should be ignored for a short time. | 141 // that remote input should be ignored for a short time. |
| 142 void LocalMouseMoved(const gfx::Point& new_pos); | 142 void LocalMouseMoved(const gfx::Point& new_pos); |
| 143 | 143 |
| 144 // Pause or unpause the session. While the session is paused, remote input | 144 // Pause or unpause the session. While the session is paused, remote input |
| 145 // is ignored. | 145 // is ignored. |
| 146 void PauseSession(bool pause); | 146 void PauseSession(bool pause); |
| 147 | 147 |
| 148 UiStrings* ui_strings() { return &ui_strings_; } | 148 const UiStrings& ui_strings() { return ui_strings_; } |
| 149 |
| 150 // Set localized strings. Must be called before host is started. |
| 151 void SetUiStrings(const UiStrings& ui_strings); |
| 149 | 152 |
| 150 private: | 153 private: |
| 151 friend class base::RefCountedThreadSafe<ChromotingHost>; | 154 friend class base::RefCountedThreadSafe<ChromotingHost>; |
| 152 friend class ChromotingHostTest; | 155 friend class ChromotingHostTest; |
| 153 | 156 |
| 154 typedef std::vector<HostStatusObserver*> StatusObserverList; | 157 typedef std::vector<HostStatusObserver*> StatusObserverList; |
| 155 typedef std::vector<scoped_refptr<ClientSession> > ClientList; | 158 typedef std::vector<scoped_refptr<ClientSession> > ClientList; |
| 156 | 159 |
| 157 enum State { | 160 enum State { |
| 158 kInitial, | 161 kInitial, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 std::vector<Task*> shutdown_tasks_; | 246 std::vector<Task*> shutdown_tasks_; |
| 244 | 247 |
| 245 UiStrings ui_strings_; | 248 UiStrings ui_strings_; |
| 246 | 249 |
| 247 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 248 }; | 251 }; |
| 249 | 252 |
| 250 } // namespace remoting | 253 } // namespace remoting |
| 251 | 254 |
| 252 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |