| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/browser/chromeos/cros/network_library.h" | 13 #include "chrome/browser/chromeos/cros/network_library.h" |
| 14 #include "chrome/browser/chromeos/cros/network_ui_data.h" | 14 #include "chrome/browser/chromeos/cros/network_ui_data.h" |
| 15 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | 15 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow |
| 16 #include "ui/views/controls/button/button.h" // views::ButtonListener | 16 #include "ui/views/controls/button/button.h" // views::ButtonListener |
| 17 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
| 18 | 18 |
| 19 namespace gfx { |
| 20 class ImageSkia; |
| 21 } // namespace gfx |
| 22 |
| 19 namespace views { | 23 namespace views { |
| 20 class ImageView; | 24 class ImageView; |
| 21 class NativeTextButton; | 25 class NativeTextButton; |
| 22 class View; | 26 class View; |
| 23 } | 27 } // namespace views |
| 24 | 28 |
| 25 namespace chromeos { | 29 namespace chromeos { |
| 26 | 30 |
| 27 class ChildNetworkConfigView; | 31 class ChildNetworkConfigView; |
| 28 | 32 |
| 29 // A dialog box for showing a password textfield. | 33 // A dialog box for showing a password textfield. |
| 30 class NetworkConfigView : public views::DialogDelegateView, | 34 class NetworkConfigView : public views::DialogDelegateView, |
| 31 public views::ButtonListener { | 35 public views::ButtonListener { |
| 32 public: | 36 public: |
| 33 class Delegate { | 37 class Delegate { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 virtual void Layout() OVERRIDE; | 166 virtual void Layout() OVERRIDE; |
| 163 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 167 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
| 164 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 168 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
| 165 | 169 |
| 166 private: | 170 private: |
| 167 // Initializes the view. | 171 // Initializes the view. |
| 168 void Init(); | 172 void Init(); |
| 169 | 173 |
| 170 bool managed_; | 174 bool managed_; |
| 171 views::ImageView* image_view_; | 175 views::ImageView* image_view_; |
| 172 const SkBitmap* gray_image_; | 176 const gfx::ImageSkia* gray_image_; |
| 173 const SkBitmap* color_image_; | 177 const gfx::ImageSkia* color_image_; |
| 174 | 178 |
| 175 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); | 179 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); |
| 176 }; | 180 }; |
| 177 | 181 |
| 178 } // namespace chromeos | 182 } // namespace chromeos |
| 179 | 183 |
| 180 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
| OLD | NEW |