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

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

Issue 2533053002: Handle view resize for ripple (Closed)
Patch Set: Created 4 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
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_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void OnImplicitAnimationsCompleted() override; 156 void OnImplicitAnimationsCompleted() override;
157 bool RequiresNotificationWhenAnimatorDestroyed() const override; 157 bool RequiresNotificationWhenAnimatorDestroyed() const override;
158 158
159 // Applies transformations to the |layer()| to animate the view when 159 // Applies transformations to the |layer()| to animate the view when
160 // SetVisible(false) is called. 160 // SetVisible(false) is called.
161 void HideTransformation(); 161 void HideTransformation();
162 162
163 // Helper function that calculates background insets relative to local bounds. 163 // Helper function that calculates background insets relative to local bounds.
164 gfx::Insets GetBackgroundInsets() const; 164 gfx::Insets GetBackgroundInsets() const;
165 165
166 // Helper function that calculates ink drop bounds relative to local bounds 166 // Helper function that calculates background bounds relative to local bounds
167 // based on the background insets returned from GetBackgroundInsets(). 167 // based on background insets returned from GetBackgroundInsets().
168 gfx::Rect GetInkDropBounds() const; 168 gfx::Rect GetBackgroundBounds() const;
169 169
170 // The shelf containing the system tray for this view. 170 // The shelf containing the system tray for this view.
171 WmShelf* wm_shelf_; 171 WmShelf* wm_shelf_;
172 172
173 // Convenience pointer to the contents view. 173 // Convenience pointer to the contents view.
174 TrayContainer* tray_container_; 174 TrayContainer* tray_container_;
175 175
176 // Shelf alignment. 176 // Shelf alignment.
177 // TODO(jamescook): Don't cache this, get it from WmShelf. 177 // TODO(jamescook): Don't cache this, get it from WmShelf.
178 ShelfAlignment shelf_alignment_; 178 ShelfAlignment shelf_alignment_;
(...skipping 11 matching lines...) Expand all
190 190
191 std::unique_ptr<TrayWidgetObserver> widget_observer_; 191 std::unique_ptr<TrayWidgetObserver> widget_observer_;
192 std::unique_ptr<TrayEventFilter> tray_event_filter_; 192 std::unique_ptr<TrayEventFilter> tray_event_filter_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 194 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
195 }; 195 };
196 196
197 } // namespace ash 197 } // namespace ash
198 198
199 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 199 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698