OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LOGIN_NETWORK_SELECTION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Returns whether continue button is enabled. | 65 // Returns whether continue button is enabled. |
66 bool IsContinueEnabled() const; | 66 bool IsContinueEnabled() const; |
67 | 67 |
68 // views::LinkController implementation. | 68 // views::LinkController implementation. |
69 virtual void LinkActivated(views::Link* source, int); | 69 virtual void LinkActivated(views::Link* source, int); |
70 | 70 |
71 protected: | 71 protected: |
72 // Overridden from views::View. | 72 // Overridden from views::View. |
73 virtual void OnLocaleChanged(); | 73 virtual void OnLocaleChanged(); |
| 74 virtual void ViewHierarchyChanged(bool is_add, |
| 75 views::View* parent, |
| 76 views::View* child); |
74 | 77 |
75 // LoginHtmlDialog::Delegate implementation: | 78 // LoginHtmlDialog::Delegate implementation: |
76 virtual void OnDialogClosed() {} | 79 virtual void OnDialogClosed() {} |
77 | 80 |
78 private: | 81 private: |
79 // Add screen controls to the contents layout specified. | 82 // Add screen controls to the contents layout specified. |
80 // Based on state (connecting to the network or not) | 83 // Based on state (connecting to the network or not) |
81 // different controls are added. | 84 // different controls are added. |
82 void AddControlsToLayout(const gfx::Size& size, | 85 void AddControlsToLayout(const gfx::Size& size, |
83 views::GridLayout* contents_layout); | 86 views::GridLayout* contents_layout); |
(...skipping 30 matching lines...) Expand all Loading... |
114 | 117 |
115 // Dialog used for to launch proxy settings. | 118 // Dialog used for to launch proxy settings. |
116 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; | 119 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; |
117 | 120 |
118 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); | 121 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace chromeos | 124 } // namespace chromeos |
122 | 125 |
123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ | 126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
OLD | NEW |