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

Side by Side Diff: ash/launcher/launcher.h

Issue 10824219: Fixes bug where launcher background would remain painted when it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment tweaks Created 8 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 | « ash/launcher/background_animator.h ('k') | ash/wm/workspace/workspace_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_LAUNCHER_LAUNCHER_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_
6 #define ASH_LAUNCHER_LAUNCHER_H_ 6 #define ASH_LAUNCHER_LAUNCHER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/background_animator.h" 9 #include "ash/launcher/background_animator.h"
10 #include "ash/launcher/launcher_types.h" 10 #include "ash/launcher/launcher_types.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 internal::FocusCycler* GetFocusCycler(); 49 internal::FocusCycler* GetFocusCycler();
50 50
51 void SetAlignment(ShelfAlignment alignment); 51 void SetAlignment(ShelfAlignment alignment);
52 ShelfAlignment alignment() const { return alignment_; } 52 ShelfAlignment alignment() const { return alignment_; }
53 53
54 // Sets whether the launcher paints a background. Default is false, but is set 54 // Sets whether the launcher paints a background. Default is false, but is set
55 // to true if a window overlaps the shelf. 55 // to true if a window overlaps the shelf.
56 void SetPaintsBackground( 56 void SetPaintsBackground(
57 bool value, 57 bool value,
58 internal::BackgroundAnimator::ChangeType change_type); 58 internal::BackgroundAnimator::ChangeType change_type);
59 bool paints_background() const {
60 return background_animator_.paints_background();
61 }
59 62
60 // Sets the size of the status area. 63 // Sets the size of the status area.
61 void SetStatusSize(const gfx::Size& size); 64 void SetStatusSize(const gfx::Size& size);
62 const gfx::Size& status_size() const { return status_size_; } 65 const gfx::Size& status_size() const { return status_size_; }
63 66
64 // Returns the screen bounds of the item for the specified window. If there is 67 // Returns the screen bounds of the item for the specified window. If there is
65 // no item for the specified window an empty rect is returned. 68 // no item for the specified window an empty rect is returned.
66 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window); 69 gfx::Rect GetScreenBoundsOfItemIconForWindow(aura::Window* window);
67 70
68 // Activates the the launcher item specified by the index in the list 71 // Activates the the launcher item specified by the index in the list
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 126
124 // Used to animate the background. 127 // Used to animate the background.
125 internal::BackgroundAnimator background_animator_; 128 internal::BackgroundAnimator background_animator_;
126 129
127 DISALLOW_COPY_AND_ASSIGN(Launcher); 130 DISALLOW_COPY_AND_ASSIGN(Launcher);
128 }; 131 };
129 132
130 } // namespace ash 133 } // namespace ash
131 134
132 #endif // ASH_LAUNCHER_LAUNCHER_H_ 135 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/launcher/background_animator.h ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698