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

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

Issue 9873020: ash: Do not show the arrow in the tray bubbles when the tray isn't visible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « ash/system/tray/system_tray.cc ('k') | ash/wm/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 (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_WM_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/launcher/launcher.h" 10 #include "ash/launcher/launcher.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const views::Widget* launcher_widget() const { 80 const views::Widget* launcher_widget() const {
81 return launcher_ ? launcher_->widget() : NULL; 81 return launcher_ ? launcher_->widget() : NULL;
82 } 82 }
83 views::Widget* status() { return status_; } 83 views::Widget* status() { return status_; }
84 84
85 bool in_layout() const { return in_layout_; } 85 bool in_layout() const { return in_layout_; }
86 86
87 // See description above field. 87 // See description above field.
88 int shelf_height() const { return shelf_height_; } 88 int shelf_height() const { return shelf_height_; }
89 89
90 // Returns whether the shelf and its contents (launcher, status) are visible
91 // on the screen.
92 bool IsVisible() const;
93
90 // Returns the bounds the specified window should be when maximized. 94 // Returns the bounds the specified window should be when maximized.
91 gfx::Rect GetMaximizedWindowBounds(aura::Window* window) const; 95 gfx::Rect GetMaximizedWindowBounds(aura::Window* window) const;
92 gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window) const; 96 gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window) const;
93 97
94 // The launcher is typically created after the layout manager. 98 // The launcher is typically created after the layout manager.
95 void SetLauncher(Launcher* launcher); 99 void SetLauncher(Launcher* launcher);
96 100
97 // Stops any animations and sets the bounds of the launcher and status 101 // Stops any animations and sets the bounds of the launcher and status
98 // widgets. 102 // widgets.
99 void LayoutShelf(); 103 void LayoutShelf();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // trigger showing the launcher. 206 // trigger showing the launcher.
203 scoped_ptr<AutoHideEventFilter> event_filter_; 207 scoped_ptr<AutoHideEventFilter> event_filter_;
204 208
205 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 209 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
206 }; 210 };
207 211
208 } // namespace internal 212 } // namespace internal
209 } // namespace ash 213 } // namespace ash
210 214
211 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ 215 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698