| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ | 5 #ifndef ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ |
| 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ | 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/wm/common/ash_wm_common_export.h" | 8 #include "ash/ash_export.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Rect; | 11 class Rect; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 // Observers to the DockedWindowLayoutManager are notified of significant | 16 // Observers to the DockedWindowLayoutManager are notified of significant |
| 17 // events that occur with the docked windows, such as the bounds change. | 17 // events that occur with the docked windows, such as the bounds change. |
| 18 class ASH_WM_COMMON_EXPORT DockedWindowLayoutManagerObserver { | 18 class ASH_EXPORT DockedWindowLayoutManagerObserver { |
| 19 public: | 19 public: |
| 20 // Reason for notification. Allows selectively ignoring notifications to | 20 // Reason for notification. Allows selectively ignoring notifications to |
| 21 // prevent a notification loop. | 21 // prevent a notification loop. |
| 22 enum Reason { | 22 enum Reason { |
| 23 CHILD_CHANGED, | 23 CHILD_CHANGED, |
| 24 DISPLAY_RESIZED, | 24 DISPLAY_RESIZED, |
| 25 DISPLAY_INSETS_CHANGED, | 25 DISPLAY_INSETS_CHANGED, |
| 26 SHELF_ALIGNMENT_CHANGED, | 26 SHELF_ALIGNMENT_CHANGED, |
| 27 KEYBOARD_BOUNDS_CHANGING | 27 KEYBOARD_BOUNDS_CHANGING |
| 28 }; | 28 }; |
| 29 // Called after the dock bounds are changed. | 29 // Called after the dock bounds are changed. |
| 30 virtual void OnDockBoundsChanging(const gfx::Rect& new_bounds, | 30 virtual void OnDockBoundsChanging(const gfx::Rect& new_bounds, |
| 31 Reason reason) = 0; | 31 Reason reason) = 0; |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 virtual ~DockedWindowLayoutManagerObserver() {} | 34 virtual ~DockedWindowLayoutManagerObserver() {} |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace ash | 37 } // namespace ash |
| 38 | 38 |
| 39 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ | 39 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ |
| OLD | NEW |