OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_THROBBER_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ |
7 | 7 |
8 #include "ui/gfx/size.h" | 8 #include "ui/gfx/size.h" |
9 #include "ui/views/controls/throbber.h" | 9 #include "ui/views/controls/throbber.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace internal { | |
14 | 13 |
15 // A SmoothedThrobber with tooltip. | 14 // A SmoothedThrobber with tooltip. |
16 class SystemTrayThrobber : public views::SmoothedThrobber { | 15 class SystemTrayThrobber : public views::SmoothedThrobber { |
17 public: | 16 public: |
18 SystemTrayThrobber(int frame_delay_ms); | 17 SystemTrayThrobber(int frame_delay_ms); |
19 virtual ~SystemTrayThrobber(); | 18 virtual ~SystemTrayThrobber(); |
20 | 19 |
21 void SetTooltipText(const base::string16& tooltip_text); | 20 void SetTooltipText(const base::string16& tooltip_text); |
22 | 21 |
23 // Overriden from views::View. | 22 // Overriden from views::View. |
(...skipping 28 matching lines...) Expand all Loading... |
52 void ScheduleAnimation(bool start_throbber); | 51 void ScheduleAnimation(bool start_throbber); |
53 | 52 |
54 SystemTrayThrobber* throbber_; | 53 SystemTrayThrobber* throbber_; |
55 | 54 |
56 // The current tooltip text. | 55 // The current tooltip text. |
57 base::string16 tooltip_text_; | 56 base::string16 tooltip_text_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(ThrobberView); | 58 DISALLOW_COPY_AND_ASSIGN(ThrobberView); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace internal | |
63 } // namespace ash | 61 } // namespace ash |
64 | 62 |
65 #endif // ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ | 63 #endif // ASH_SYSTEM_TRAY_THROBBER_VIEW_H_ |
OLD | NEW |