| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef ASH_WM_POWER_BUTTON_CONTROLLER_H_ | 5 #ifndef ASH_WM_POWER_BUTTON_CONTROLLER_H_ |
| 6 #define ASH_WM_POWER_BUTTON_CONTROLLER_H_ | 6 #define ASH_WM_POWER_BUTTON_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 14 | 14 |
| 15 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
| 16 #include "chromeos/dbus/power_manager_client.h" | 16 #include "chromeos/dbus/power_manager_client.h" |
| 17 #include "ui/display/chromeos/display_configurator.h" | 17 #include "ui/display/chromeos/display_configurator.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace gfx { | |
| 21 class Rect; | |
| 22 class Size; | |
| 23 } | |
| 24 | |
| 25 namespace ui { | |
| 26 class Layer; | |
| 27 } | |
| 28 | |
| 29 namespace ash { | 20 namespace ash { |
| 30 | 21 |
| 31 class LockStateController; | 22 class LockStateController; |
| 32 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 33 class TabletPowerButtonController; | 24 class TabletPowerButtonController; |
| 34 #endif | 25 #endif |
| 35 | 26 |
| 36 // Handles power & lock button events which may result in the locking or | 27 // Handles power & lock button events which may result in the locking or |
| 37 // shutting down of the system as well as taking screen shots while in maximize | 28 // shutting down of the system as well as taking screen shots while in maximize |
| 38 // mode. | 29 // mode. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Handles events for convertible/tablet devices. | 101 // Handles events for convertible/tablet devices. |
| 111 std::unique_ptr<TabletPowerButtonController> tablet_controller_; | 102 std::unique_ptr<TabletPowerButtonController> tablet_controller_; |
| 112 #endif | 103 #endif |
| 113 | 104 |
| 114 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); | 105 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); |
| 115 }; | 106 }; |
| 116 | 107 |
| 117 } // namespace ash | 108 } // namespace ash |
| 118 | 109 |
| 119 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ | 110 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ |
| OLD | NEW |