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

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

Issue 465983002: Add shoftcut (ctrl-f6) to toggle split view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « athena/wm/split_view_controller.cc ('k') | athena/wm/window_manager_impl.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 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/input/public/accelerator_manager.h" 8 #include "athena/input/public/accelerator_manager.h"
9 #include "athena/wm/public/window_manager.h" 9 #include "athena/wm/public/window_manager.h"
10 #include "athena/wm/title_drag_controller.h" 10 #include "athena/wm/title_drag_controller.h"
(...skipping 26 matching lines...) Expand all
37 // WindowManager: 37 // WindowManager:
38 virtual void ToggleOverview() OVERRIDE; 38 virtual void ToggleOverview() OVERRIDE;
39 virtual bool IsOverviewModeActive() OVERRIDE; 39 virtual bool IsOverviewModeActive() OVERRIDE;
40 40
41 private: 41 private:
42 friend class WindowManagerImplTestApi; 42 friend class WindowManagerImplTestApi;
43 friend class AthenaContainerLayoutManager; 43 friend class AthenaContainerLayoutManager;
44 44
45 enum Command { 45 enum Command {
46 CMD_TOGGLE_OVERVIEW, 46 CMD_TOGGLE_OVERVIEW,
47 CMD_TOGGLE_SPLIT_VIEW,
47 }; 48 };
48 49
49 // Sets whether overview mode is active. 50 // Sets whether overview mode is active.
50 void SetInOverview(bool active); 51 void SetInOverview(bool active);
51 52
53 void ToggleSplitview();
54
52 void InstallAccelerators(); 55 void InstallAccelerators();
53 56
54 // WindowManager: 57 // WindowManager:
55 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE; 58 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE;
56 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE; 59 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE;
57 60
58 // WindowOverviewModeDelegate: 61 // WindowOverviewModeDelegate:
59 virtual void OnSelectWindow(aura::Window* window) OVERRIDE; 62 virtual void OnSelectWindow(aura::Window* window) OVERRIDE;
60 virtual void OnSplitViewMode(aura::Window* left, 63 virtual void OnSplitViewMode(aura::Window* left,
61 aura::Window* right) OVERRIDE; 64 aura::Window* right) OVERRIDE;
(...skipping 22 matching lines...) Expand all
84 scoped_ptr<TitleDragController> title_drag_controller_; 87 scoped_ptr<TitleDragController> title_drag_controller_;
85 scoped_ptr<wm::ShadowController> shadow_controller_; 88 scoped_ptr<wm::ShadowController> shadow_controller_;
86 ObserverList<WindowManagerObserver> observers_; 89 ObserverList<WindowManagerObserver> observers_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); 91 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
89 }; 92 };
90 93
91 } // namespace athena 94 } // namespace athena
92 95
93 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ 96 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « athena/wm/split_view_controller.cc ('k') | athena/wm/window_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698