| 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "ash/common/shell_observer.h" | |
| 14 #include "ash/display/window_tree_host_manager.h" | 13 #include "ash/display/window_tree_host_manager.h" |
| 14 #include "ash/shell_observer.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 16 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 17 #include "ui/display/display.h" | 17 #include "ui/display/display.h" |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 // Enforces the device policy DisplayRotationDefault. | 21 // Enforces the device policy DisplayRotationDefault. |
| 22 // This class is created in ChromeShellDelegate::PreInit() and registers | 22 // This class is created in ChromeShellDelegate::PreInit() and registers |
| 23 // itself with WindowTreeHostManager as Observer for display changes, and | 23 // itself with WindowTreeHostManager as Observer for display changes, and |
| 24 // with CrosSettings as Observer for setting changes. Whenever there is a change | 24 // with CrosSettings as Observer for setting changes. Whenever there is a change |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 64 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 65 settings_observer_; | 65 settings_observer_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(DisplayRotationDefaultHandler); | 67 DISALLOW_COPY_AND_ASSIGN(DisplayRotationDefaultHandler); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace policy | 70 } // namespace policy |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DISPLAY_ROTATION_DEFAULT_HANDLER_H_ |
| OLD | NEW |