OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand
ler.h" | 5 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand
ler.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/system/tray/system_tray_delegate.h" | 10 #include "ash/common/system/tray/system_tray_delegate.h" |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 623 |
624 device->Set("uuids", std::move(uuids)); | 624 device->Set("uuids", std::move(uuids)); |
625 | 625 |
626 return device; | 626 return device; |
627 } | 627 } |
628 | 628 |
629 void DeviceEmulatorMessageHandler::TouchpadExists(bool exists) { | 629 void DeviceEmulatorMessageHandler::TouchpadExists(bool exists) { |
630 if (!IsJavascriptAllowed()) | 630 if (!IsJavascriptAllowed()) |
631 return; | 631 return; |
632 web_ui()->CallJavascriptFunctionUnsafe(kTouchpadExistsCallback, | 632 web_ui()->CallJavascriptFunctionUnsafe(kTouchpadExistsCallback, |
633 base::FundamentalValue(exists)); | 633 base::Value(exists)); |
634 } | 634 } |
635 | 635 |
636 void DeviceEmulatorMessageHandler::MouseExists(bool exists) { | 636 void DeviceEmulatorMessageHandler::MouseExists(bool exists) { |
637 if (!IsJavascriptAllowed()) | 637 if (!IsJavascriptAllowed()) |
638 return; | 638 return; |
639 web_ui()->CallJavascriptFunctionUnsafe(kMouseExistsCallback, | 639 web_ui()->CallJavascriptFunctionUnsafe(kMouseExistsCallback, |
640 base::FundamentalValue(exists)); | 640 base::Value(exists)); |
641 } | 641 } |
642 | 642 |
643 } // namespace chromeos | 643 } // namespace chromeos |
OLD | NEW |