IDB: Show blob path on chrome://indexeddb-internals
[chromium-blink-merge.git] / ash / test / virtual_keyboard_test_helper.cc
blobd58569668619ef2b5ecf4b739a667ad294168667
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/test/virtual_keyboard_test_helper.h"
7 #include "ui/events/devices/device_data_manager.h"
8 #include "ui/events/devices/device_hotplug_event_observer.h"
9 #include "ui/events/devices/input_device.h"
10 #include "ui/events/devices/keyboard_device.h"
11 #include "ui/events/devices/touchscreen_device.h"
13 namespace ash {
14 namespace test {
16 void VirtualKeyboardTestHelper::SuppressKeyboard() {
17 ui::DeviceHotplugEventObserver* manager =
18 ui::DeviceDataManager::GetInstance();
19 std::vector<ui::TouchscreenDevice> screens;
20 screens.push_back(
21 ui::TouchscreenDevice(1,
22 ui::InputDeviceType::INPUT_DEVICE_INTERNAL,
23 "Touchscreen",
24 gfx::Size(1024, 768)));
25 manager->OnTouchscreenDevicesUpdated(screens);
27 std::vector<ui::KeyboardDevice> keyboards;
28 keyboards.push_back(ui::KeyboardDevice(
29 2, ui::InputDeviceType::INPUT_DEVICE_EXTERNAL, "keyboard"));
30 manager->OnKeyboardDevicesUpdated(keyboards);
33 } // namespace test
34 } // namespace ash