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_NETWORK_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | 13 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow |
14 #include "ui/views/controls/button/button.h" // views::ButtonListener | 14 #include "ui/views/controls/button/button.h" // views::ButtonListener |
15 #include "ui/views/window/dialog_delegate.h" | 15 #include "ui/views/window/dialog_delegate.h" |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class ImageSkia; | 18 class ImageSkia; |
19 } | 19 } |
20 | 20 |
21 namespace views { | 21 namespace views { |
22 class ImageView; | 22 class ImageView; |
23 class LabelButton; | |
24 } | 23 } |
25 | 24 |
26 namespace chromeos { | 25 namespace chromeos { |
27 | 26 |
28 class ChildNetworkConfigView; | 27 class ChildNetworkConfigView; |
29 class NetworkPropertyUIData; | 28 class NetworkPropertyUIData; |
30 class NetworkState; | 29 class NetworkState; |
31 | 30 |
32 // A dialog box for showing a password textfield. | 31 // A dialog box for showing a password textfield. |
33 class NetworkConfigView : public views::DialogDelegateView, | 32 class NetworkConfigView : public views::DialogDelegateView, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Resets the underlying view to show advanced options. | 97 // Resets the underlying view to show advanced options. |
99 void ShowAdvancedView(); | 98 void ShowAdvancedView(); |
100 | 99 |
101 // There's always only one child view, which will get deleted when | 100 // There's always only one child view, which will get deleted when |
102 // NetworkConfigView gets cleaned up. | 101 // NetworkConfigView gets cleaned up. |
103 ChildNetworkConfigView* child_config_view_; | 102 ChildNetworkConfigView* child_config_view_; |
104 | 103 |
105 Delegate* delegate_; | 104 Delegate* delegate_; |
106 | 105 |
107 // Button in lower-left corner, may be null or hidden. | 106 // Button in lower-left corner, may be null or hidden. |
108 views::LabelButton* advanced_button_; | 107 views::View* advanced_button_; |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(NetworkConfigView); | 109 DISALLOW_COPY_AND_ASSIGN(NetworkConfigView); |
111 }; | 110 }; |
112 | 111 |
113 // Children of NetworkConfigView must subclass this and implement the virtual | 112 // Children of NetworkConfigView must subclass this and implement the virtual |
114 // methods, which are called by NetworkConfigView. | 113 // methods, which are called by NetworkConfigView. |
115 class ChildNetworkConfigView : public views::View { | 114 class ChildNetworkConfigView : public views::View { |
116 public: | 115 public: |
117 // If |service_path| is NULL, a dialog for configuring a new network will | 116 // If |service_path| is NULL, a dialog for configuring a new network will |
118 // be created. | 117 // be created. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 bool managed_; | 179 bool managed_; |
181 views::ImageView* image_view_; | 180 views::ImageView* image_view_; |
182 const gfx::ImageSkia* image_; | 181 const gfx::ImageSkia* image_; |
183 | 182 |
184 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); | 183 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); |
185 }; | 184 }; |
186 | 185 |
187 } // namespace chromeos | 186 } // namespace chromeos |
188 | 187 |
189 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 188 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
OLD | NEW |