| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/cros/network_library.h" | 9 #include "chrome/browser/chromeos/cros/network_library.h" |
| 10 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | 10 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 views::NativeTextButton* advanced_button_; | 95 views::NativeTextButton* advanced_button_; |
| 96 views::View* advanced_button_container_; | 96 views::View* advanced_button_container_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(NetworkConfigView); | 98 DISALLOW_COPY_AND_ASSIGN(NetworkConfigView); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // Children of NetworkConfigView must subclass this and implement the virtual | 101 // Children of NetworkConfigView must subclass this and implement the virtual |
| 102 // methods, which are called by NetworkConfigView. | 102 // methods, which are called by NetworkConfigView. |
| 103 class ChildNetworkConfigView : public views::View { | 103 class ChildNetworkConfigView : public views::View { |
| 104 public: | 104 public: |
| 105 explicit ChildNetworkConfigView(NetworkConfigView* parent, Network* network) | 105 ChildNetworkConfigView(NetworkConfigView* parent, Network* network) |
| 106 : service_path_(network->service_path()), | 106 : service_path_(network->service_path()), |
| 107 parent_(parent) {} | 107 parent_(parent) {} |
| 108 explicit ChildNetworkConfigView(NetworkConfigView* parent) | 108 explicit ChildNetworkConfigView(NetworkConfigView* parent) |
| 109 : parent_(parent) {} | 109 : parent_(parent) {} |
| 110 virtual ~ChildNetworkConfigView() {} | 110 virtual ~ChildNetworkConfigView() {} |
| 111 | 111 |
| 112 // Called to get title for parent NetworkConfigView dialog box. | 112 // Called to get title for parent NetworkConfigView dialog box. |
| 113 virtual string16 GetTitle() = 0; | 113 virtual string16 GetTitle() = 0; |
| 114 | 114 |
| 115 // Called to determine if "Connect" button should be enabled. | 115 // Called to determine if "Connect" button should be enabled. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 133 std::string service_path_; | 133 std::string service_path_; |
| 134 NetworkConfigView* parent_; | 134 NetworkConfigView* parent_; |
| 135 | 135 |
| 136 private: | 136 private: |
| 137 DISALLOW_COPY_AND_ASSIGN(ChildNetworkConfigView); | 137 DISALLOW_COPY_AND_ASSIGN(ChildNetworkConfigView); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace chromeos | 140 } // namespace chromeos |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 142 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
| OLD | NEW |