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

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

Issue 2782223002: Add ability to have active window autohide shelf (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « no previous file | ash/common/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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Called when the LoginUI changes from visible to invisible. 273 // Called when the LoginUI changes from visible to invisible.
274 void UpdateShelfVisibilityAfterLoginUIChange(); 274 void UpdateShelfVisibilityAfterLoginUIChange();
275 275
276 // Compute |target_bounds| opacity based on gesture and shelf visibility. 276 // Compute |target_bounds| opacity based on gesture and shelf visibility.
277 float ComputeTargetOpacity(const State& state); 277 float ComputeTargetOpacity(const State& state);
278 278
279 // Returns true if there is a fullscreen window open that causes the shelf 279 // Returns true if there is a fullscreen window open that causes the shelf
280 // to be hidden. 280 // to be hidden.
281 bool IsShelfHiddenForFullscreen() const; 281 bool IsShelfHiddenForFullscreen() const;
282 282
283 // Returns true if there is a fullscreen or maximized window open that causes
284 // the shelf to be autohidden.
285 bool IsShelfAutoHideForFullscreenMaximized() const;
286
283 // Gesture related functions: 287 // Gesture related functions:
284 void StartGestureDrag(const ui::GestureEvent& gesture); 288 void StartGestureDrag(const ui::GestureEvent& gesture);
285 void UpdateGestureDrag(const ui::GestureEvent& gesture); 289 void UpdateGestureDrag(const ui::GestureEvent& gesture);
286 void CompleteGestureDrag(const ui::GestureEvent& gesture); 290 void CompleteGestureDrag(const ui::GestureEvent& gesture);
287 void CancelGestureDrag(); 291 void CancelGestureDrag();
288 292
289 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling 293 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling
290 // UpdateBoundsAndOpacity() again from SetChildBounds(). 294 // UpdateBoundsAndOpacity() again from SetChildBounds().
291 bool updating_bounds_; 295 bool updating_bounds_;
292 296
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 ScopedObserver<keyboard::KeyboardController, 359 ScopedObserver<keyboard::KeyboardController,
356 keyboard::KeyboardControllerObserver> 360 keyboard::KeyboardControllerObserver>
357 keyboard_observer_; 361 keyboard_observer_;
358 362
359 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 363 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
360 }; 364 };
361 365
362 } // namespace ash 366 } // namespace ash
363 367
364 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ 368 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698