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_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ | 5 #ifndef ASH_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ |
6 #define ASH_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ | 6 #define ASH_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
13 #include "ash/common/wm_display_observer.h" | 13 #include "ash/wm_display_observer.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "ui/display/manager/managed_display_info.h" | 16 #include "ui/display/manager/managed_display_info.h" |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 | 19 |
20 // ScreenLayoutObserver is responsible to send notification to users when screen | 20 // ScreenLayoutObserver is responsible to send notification to users when screen |
21 // resolution changes or screen rotation changes. | 21 // resolution changes or screen rotation changes. |
22 class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver { | 22 class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver { |
23 public: | 23 public: |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 DisplayMode current_display_mode_ = DisplayMode::SINGLE; | 78 DisplayMode current_display_mode_ = DisplayMode::SINGLE; |
79 | 79 |
80 bool show_notifications_for_testing = true; | 80 bool show_notifications_for_testing = true; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver); | 82 DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace ash | 85 } // namespace ash |
86 | 86 |
87 #endif // ASH_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ | 87 #endif // ASH_SYSTEM_SCREEN_LAYOUT_OBSERVER_H_ |
OLD | NEW |