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

Side by Side Diff: ash/wm/panels/panel_layout_manager.h

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (rebase) Created 7 years, 6 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
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/panels/panel_window_resizer.h » ('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_PANELS_PANEL_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_
6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ 6 #define ASH_WM_PANELS_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"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void OnWindowActivated(aura::Window* gained_active, 99 virtual void OnWindowActivated(aura::Window* gained_active,
100 aura::Window* lost_active) OVERRIDE; 100 aura::Window* lost_active) OVERRIDE;
101 101
102 // Overridden from ShelfLayoutManagerObserver 102 // Overridden from ShelfLayoutManagerObserver
103 virtual void WillChangeVisibilityState( 103 virtual void WillChangeVisibilityState(
104 ShelfVisibilityState new_state) OVERRIDE; 104 ShelfVisibilityState new_state) OVERRIDE;
105 105
106 private: 106 private:
107 friend class PanelLayoutManagerTest; 107 friend class PanelLayoutManagerTest;
108 friend class PanelWindowResizerTest; 108 friend class PanelWindowResizerTest;
109 friend class DockedWindowResizerTest;
110 friend class DockedWindowLayoutManagerTest;
109 111
110 views::Widget* CreateCalloutWidget(); 112 views::Widget* CreateCalloutWidget();
111 113
112 struct PanelInfo{ 114 struct PanelInfo{
113 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} 115 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {}
114 116
115 bool operator==(const aura::Window* other_window) const { 117 bool operator==(const aura::Window* other_window) const {
116 return window == other_window; 118 return window == other_window;
117 } 119 }
118 120
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 aura::Window* last_active_panel_; 170 aura::Window* last_active_panel_;
169 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; 171 base::WeakPtrFactory<PanelLayoutManager> weak_factory_;
170 172
171 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); 173 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager);
172 }; 174 };
173 175
174 } // namespace internal 176 } // namespace internal
175 } // namespace ash 177 } // namespace ash
176 178
177 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ 179 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/panels/panel_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698