Port Android relocation packer to chromium build
[chromium-blink-merge.git] / ash / wm / dock / docked_window_layout_manager_observer.h
blob69839d18895bdf01e5d91bf1c76f4cede8286873
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
3 // found in the LICENSE file.
5 #ifndef UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_
6 #define UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_
8 #include "ash/ash_export.h"
10 namespace gfx {
11 class Rect;
14 namespace ash {
16 // Observers to the DockedWindowLayoutManager are notified of significant
17 // events that occur with the docked windows, such as the bounds change.
18 class ASH_EXPORT DockedWindowLayoutManagerObserver {
19 public:
20 // Reason for notification. Allows selectively ignoring notifications to
21 // prevent a notification loop.
22 enum Reason {
23 CHILD_CHANGED,
24 DISPLAY_RESIZED,
25 DISPLAY_INSETS_CHANGED,
26 SHELF_ALIGNMENT_CHANGED,
27 KEYBOARD_BOUNDS_CHANGING
29 // Called after the dock bounds are changed.
30 virtual void OnDockBoundsChanging(const gfx::Rect& new_bounds,
31 Reason reason) = 0;
33 protected:
34 virtual ~DockedWindowLayoutManagerObserver() {}
37 } // namespace ash
39 #endif // UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_