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 "chrome/browser/chromeos/cros/network_library.h" | 9 #include "chrome/browser/chromeos/cros/network_library.h" |
10 #include "chrome/browser/chromeos/status/network_menu.h" | 10 #include "chrome/browser/chromeos/status/network_menu.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // NetworkLibrary::NetworkManagerObserver implementation. | 31 // NetworkLibrary::NetworkManagerObserver implementation. |
32 virtual void OnNetworkManagerChanged(NetworkLibrary* obj); | 32 virtual void OnNetworkManagerChanged(NetworkLibrary* obj); |
33 | 33 |
34 // Refreshes button state. Used when language has been changed. | 34 // Refreshes button state. Used when language has been changed. |
35 void Refresh(); | 35 void Refresh(); |
36 | 36 |
37 protected: | 37 protected: |
38 // NetworkMenu implementation: | 38 // NetworkMenu implementation: |
39 virtual bool IsBrowserMode() const; | 39 virtual bool IsBrowserMode() const; |
| 40 virtual views::MenuButton* GetMenuButton(); |
40 virtual gfx::NativeWindow GetNativeWindow() const; | 41 virtual gfx::NativeWindow GetNativeWindow() const; |
41 virtual void OpenButtonOptions() {} | 42 virtual void OpenButtonOptions() {} |
42 virtual bool ShouldOpenButtonOptions() const; | 43 virtual bool ShouldOpenButtonOptions() const; |
43 | 44 |
44 private: | 45 private: |
45 bool browser_mode_; | 46 bool browser_mode_; |
46 | 47 |
47 // The throb animation that does the wifi connecting animation. | 48 // The throb animation that does the wifi connecting animation. |
48 ui::ThrobAnimation animation_connecting_; | 49 ui::ThrobAnimation animation_connecting_; |
49 | 50 |
50 // The duration of the icon throbbing in milliseconds. | 51 // The duration of the icon throbbing in milliseconds. |
51 static const int kThrobDuration; | 52 static const int kThrobDuration; |
52 | 53 |
53 gfx::NativeWindow parent_window_; | 54 gfx::NativeWindow parent_window_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(NetworkDropdownButton); | 56 DISALLOW_COPY_AND_ASSIGN(NetworkDropdownButton); |
56 }; | 57 }; |
57 | 58 |
58 } // namespace chromeos | 59 } // namespace chromeos |
59 | 60 |
60 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ | 61 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_DROPDOWN_BUTTON_H_ |
OLD | NEW |