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" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 explicit ControlledSettingIndicatorView(const NetworkPropertyUIData& ui_data); | 157 explicit ControlledSettingIndicatorView(const NetworkPropertyUIData& ui_data); |
158 virtual ~ControlledSettingIndicatorView(); | 158 virtual ~ControlledSettingIndicatorView(); |
159 | 159 |
160 // Updates the view based on |ui_data|. | 160 // Updates the view based on |ui_data|. |
161 void Update(const NetworkPropertyUIData& ui_data); | 161 void Update(const NetworkPropertyUIData& ui_data); |
162 | 162 |
163 protected: | 163 protected: |
164 // views::View: | 164 // views::View: |
165 virtual gfx::Size GetPreferredSize() OVERRIDE; | 165 virtual gfx::Size GetPreferredSize() OVERRIDE; |
166 virtual void Layout() OVERRIDE; | 166 virtual void Layout() OVERRIDE; |
167 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 167 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
168 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 168 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
169 | 169 |
170 private: | 170 private: |
171 // Initializes the view. | 171 // Initializes the view. |
172 void Init(); | 172 void Init(); |
173 | 173 |
174 bool managed_; | 174 bool managed_; |
175 views::ImageView* image_view_; | 175 views::ImageView* image_view_; |
176 const gfx::ImageSkia* gray_image_; | 176 const gfx::ImageSkia* gray_image_; |
177 const gfx::ImageSkia* color_image_; | 177 const gfx::ImageSkia* color_image_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); | 179 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace chromeos | 182 } // namespace chromeos |
183 | 183 |
184 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
OLD | NEW |