Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: ash/wm/dock/docked_window_layout_manager_observer.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ 5 #ifndef UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_
6 #define UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ 6 #define UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_
7 7
8 #include "ash/ash_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 namespace internal {
16 15
17 // Observers to the DockedWindowLayoutManager are notified of significant 16 // Observers to the DockedWindowLayoutManager are notified of significant
18 // 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.
19 class ASH_EXPORT DockedWindowLayoutManagerObserver { 18 class ASH_EXPORT DockedWindowLayoutManagerObserver {
20 public: 19 public:
21 // Reason for notification. Allows selectively ignoring notifications to 20 // Reason for notification. Allows selectively ignoring notifications to
22 // prevent a notification loop. 21 // prevent a notification loop.
23 enum Reason { 22 enum Reason {
24 CHILD_CHANGED, 23 CHILD_CHANGED,
25 DISPLAY_RESIZED, 24 DISPLAY_RESIZED,
26 DISPLAY_INSETS_CHANGED, 25 DISPLAY_INSETS_CHANGED,
27 SHELF_ALIGNMENT_CHANGED, 26 SHELF_ALIGNMENT_CHANGED,
28 KEYBOARD_BOUNDS_CHANGING 27 KEYBOARD_BOUNDS_CHANGING
29 }; 28 };
30 // Called after the dock bounds are changed. 29 // Called after the dock bounds are changed.
31 virtual void OnDockBoundsChanging(const gfx::Rect& new_bounds, 30 virtual void OnDockBoundsChanging(const gfx::Rect& new_bounds,
32 Reason reason) = 0; 31 Reason reason) = 0;
33 32
34 protected: 33 protected:
35 virtual ~DockedWindowLayoutManagerObserver() {} 34 virtual ~DockedWindowLayoutManagerObserver() {}
36 }; 35 };
37 36
38 } // namespace internal
39 } // namespace ash 37 } // namespace ash
40 38
41 #endif // UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_ 39 #endif // UI_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager.cc ('k') | ash/wm/dock/docked_window_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698