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

Side by Side Diff: athena/wm/window_manager_impl.h

Issue 601333002: ESC accelerator and consistent overview mode for Athena homecard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviews, update unit tests Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_WM_WINDOW_MANAGER_IMPL_H_ 5 #ifndef ATHENA_WM_WINDOW_MANAGER_IMPL_H_
6 #define ATHENA_WM_WINDOW_MANAGER_IMPL_H_ 6 #define ATHENA_WM_WINDOW_MANAGER_IMPL_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 #include "athena/input/public/accelerator_manager.h" 9 #include "athena/input/public/accelerator_manager.h"
10 #include "athena/wm/public/window_manager.h" 10 #include "athena/wm/public/window_manager.h"
(...skipping 25 matching lines...) Expand all
36 public AcceleratorHandler, 36 public AcceleratorHandler,
37 public TitleDragControllerDelegate { 37 public TitleDragControllerDelegate {
38 public: 38 public:
39 WindowManagerImpl(); 39 WindowManagerImpl();
40 virtual ~WindowManagerImpl(); 40 virtual ~WindowManagerImpl();
41 41
42 void ToggleSplitView(); 42 void ToggleSplitView();
43 43
44 // WindowManager: 44 // WindowManager:
45 virtual void ToggleOverview() OVERRIDE; 45 virtual void ToggleOverview() OVERRIDE;
46 virtual void ActivateOverview(bool activate) OVERRIDE;
46 virtual bool IsOverviewModeActive() OVERRIDE; 47 virtual bool IsOverviewModeActive() OVERRIDE;
47 48
48 private: 49 private:
49 friend class test::WindowManagerImplTestApi; 50 friend class test::WindowManagerImplTestApi;
50 friend class AthenaContainerLayoutManager; 51 friend class AthenaContainerLayoutManager;
51 52
52 enum Command { 53 enum Command {
54 CMD_EXIT_OVERVIEW,
53 CMD_TOGGLE_OVERVIEW, 55 CMD_TOGGLE_OVERVIEW,
54 CMD_TOGGLE_SPLIT_VIEW, 56 CMD_TOGGLE_SPLIT_VIEW,
55 }; 57 };
56 58
57 // Sets whether overview mode is active. 59 // Sets whether overview mode is active.
58 void SetInOverview(bool active); 60 void SetInOverview(bool active);
Jun Mukai 2014/10/03 02:26:07 Remove this method.
Greg Levin 2014/10/06 20:28:00 See comment in window_manager.h
59 61
60 void InstallAccelerators(); 62 void InstallAccelerators();
61 63
62 // WindowManager: 64 // WindowManager:
63 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE; 65 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE;
64 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE; 66 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE;
65 virtual void ToggleSplitViewForTest() OVERRIDE; 67 virtual void ToggleSplitViewForTest() OVERRIDE;
66 virtual WindowListProvider* GetWindowListProvider() OVERRIDE; 68 virtual WindowListProvider* GetWindowListProvider() OVERRIDE;
67 69
68 // WindowOverviewModeDelegate: 70 // WindowOverviewModeDelegate:
(...skipping 25 matching lines...) Expand all
94 scoped_ptr<TitleDragController> title_drag_controller_; 96 scoped_ptr<TitleDragController> title_drag_controller_;
95 scoped_ptr<wm::ShadowController> shadow_controller_; 97 scoped_ptr<wm::ShadowController> shadow_controller_;
96 ObserverList<WindowManagerObserver> observers_; 98 ObserverList<WindowManagerObserver> observers_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); 100 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
99 }; 101 };
100 102
101 } // namespace athena 103 } // namespace athena
102 104
103 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ 105 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698