| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // NetworkLibrary::NetworkObserver implementation. | 71 // NetworkLibrary::NetworkObserver implementation. |
| 72 virtual void OnNetworkChanged(NetworkLibrary* cros, const Network* network); | 72 virtual void OnNetworkChanged(NetworkLibrary* cros, const Network* network); |
| 73 // NetworkLibrary::CellularDataPlanObserver implementation. | 73 // NetworkLibrary::CellularDataPlanObserver implementation. |
| 74 virtual void OnCellularDataPlanChanged(NetworkLibrary* cros); | 74 virtual void OnCellularDataPlanChanged(NetworkLibrary* cros); |
| 75 | 75 |
| 76 // NetworkMenu implementation: | 76 // NetworkMenu implementation: |
| 77 virtual bool IsBrowserMode() const; | 77 virtual bool IsBrowserMode() const; |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 // NetworkMenu implementation: | 80 // NetworkMenu implementation: |
| 81 virtual views::MenuButton* GetMenuButton(); |
| 81 virtual gfx::NativeWindow GetNativeWindow() const; | 82 virtual gfx::NativeWindow GetNativeWindow() const; |
| 82 virtual void OpenButtonOptions(); | 83 virtual void OpenButtonOptions(); |
| 83 virtual bool ShouldOpenButtonOptions() const; | 84 virtual bool ShouldOpenButtonOptions() const; |
| 84 | 85 |
| 85 // views::View | 86 // views::View |
| 86 virtual void OnLocaleChanged() OVERRIDE; | 87 virtual void OnLocaleChanged() OVERRIDE; |
| 87 | 88 |
| 88 // MessageBubbleDelegate implementation: | 89 // MessageBubbleDelegate implementation: |
| 89 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); | 90 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); |
| 90 virtual bool CloseOnEscape(); | 91 virtual bool CloseOnEscape(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 153 |
| 153 // Factory for delaying showing promo notification. | 154 // Factory for delaying showing promo notification. |
| 154 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; | 155 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 157 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace chromeos | 160 } // namespace chromeos |
| 160 | 161 |
| 161 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 162 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| OLD | NEW |