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

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

Issue 574113004: [Athena] Fix switching activities by swiping from the right bezel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_split
Patch Set: Created 6 years, 3 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_SPLIT_VIEW_CONTROLLER_H_ 5 #ifndef ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_
6 #define ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_ 6 #define ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 #include "athena/wm/bezel_controller.h" 9 #include "athena/wm/bezel_controller.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 WindowListProvider* window_list_provider); 27 WindowListProvider* window_list_provider);
28 28
29 virtual ~SplitViewController(); 29 virtual ~SplitViewController();
30 30
31 bool CanActivateSplitViewMode() const; 31 bool CanActivateSplitViewMode() const;
32 bool IsSplitViewModeActive() const; 32 bool IsSplitViewModeActive() const;
33 33
34 // Activates split-view mode with |left| and |right| windows. If |left| and/or 34 // Activates split-view mode with |left| and |right| windows. If |left| and/or
35 // |right| is NULL, then the first window in the window-list (which is neither 35 // |right| is NULL, then the first window in the window-list (which is neither
36 // |left| nor |right|) is selected instead. 36 // |left| nor |right|) is selected instead.
37 void ActivateSplitMode(aura::Window* left, aura::Window* right); 37 void ActivateSplitMode(aura::Window* left,
38 aura::Window* right,
39 aura::Window* to_activate);
38 40
39 // Resets the internal state to an inactive state. 41 // Resets the internal state to an inactive state.
40 void DeactivateSplitMode(); 42 void DeactivateSplitMode();
41 43
42 // Replaces |window| in split-view mode with |replace_with|. Adjusts 44 // Replaces |window| in split-view mode with |replace_with|. Adjusts
43 // |replace_with|'s visibility, transform and bounds. Resets |window|'s 45 // |replace_with|'s visibility, transform and bounds. Resets |window|'s
44 // visibility and transform but does not change its bounds. 46 // visibility and transform but does not change its bounds.
45 void ReplaceWindow(aura::Window* window, 47 void ReplaceWindow(aura::Window* window,
46 aura::Window* replace_with); 48 aura::Window* replace_with);
47 49
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 std::vector<aura::Window*> to_hide_; 110 std::vector<aura::Window*> to_hide_;
109 111
110 base::WeakPtrFactory<SplitViewController> weak_factory_; 112 base::WeakPtrFactory<SplitViewController> weak_factory_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(SplitViewController); 114 DISALLOW_COPY_AND_ASSIGN(SplitViewController);
113 }; 115 };
114 116
115 } // namespace athena 117 } // namespace athena
116 118
117 #endif // ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_ 119 #endif // ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698