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/wm_shell.h" | |
11 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
| 11 #include "ash/wm_shell.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" | 16 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" |
17 #include "chrome/browser/chromeos/system/input_device_settings.h" | 17 #include "chrome/browser/chromeos/system/input_device_settings.h" |
18 #include "chromeos/dbus/dbus_thread_manager.h" | 18 #include "chromeos/dbus/dbus_thread_manager.h" |
19 #include "chromeos/dbus/fake_cras_audio_client.h" | 19 #include "chromeos/dbus/fake_cras_audio_client.h" |
20 #include "chromeos/dbus/fake_power_manager_client.h" | 20 #include "chromeos/dbus/fake_power_manager_client.h" |
21 #include "content/public/browser/web_ui.h" | 21 #include "content/public/browser/web_ui.h" |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::Value(exists)); | 640 base::Value(exists)); |
641 } | 641 } |
642 | 642 |
643 } // namespace chromeos | 643 } // namespace chromeos |
OLD | NEW |