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

Unified Diff: ash/system/tray/tray_background_view.h

Issue 10854175: Revert 151752 - Move non SystemTray specific code to TrayBackgroundView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_background_view.h
===================================================================
--- ash/system/tray/tray_background_view.h (revision 151762)
+++ ash/system/tray/tray_background_view.h (working copy)
@@ -15,7 +15,6 @@
class StatusAreaWidget;
class TrayBackground;
-class TrayLayerAnimationObserver;
// Base class for children of StatusAreaWidget: SystemTray, WebNotificationTray.
// This class handles setting and animating the background when the Launcher
@@ -59,15 +58,10 @@
explicit TrayBackgroundView(internal::StatusAreaWidget* status_area_widget);
virtual ~TrayBackgroundView();
- // Called after the tray has been added to the widget containing it.
- virtual void Initialize();
-
// Overridden from views::View.
virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
- virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
- virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
// Overridden from internal::ActionableView.
virtual bool PerformAction(const ui::Event& event) OVERRIDE;
@@ -78,9 +72,6 @@
// Called whenever the shelf alignment changes.
virtual void SetShelfAlignment(ShelfAlignment alignment);
- // Called when the anchor (tray or bubble) may have moved or changed.
- virtual void AnchorUpdated() {}
-
// Sets |contents| as a child and sets its background to |background_|.
void SetContents(views::View* contents);
@@ -90,6 +81,10 @@
bool value,
internal::BackgroundAnimator::ChangeType change_type);
+ // Called after all status area trays have been created. Sets the border
+ // based on the position of the view.
+ void SetBorder();
+
StatusAreaWidget* status_area_widget() {
return status_area_widget_;
}
@@ -97,12 +92,6 @@
ShelfAlignment shelf_alignment() const { return shelf_alignment_; }
private:
- friend class TrayLayerAnimationObserver;
-
- // Called from Initialize after all status area trays have been created.
- // Sets the border based on the position of the view.
- void SetBorder();
-
// Unowned pointer to parent widget.
StatusAreaWidget* status_area_widget_;
@@ -117,8 +106,6 @@
internal::BackgroundAnimator hide_background_animator_;
internal::BackgroundAnimator hover_background_animator_;
- scoped_ptr<internal::TrayLayerAnimationObserver>
- layer_animation_observer_;
DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
};
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698