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

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
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_in_root() const {
126 return non_shelf_bounds_in_root_;
127 }
128
124 // Stops any animations and sets the bounds of the shelf and status 129 // Stops any animations and sets the bounds of the shelf and status
125 // widgets. 130 // widgets.
126 void LayoutShelf(); 131 void LayoutShelf();
127 132
128 // Returns shelf visibility state based on current value of auto hide 133 // Returns shelf visibility state based on current value of auto hide
129 // behavior setting. 134 // behavior setting.
130 ShelfVisibilityState CalculateShelfVisibility(); 135 ShelfVisibilityState CalculateShelfVisibility();
131 136
132 // Updates the visibility state. 137 // Updates the visibility state.
133 void UpdateVisibilityState(); 138 void UpdateVisibilityState();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 397
393 // Used to delay updating shelf background. 398 // Used to delay updating shelf background.
394 UpdateShelfObserver* update_shelf_observer_; 399 UpdateShelfObserver* update_shelf_observer_;
395 400
396 // The bounds of the keyboard. 401 // The bounds of the keyboard.
397 gfx::Rect keyboard_bounds_; 402 gfx::Rect keyboard_bounds_;
398 403
399 // The bounds of the dock. 404 // The bounds of the dock.
400 gfx::Rect dock_bounds_; 405 gfx::Rect dock_bounds_;
401 406
407 // The bounds within the root window not occupied by the shelf.
408 gfx::Rect non_shelf_bounds_in_root_;
409
402 // The show hide animation duration override or 0 for default. 410 // The show hide animation duration override or 0 for default.
403 int duration_override_in_ms_; 411 int duration_override_in_ms_;
404 412
405 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 413 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
406 }; 414 };
407 415
408 } // namespace ash 416 } // namespace ash
409 417
410 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 418 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | ash/system/web_notification/ash_popup_alignment_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698