OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/throb_animation.h" | 9 #include "app/throb_animation.h" |
10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // NetworkLibrary::Observer implementation. | 30 // NetworkLibrary::Observer implementation. |
31 virtual void NetworkChanged(NetworkLibrary* obj); | 31 virtual void NetworkChanged(NetworkLibrary* obj); |
32 | 32 |
33 // Refreshes button state. Used when language has been changed. | 33 // Refreshes button state. Used when language has been changed. |
34 void Refresh(); | 34 void Refresh(); |
35 | 35 |
36 protected: | 36 protected: |
37 // NetworkMenu implementation: | 37 // NetworkMenu implementation: |
38 virtual bool IsBrowserMode() const { return browser_mode_; } | 38 virtual bool IsBrowserMode() const { return browser_mode_; } |
39 virtual gfx::NativeWindow GetNativeWindow() const { return parent_window_; } | 39 virtual gfx::NativeWindow GetNativeWindow() const { return parent_window_; } |
40 virtual void OpenButtonOptions() const {} | 40 virtual void OpenButtonOptions() {} |
41 virtual bool ShouldOpenButtonOptions() const {return false; } | 41 virtual bool ShouldOpenButtonOptions() const { return false; } |
42 | 42 |
43 private: | 43 private: |
44 bool browser_mode_; | 44 bool browser_mode_; |
45 | 45 |
46 // The throb animation that does the wifi connecting animation. | 46 // The throb animation that does the wifi connecting animation. |
47 ThrobAnimation animation_connecting_; | 47 ThrobAnimation animation_connecting_; |
48 | 48 |
49 // The duration of the icon throbbing in milliseconds. | 49 // The duration of the icon throbbing in milliseconds. |
50 static const int kThrobDuration; | 50 static const int kThrobDuration; |
51 | 51 |
52 gfx::NativeWindow parent_window_; | 52 gfx::NativeWindow parent_window_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(NetworkDropdownButton); | 54 DISALLOW_COPY_AND_ASSIGN(NetworkDropdownButton); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace chromeos | 57 } // namespace chromeos |
58 | 58 |
59 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ |
OLD | NEW |