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

Side by Side Diff: ash/shelf/shelf_layout_manager.h

Issue 100903002: Ignore fullscreen windows which are behind other windows for fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 7 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/root_window_controller_unittest.cc ('k') | ash/shelf/shelf_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_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 template<typename T> 210 template<typename T>
211 T PrimaryAxisValue(T horizontal, T vertical) const { 211 T PrimaryAxisValue(T horizontal, T vertical) const {
212 return IsHorizontalAlignment() ? horizontal : vertical; 212 return IsHorizontalAlignment() ? horizontal : vertical;
213 } 213 }
214 214
215 // Is the shelf's alignment horizontal? 215 // Is the shelf's alignment horizontal?
216 bool IsHorizontalAlignment() const; 216 bool IsHorizontalAlignment() const;
217 217
218 // Returns true if there is a fullscreen window and the shelf needs to be
219 // hidden for the topmost fullscreen window.
220 bool FullscreenWithHiddenShelf() const;
221
222 // Returns a ShelfLayoutManager on the display which has a launcher for 218 // Returns a ShelfLayoutManager on the display which has a launcher for
223 // given |window|. See RootWindowController::ForLauncher for more info. 219 // given |window|. See RootWindowController::ForLauncher for more info.
224 static ShelfLayoutManager* ForLauncher(aura::Window* window); 220 static ShelfLayoutManager* ForLauncher(aura::Window* window);
225 221
226 private: 222 private:
227 class AutoHideEventFilter; 223 class AutoHideEventFilter;
228 class UpdateShelfObserver; 224 class UpdateShelfObserver;
229 friend class ash::ScreenAsh; 225 friend class ash::ScreenAsh;
230 friend class PanelLayoutManagerTest; 226 friend class PanelLayoutManagerTest;
231 friend class ShelfLayoutManagerTest; 227 friend class ShelfLayoutManagerTest;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // The bounds of the dock. 406 // The bounds of the dock.
411 gfx::Rect dock_bounds_; 407 gfx::Rect dock_bounds_;
412 408
413 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 409 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
414 }; 410 };
415 411
416 } // namespace internal 412 } // namespace internal
417 } // namespace ash 413 } // namespace ash
418 414
419 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 415 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698