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 #include "remoting/client/plugin/chromoting_instance.h" | 5 #include "remoting/client/plugin/chromoting_instance.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 | 291 |
292 return instance_object_; | 292 return instance_object_; |
293 } | 293 } |
294 | 294 |
295 ChromotingStats* ChromotingInstance::GetStats() { | 295 ChromotingStats* ChromotingInstance::GetStats() { |
296 if (!client_.get()) | 296 if (!client_.get()) |
297 return NULL; | 297 return NULL; |
298 return client_->GetStats(); | 298 return client_->GetStats(); |
299 } | 299 } |
300 | 300 |
301 void ChromotingInstance::ReleaseAllKeys() { | |
302 PepperInputHandler* pih | |
303 = static_cast<PepperInputHandler*>(input_handler_.get()); | |
garykac
2011/07/07 00:19:11
Why not add ReleaseAllKeys() to input_handler and
Jamie
2011/07/08 18:38:07
Fair point. Done.
| |
304 pih->ReleaseAllKeys(); | |
305 } | |
306 | |
301 } // namespace remoting | 307 } // namespace remoting |
OLD | NEW |