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

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

Issue 2790943003: Add ability to have active window autohide shelf (Closed)
Patch Set: 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Called when the LoginUI changes from visible to invisible. 275 // Called when the LoginUI changes from visible to invisible.
276 void UpdateShelfVisibilityAfterLoginUIChange(); 276 void UpdateShelfVisibilityAfterLoginUIChange();
277 277
278 // Compute |target_bounds| opacity based on gesture and shelf visibility. 278 // Compute |target_bounds| opacity based on gesture and shelf visibility.
279 float ComputeTargetOpacity(const State& state); 279 float ComputeTargetOpacity(const State& state);
280 280
281 // Returns true if there is a fullscreen window open that causes the shelf 281 // Returns true if there is a fullscreen window open that causes the shelf
282 // to be hidden. 282 // to be hidden.
283 bool IsShelfHiddenForFullscreen() const; 283 bool IsShelfHiddenForFullscreen() const;
284 284
285 // Returns true if there is a fullscreen or maximized window open that causes
286 // the shelf to be autohidden.
287 bool IsShelfAutoHideForFullscreenMaximized() const;
288
285 // Gesture related functions: 289 // Gesture related functions:
286 void StartGestureDrag(const ui::GestureEvent& gesture); 290 void StartGestureDrag(const ui::GestureEvent& gesture);
287 void UpdateGestureDrag(const ui::GestureEvent& gesture); 291 void UpdateGestureDrag(const ui::GestureEvent& gesture);
288 void CompleteGestureDrag(const ui::GestureEvent& gesture); 292 void CompleteGestureDrag(const ui::GestureEvent& gesture);
289 void CancelGestureDrag(); 293 void CancelGestureDrag();
290 294
291 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling 295 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling
292 // UpdateBoundsAndOpacity() again from SetChildBounds(). 296 // UpdateBoundsAndOpacity() again from SetChildBounds().
293 bool updating_bounds_; 297 bool updating_bounds_;
294 298
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 // The current shelf background. Should not be assigned to directly, use 360 // The current shelf background. Should not be assigned to directly, use
357 // MaybeUpdateShelfBackground() instead. 361 // MaybeUpdateShelfBackground() instead.
358 ShelfBackgroundType shelf_background_type_; 362 ShelfBackgroundType shelf_background_type_;
359 363
360 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 364 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
361 }; 365 };
362 366
363 } // namespace ash 367 } // namespace ash
364 368
365 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ 369 #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