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

Side by Side Diff: ash/system/tray/tray_background_view.h

Issue 98373006: Animating docked background in sync with shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Animating docked background in sync with shelf (rebase) Created 7 years 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 | « ash/shelf/shelf_widget.cc ('k') | ash/system/tray/tray_background_view.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_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_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_types.h" 10 #include "ash/shelf/shelf_types.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual bool ClickedOutsideBubble() = 0; 101 virtual bool ClickedOutsideBubble() = 0;
102 102
103 // Sets |contents| as a child. 103 // Sets |contents| as a child.
104 void SetContents(views::View* contents); 104 void SetContents(views::View* contents);
105 105
106 // Creates and sets contents background to |background_|. 106 // Creates and sets contents background to |background_|.
107 void SetContentsBackground(); 107 void SetContentsBackground();
108 108
109 // Sets whether the tray paints a background. Default is true, but is set to 109 // Sets whether the tray paints a background. Default is true, but is set to
110 // false if a window overlaps the shelf. 110 // false if a window overlaps the shelf.
111 void SetPaintsBackground( 111 void SetPaintsBackground(bool value,
112 bool value, 112 BackgroundAnimatorChangeType change_type);
113 internal::BackgroundAnimator::ChangeType change_type);
114 113
115 // Initializes animations for the bubble. 114 // Initializes animations for the bubble.
116 void InitializeBubbleAnimations(views::Widget* bubble_widget); 115 void InitializeBubbleAnimations(views::Widget* bubble_widget);
117 116
118 // Returns the window hosting the bubble. 117 // Returns the window hosting the bubble.
119 aura::Window* GetBubbleWindowContainer() const; 118 aura::Window* GetBubbleWindowContainer() const;
120 119
121 // Returns the anchor rect for the bubble. 120 // Returns the anchor rect for the bubble.
122 gfx::Rect GetBubbleAnchorRect( 121 gfx::Rect GetBubbleAnchorRect(
123 views::Widget* anchor_widget, 122 views::Widget* anchor_widget,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 scoped_ptr<TrayWidgetObserver> widget_observer_; 180 scoped_ptr<TrayWidgetObserver> widget_observer_;
182 scoped_ptr<TrayEventFilter> tray_event_filter_; 181 scoped_ptr<TrayEventFilter> tray_event_filter_;
183 182
184 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 183 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
185 }; 184 };
186 185
187 } // namespace internal 186 } // namespace internal
188 } // namespace ash 187 } // namespace ash
189 188
190 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 189 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_widget.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698