diff options
Diffstat (limited to 'chromium/ash/system/tray/throbber_view.h')
-rw-r--r-- | chromium/ash/system/tray/throbber_view.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/chromium/ash/system/tray/throbber_view.h b/chromium/ash/system/tray/throbber_view.h deleted file mode 100644 index 0f2663280e2..00000000000 --- a/chromium/ash/system/tray/throbber_view.h +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ -#define ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ - -#include "ui/gfx/size.h" -#include "ui/views/controls/throbber.h" -#include "ui/views/view.h" - -namespace ash { -namespace internal { - -// A SmoothedThrobber with tooltip. -class SystemTrayThrobber : public views::SmoothedThrobber { - public: - SystemTrayThrobber(int frame_delay_ms); - virtual ~SystemTrayThrobber(); - - void SetTooltipText(const base::string16& tooltip_text); - - // Overriden from views::View. - virtual bool GetTooltipText( - const gfx::Point& p, base::string16* tooltip) const OVERRIDE; - - private: - // The current tooltip text. - base::string16 tooltip_text_; - - DISALLOW_COPY_AND_ASSIGN(SystemTrayThrobber); -}; - -// A View containing a SystemTrayThrobber with animation for starting/stopping. -class ThrobberView : public views::View { - public: - ThrobberView(); - virtual ~ThrobberView(); - - void Start(); - void Stop(); - void SetTooltipText(const base::string16& tooltip_text); - - // Overriden from views::View. - virtual gfx::Size GetPreferredSize() OVERRIDE; - virtual void Layout() OVERRIDE; - virtual bool GetTooltipText( - const gfx::Point& p, base::string16* tooltip) const OVERRIDE; - - private: - // Schedules animation for starting/stopping throbber. - void ScheduleAnimation(bool start_throbber); - - SystemTrayThrobber* throbber_; - - // The current tooltip text. - base::string16 tooltip_text_; - - DISALLOW_COPY_AND_ASSIGN(ThrobberView); -}; - -} // namespace internal -} // namespace ash - -#endif // ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ |