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

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

Issue 1121893004: Have Notifications appear over docked windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/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_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Returns whether the shelf and its contents (shelf, status) are visible 114 // Returns whether the shelf and its contents (shelf, status) are visible
115 // on the screen. 115 // on the screen.
116 bool IsVisible() const; 116 bool IsVisible() const;
117 117
118 // Returns the ideal bounds of the shelf assuming it is visible. 118 // Returns the ideal bounds of the shelf assuming it is visible.
119 gfx::Rect GetIdealBounds(); 119 gfx::Rect GetIdealBounds();
120 120
121 // Returns the docked area bounds. 121 // Returns the docked area bounds.
122 const gfx::Rect& dock_bounds() const { return dock_bounds_; } 122 const gfx::Rect& dock_bounds() const { return dock_bounds_; }
123 123
124 // Returns the bounds within the root window not occupied by the shelf.
125 const gfx::Rect& non_shelf_bounds() const { return non_shelf_bounds_; }
126
124 // Stops any animations and sets the bounds of the shelf and status 127 // Stops any animations and sets the bounds of the shelf and status
125 // widgets. 128 // widgets.
126 void LayoutShelf(); 129 void LayoutShelf();
127 130
128 // Returns shelf visibility state based on current value of auto hide 131 // Returns shelf visibility state based on current value of auto hide
129 // behavior setting. 132 // behavior setting.
130 ShelfVisibilityState CalculateShelfVisibility(); 133 ShelfVisibilityState CalculateShelfVisibility();
131 134
132 // Updates the visibility state. 135 // Updates the visibility state.
133 void UpdateVisibilityState(); 136 void UpdateVisibilityState();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 395
393 // Used to delay updating shelf background. 396 // Used to delay updating shelf background.
394 UpdateShelfObserver* update_shelf_observer_; 397 UpdateShelfObserver* update_shelf_observer_;
395 398
396 // The bounds of the keyboard. 399 // The bounds of the keyboard.
397 gfx::Rect keyboard_bounds_; 400 gfx::Rect keyboard_bounds_;
398 401
399 // The bounds of the dock. 402 // The bounds of the dock.
400 gfx::Rect dock_bounds_; 403 gfx::Rect dock_bounds_;
401 404
405 // The bounds within the root window not occupied by the shelf.
406 gfx::Rect non_shelf_bounds_;
407
402 // The show hide animation duration override or 0 for default. 408 // The show hide animation duration override or 0 for default.
403 int duration_override_in_ms_; 409 int duration_override_in_ms_;
404 410
405 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
406 }; 412 };
407 413
408 } // namespace ash 414 } // namespace ash
409 415
410 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 416 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698