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_scriptable_object.h" | 5 #include "remoting/client/plugin/chromoting_scriptable_object.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 // TODO(wez): Remove this when crbug.com/86353 is complete. | 9 // TODO(wez): Remove this when crbug.com/86353 is complete. |
10 #include "ppapi/cpp/private/var_private.h" | 10 #include "ppapi/cpp/private/var_private.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 if (args.size() != 1) { | 414 if (args.size() != 1) { |
415 *exception = Var("Usage: setScaleToFit(scale_to_fit)"); | 415 *exception = Var("Usage: setScaleToFit(scale_to_fit)"); |
416 return Var(); | 416 return Var(); |
417 } | 417 } |
418 | 418 |
419 if (!args[0].is_bool()) { | 419 if (!args[0].is_bool()) { |
420 *exception = Var("scale_to_fit must be a boolean."); | 420 *exception = Var("scale_to_fit must be a boolean."); |
421 return Var(); | 421 return Var(); |
422 } | 422 } |
423 | 423 |
424 VLOG(1) << "Setting scale-to-fit."; | 424 VLOG(1) << "Ignoring setScaleToFit"; |
Sergey Ulanov
2011/12/20 00:05:35
Do we need to keep this method just for backward c
Wez
2011/12/20 07:14:14
I've replaced this method with DoNothing(). I *th
| |
425 instance_->SetScaleToFit(args[0].AsBool()); | |
426 return Var(); | 425 return Var(); |
427 } | 426 } |
428 | 427 |
429 Var ChromotingScriptableObject::DoOnIq(const std::vector<Var>& args, | 428 Var ChromotingScriptableObject::DoOnIq(const std::vector<Var>& args, |
430 Var* exception) { | 429 Var* exception) { |
431 if (args.size() != 1) { | 430 if (args.size() != 1) { |
432 *exception = Var("Usage: onIq(response_xml)"); | 431 *exception = Var("Usage: onIq(response_xml)"); |
433 return Var(); | 432 return Var(); |
434 } | 433 } |
435 | 434 |
(...skipping 11 matching lines...) Expand all Loading... | |
447 const std::vector<pp::Var>& args, pp::Var* exception) { | 446 const std::vector<pp::Var>& args, pp::Var* exception) { |
448 if (args.size() != 0) { | 447 if (args.size() != 0) { |
449 *exception = Var("Usage: DoReleaseAllKeys()"); | 448 *exception = Var("Usage: DoReleaseAllKeys()"); |
450 return Var(); | 449 return Var(); |
451 } | 450 } |
452 instance_->ReleaseAllKeys(); | 451 instance_->ReleaseAllKeys(); |
453 return Var(); | 452 return Var(); |
454 } | 453 } |
455 | 454 |
456 } // namespace remoting | 455 } // namespace remoting |
OLD | NEW |