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

Side by Side Diff: ash/wm/shelf_layout_manager.h

Issue 11421194: Hook up the FocusController behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
« no previous file with comments | « ash/wm/panel_layout_manager.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_WM_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher.h" 9 #include "ash/launcher/launcher.h"
10 #include "ash/shell_observer.h" 10 #include "ash/shell_observer.h"
11 #include "ash/wm/shelf_types.h" 11 #include "ash/wm/shelf_types.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/timer.h" 16 #include "base/timer.h"
17 #include "ui/aura/client/activation_change_observer.h"
18 #include "ui/aura/layout_manager.h" 17 #include "ui/aura/layout_manager.h"
19 #include "ui/gfx/insets.h" 18 #include "ui/gfx/insets.h"
20 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
20 #include "ui/views/corewm/activation_change_shim.h"
21 21
22 namespace aura { 22 namespace aura {
23 class RootWindow; 23 class RootWindow;
24 } 24 }
25 25
26 namespace ui { 26 namespace ui {
27 class GestureEvent; 27 class GestureEvent;
28 } 28 }
29 29
30 namespace ash { 30 namespace ash {
31 class ScreenAsh; 31 class ScreenAsh;
32 namespace internal { 32 namespace internal {
33 33
34 class ShelfLayoutManagerTest; 34 class ShelfLayoutManagerTest;
35 class StatusAreaWidget; 35 class StatusAreaWidget;
36 class WorkspaceController; 36 class WorkspaceController;
37 37
38 // ShelfLayoutManager is the layout manager responsible for the launcher and 38 // ShelfLayoutManager is the layout manager responsible for the launcher and
39 // status widgets. The launcher is given the total available width and told the 39 // status widgets. The launcher is given the total available width and told the
40 // width of the status area. This allows the launcher to draw the background and 40 // width of the status area. This allows the launcher to draw the background and
41 // layout to the status area. 41 // layout to the status area.
42 // To respond to bounds changes in the status area StatusAreaLayoutManager works 42 // To respond to bounds changes in the status area StatusAreaLayoutManager works
43 // closely with ShelfLayoutManager. 43 // closely with ShelfLayoutManager.
44 class ASH_EXPORT ShelfLayoutManager : 44 class ASH_EXPORT ShelfLayoutManager :
45 public aura::LayoutManager, 45 public aura::LayoutManager,
46 public ash::ShellObserver, 46 public ash::ShellObserver,
47 public aura::client::ActivationChangeObserver { 47 public views::corewm::ActivationChangeShim {
48 public: 48 public:
49 enum VisibilityState { 49 enum VisibilityState {
50 // Completely visible. 50 // Completely visible.
51 VISIBLE, 51 VISIBLE,
52 52
53 // A couple of pixels are reserved at the bottom for the shelf. 53 // A couple of pixels are reserved at the bottom for the shelf.
54 AUTO_HIDE, 54 AUTO_HIDE,
55 55
56 // Nothing is shown. Used for fullscreen windows. 56 // Nothing is shown. Used for fullscreen windows.
57 HIDDEN, 57 HIDDEN,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // Used to delay updating shelf background. 306 // Used to delay updating shelf background.
307 UpdateShelfObserver* update_shelf_observer_; 307 UpdateShelfObserver* update_shelf_observer_;
308 308
309 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 309 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
310 }; 310 };
311 311
312 } // namespace internal 312 } // namespace internal
313 } // namespace ash 313 } // namespace ash
314 314
315 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ 315 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/panel_layout_manager.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698