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_LOGIN_NETWORK_SELECTION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "views/controls/button/menu_button.h" | 10 #include "views/controls/button/menu_button.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Shows network connecting status or network selection otherwise. | 52 // Shows network connecting status or network selection otherwise. |
53 void ShowConnectingStatus(bool connecting, const string16& network_id); | 53 void ShowConnectingStatus(bool connecting, const string16& network_id); |
54 | 54 |
55 // Sets whether continue control is enabled. | 55 // Sets whether continue control is enabled. |
56 void EnableContinue(bool enabled); | 56 void EnableContinue(bool enabled); |
57 | 57 |
58 protected: | 58 protected: |
59 // Overridden from views::View. | 59 // Overridden from views::View. |
60 virtual void ChildPreferredSizeChanged(View* child); | 60 virtual void ChildPreferredSizeChanged(View* child); |
61 virtual void LocaleChanged(); | 61 virtual void OnLocaleChanged(); |
62 | 62 |
63 private: | 63 private: |
64 // Delete and recreate native controls that | 64 // Delete and recreate native controls that |
65 // fail to update preferred size after string update. | 65 // fail to update preferred size after string update. |
66 void RecreateNativeControls(); | 66 void RecreateNativeControls(); |
67 | 67 |
68 // Updates text on label with currently connecting network. | 68 // Updates text on label with currently connecting network. |
69 void UpdateConnectingNetworkLabel(); | 69 void UpdateConnectingNetworkLabel(); |
70 | 70 |
71 // Dialog controls. | 71 // Dialog controls. |
(...skipping 11 matching lines...) Expand all Loading... |
83 | 83 |
84 // Id of the network that is in process of connecting. | 84 // Id of the network that is in process of connecting. |
85 string16 network_id_; | 85 string16 network_id_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); | 87 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace chromeos | 90 } // namespace chromeos |
91 | 91 |
92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
OLD | NEW |