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

Unified Diff: ash/common/system/tray/throbber_view.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 10 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/common/system/tray/system_tray_unittest.cc ('k') | ash/common/system/tray/throbber_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/throbber_view.h
diff --git a/ash/common/system/tray/throbber_view.h b/ash/common/system/tray/throbber_view.h
deleted file mode 100644
index 9b3332b4b0b90304d5fdf7ef4e686bb0e0c0e224..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/throbber_view.h
+++ /dev/null
@@ -1,64 +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_COMMON_SYSTEM_TRAY_THROBBER_VIEW_H_
-#define ASH_COMMON_SYSTEM_TRAY_THROBBER_VIEW_H_
-
-#include "base/macros.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/views/controls/throbber.h"
-#include "ui/views/view.h"
-
-namespace ash {
-
-// A SmoothedThrobber with tooltip.
-class SystemTrayThrobber : public views::SmoothedThrobber {
- public:
- SystemTrayThrobber();
- ~SystemTrayThrobber() override;
-
- void SetTooltipText(const base::string16& tooltip_text);
-
- // Overriden from views::View.
- 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();
- ~ThrobberView() override;
-
- void Start();
- void Stop();
- void SetTooltipText(const base::string16& tooltip_text);
-
- // Overriden from views::View.
- gfx::Size GetPreferredSize() const override;
- void Layout() override;
- 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 ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_THROBBER_VIEW_H_
« no previous file with comments | « ash/common/system/tray/system_tray_unittest.cc ('k') | ash/common/system/tray/throbber_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698