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

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

Issue 448493002: Avoiding double resize of maximized windows upon user switch due to showing and hiding of the shelf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/shelf/shelf_widget.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_WIDGET_H_ 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_
6 #define ASH_SHELF_SHELF_WIDGET_H_ 6 #define ASH_SHELF_SHELF_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/background_animator.h" 9 #include "ash/shelf/background_animator.h"
10 #include "ash/shelf/shelf_layout_manager_observer.h" 10 #include "ash/shelf/shelf_layout_manager_observer.h"
(...skipping 27 matching lines...) Expand all
38 static bool ShelfAlignmentAllowed(); 38 static bool ShelfAlignmentAllowed();
39 39
40 void SetAlignment(ShelfAlignment alignmnet); 40 void SetAlignment(ShelfAlignment alignmnet);
41 ShelfAlignment GetAlignment() const; 41 ShelfAlignment GetAlignment() const;
42 42
43 // Sets the shelf's background type. 43 // Sets the shelf's background type.
44 void SetPaintsBackground(ShelfBackgroundType background_type, 44 void SetPaintsBackground(ShelfBackgroundType background_type,
45 BackgroundAnimatorChangeType change_type); 45 BackgroundAnimatorChangeType change_type);
46 ShelfBackgroundType GetBackgroundType() const; 46 ShelfBackgroundType GetBackgroundType() const;
47 47
48 // Hide the shelf behind a black bar during e.g. a user transition when |hide|
49 // is true. The |animation_time_ms| will be used as animation duration.
50 void HideShelfBehindBlackBar(bool hide, int animation_time_ms);
51 bool IsShelfHiddenBehindBlackBar() const;
52
48 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). 53 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized).
49 void SetDimsShelf(bool dimming); 54 void SetDimsShelf(bool dimming);
50 bool GetDimsShelf() const; 55 bool GetDimsShelf() const;
51 56
52 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } 57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; }
53 Shelf* shelf() const { return shelf_.get(); } 58 Shelf* shelf() const { return shelf_.get(); }
54 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } 59 StatusAreaWidget* status_area_widget() const { return status_area_widget_; }
55 60
56 void CreateShelf(); 61 void CreateShelf();
57 62
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // during CloseChildWindows of the associated RootWindowController. 109 // during CloseChildWindows of the associated RootWindowController.
105 DelegateView* delegate_view_; 110 DelegateView* delegate_view_;
106 BackgroundAnimator background_animator_; 111 BackgroundAnimator background_animator_;
107 bool activating_as_fallback_; 112 bool activating_as_fallback_;
108 aura::Window* window_container_; 113 aura::Window* window_container_;
109 }; 114 };
110 115
111 } // namespace ash 116 } // namespace ash
112 117
113 #endif // ASH_SHELF_SHELF_WIDGET_H_ 118 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698