OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 5 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" | 10 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" |
11 #include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard
.h" | 11 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h" |
12 #include "ash/common/wm_shell.h" | 12 #include "ash/wm_shell.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
16 #include "base/time/tick_clock.h" | 16 #include "base/time/tick_clock.h" |
17 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
18 #include "ui/base/accelerators/accelerator.h" | 18 #include "ui/base/accelerators/accelerator.h" |
19 #include "ui/chromeos/accelerometer/accelerometer_util.h" | 19 #include "ui/chromeos/accelerometer/accelerometer_util.h" |
20 #include "ui/display/display.h" | 20 #include "ui/display/display.h" |
21 #include "ui/events/event.h" | 21 #include "ui/events/event.h" |
22 #include "ui/events/keycodes/keyboard_codes.h" | 22 #include "ui/events/keycodes/keyboard_codes.h" |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 return elapsed_time.InSeconds() <= kLidRecentlyOpenedDurationSeconds; | 418 return elapsed_time.InSeconds() <= kLidRecentlyOpenedDurationSeconds; |
419 } | 419 } |
420 | 420 |
421 void MaximizeModeController::SetTickClockForTest( | 421 void MaximizeModeController::SetTickClockForTest( |
422 std::unique_ptr<base::TickClock> tick_clock) { | 422 std::unique_ptr<base::TickClock> tick_clock) { |
423 DCHECK(tick_clock_); | 423 DCHECK(tick_clock_); |
424 tick_clock_ = std::move(tick_clock); | 424 tick_clock_ = std::move(tick_clock); |
425 } | 425 } |
426 | 426 |
427 } // namespace ash | 427 } // namespace ash |
OLD | NEW |