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_WIMAX_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class ToggleImageButton; | 23 class ToggleImageButton; |
24 } | 24 } |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 // A dialog box for showing a password textfield. | 28 // A dialog box for showing a password textfield. |
29 class WimaxConfigView : public ChildNetworkConfigView, | 29 class WimaxConfigView : public ChildNetworkConfigView, |
30 public views::TextfieldController, | 30 public views::TextfieldController, |
31 public views::ButtonListener { | 31 public views::ButtonListener { |
32 public: | 32 public: |
33 // Wimax login dialog for wimax network |wimax|. |wimax| must be a non NULL | 33 // Wimax login dialog for wimax network with |service_path|. |
34 // pointer to a WimaxNetwork in NetworkLibrary. | |
35 WimaxConfigView(NetworkConfigView* parent, const std::string& service_path); | 34 WimaxConfigView(NetworkConfigView* parent, const std::string& service_path); |
36 virtual ~WimaxConfigView(); | 35 virtual ~WimaxConfigView(); |
37 | 36 |
38 // views::TextfieldController: | 37 // views::TextfieldController: |
39 virtual void ContentsChanged(views::Textfield* sender, | 38 virtual void ContentsChanged(views::Textfield* sender, |
40 const string16& new_contents) OVERRIDE; | 39 const string16& new_contents) OVERRIDE; |
41 virtual bool HandleKeyEvent(views::Textfield* sender, | 40 virtual bool HandleKeyEvent(views::Textfield* sender, |
42 const ui::KeyEvent& key_event) OVERRIDE; | 41 const ui::KeyEvent& key_event) OVERRIDE; |
43 | 42 |
44 // views::ButtonListener: | 43 // views::ButtonListener: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 views::Label* error_label_; | 87 views::Label* error_label_; |
89 | 88 |
90 base::WeakPtrFactory<WimaxConfigView> weak_ptr_factory_; | 89 base::WeakPtrFactory<WimaxConfigView> weak_ptr_factory_; |
91 | 90 |
92 DISALLOW_COPY_AND_ASSIGN(WimaxConfigView); | 91 DISALLOW_COPY_AND_ASSIGN(WimaxConfigView); |
93 }; | 92 }; |
94 | 93 |
95 } // namespace chromeos | 94 } // namespace chromeos |
96 | 95 |
97 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_ |
OLD | NEW |