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

Side by Side Diff: ash/wm/panel_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/ash_focus_rules.cc ('k') | ash/wm/panel_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_PANEL_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_PANEL_LAYOUT_MANAGER_H_
6 #define ASH_WM_PANEL_LAYOUT_MANAGER_H_ 6 #define ASH_WM_PANEL_LAYOUT_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/launcher/launcher_icon_observer.h" 11 #include "ash/launcher/launcher_icon_observer.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/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "ui/aura/client/activation_change_observer.h"
17 #include "ui/aura/layout_manager.h" 16 #include "ui/aura/layout_manager.h"
18 #include "ui/aura/window_observer.h" 17 #include "ui/aura/window_observer.h"
18 #include "ui/views/corewm/activation_change_shim.h"
19 19
20 namespace aura { 20 namespace aura {
21 class Window; 21 class Window;
22 } 22 }
23 23
24 namespace gfx { 24 namespace gfx {
25 class Rect; 25 class Rect;
26 } 26 }
27 27
28 namespace views { 28 namespace views {
(...skipping 11 matching lines...) Expand all
40 // added to that container. 40 // added to that container.
41 // 41 //
42 // The constructor takes a |panel_container| argument which is expected to set 42 // The constructor takes a |panel_container| argument which is expected to set
43 // its layout manager to this instance, e.g.: 43 // its layout manager to this instance, e.g.:
44 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); 44 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container));
45 45
46 class ASH_EXPORT PanelLayoutManager 46 class ASH_EXPORT PanelLayoutManager
47 : public aura::LayoutManager, 47 : public aura::LayoutManager,
48 public ash::LauncherIconObserver, 48 public ash::LauncherIconObserver,
49 public aura::WindowObserver, 49 public aura::WindowObserver,
50 public aura::client::ActivationChangeObserver { 50 public views::corewm::ActivationChangeShim {
51 public: 51 public:
52 explicit PanelLayoutManager(aura::Window* panel_container); 52 explicit PanelLayoutManager(aura::Window* panel_container);
53 virtual ~PanelLayoutManager(); 53 virtual ~PanelLayoutManager();
54 54
55 void StartDragging(aura::Window* panel); 55 void StartDragging(aura::Window* panel);
56 void FinishDragging(); 56 void FinishDragging();
57 57
58 void ToggleMinimize(aura::Window* panel); 58 void ToggleMinimize(aura::Window* panel);
59 59
60 void SetLauncher(ash::Launcher* launcher); 60 void SetLauncher(ash::Launcher* launcher);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 scoped_ptr<views::Widget> callout_widget_; 128 scoped_ptr<views::Widget> callout_widget_;
129 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; 129 base::WeakPtrFactory<PanelLayoutManager> weak_factory_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); 131 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager);
132 }; 132 };
133 133
134 } // namespace internal 134 } // namespace internal
135 } // namespace ash 135 } // namespace ash
136 136
137 #endif // ASH_WM_PANEL_LAYOUT_MANAGER_H_ 137 #endif // ASH_WM_PANEL_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/ash_focus_rules.cc ('k') | ash/wm/panel_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698