OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OPTIONS_WIFI_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Configuration dialog for a WiFi network. If |service_path| is not empty | 53 // Configuration dialog for a WiFi network. If |service_path| is not empty |
54 // it identifies the network to be configured. Otherwise |show_8021x| | 54 // it identifies the network to be configured. Otherwise |show_8021x| |
55 // determines whether or not to show the 'advanced' 8021x configuration UI. | 55 // determines whether or not to show the 'advanced' 8021x configuration UI. |
56 WifiConfigView(NetworkConfigView* parent, | 56 WifiConfigView(NetworkConfigView* parent, |
57 const std::string& service_path, | 57 const std::string& service_path, |
58 bool show_8021x); | 58 bool show_8021x); |
59 virtual ~WifiConfigView(); | 59 virtual ~WifiConfigView(); |
60 | 60 |
61 // views::TextfieldController | 61 // views::TextfieldController |
62 virtual void ContentsChanged(views::Textfield* sender, | 62 virtual void ContentsChanged(views::Textfield* sender, |
63 const string16& new_contents) OVERRIDE; | 63 const base::string16& new_contents) OVERRIDE; |
64 virtual bool HandleKeyEvent(views::Textfield* sender, | 64 virtual bool HandleKeyEvent(views::Textfield* sender, |
65 const ui::KeyEvent& key_event) OVERRIDE; | 65 const ui::KeyEvent& key_event) OVERRIDE; |
66 | 66 |
67 // views::ButtonListener | 67 // views::ButtonListener |
68 virtual void ButtonPressed(views::Button* sender, | 68 virtual void ButtonPressed(views::Button* sender, |
69 const ui::Event& event) OVERRIDE; | 69 const ui::Event& event) OVERRIDE; |
70 | 70 |
71 // views::ComboboxListener | 71 // views::ComboboxListener |
72 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; | 72 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; |
73 | 73 |
74 // CertLibrary::Observer | 74 // CertLibrary::Observer |
75 virtual void OnCertificatesLoaded(bool initial_load) OVERRIDE; | 75 virtual void OnCertificatesLoaded(bool initial_load) OVERRIDE; |
76 | 76 |
77 // ChildNetworkConfigView | 77 // ChildNetworkConfigView |
78 virtual string16 GetTitle() const OVERRIDE; | 78 virtual base::string16 GetTitle() const OVERRIDE; |
79 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 79 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
80 virtual bool CanLogin() OVERRIDE; | 80 virtual bool CanLogin() OVERRIDE; |
81 virtual bool Login() OVERRIDE; | 81 virtual bool Login() OVERRIDE; |
82 virtual void Cancel() OVERRIDE; | 82 virtual void Cancel() OVERRIDE; |
83 virtual void InitFocus() OVERRIDE; | 83 virtual void InitFocus() OVERRIDE; |
84 | 84 |
85 // NetworkStateHandlerObserver | 85 // NetworkStateHandlerObserver |
86 virtual void NetworkPropertiesUpdated(const NetworkState* network) OVERRIDE; | 86 virtual void NetworkPropertiesUpdated(const NetworkState* network) OVERRIDE; |
87 | 87 |
88 // Parses a WiFi UI |property| from the ONC associated with |network|. |key| | 88 // Parses a WiFi UI |property| from the ONC associated with |network|. |key| |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 views::Label* error_label_; | 199 views::Label* error_label_; |
200 | 200 |
201 base::WeakPtrFactory<WifiConfigView> weak_ptr_factory_; | 201 base::WeakPtrFactory<WifiConfigView> weak_ptr_factory_; |
202 | 202 |
203 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); | 203 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); |
204 }; | 204 }; |
205 | 205 |
206 } // namespace chromeos | 206 } // namespace chromeos |
207 | 207 |
208 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 208 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
OLD | NEW |