OLD | NEW |
1 // Copyright (c) 2010 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_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" |
11 #include "chrome/browser/chromeos/login/login_html_dialog.h" | 11 #include "chrome/browser/chromeos/login/login_html_dialog.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return proxy_settings_dialog_.get() && proxy_settings_dialog_->is_open(); | 73 return proxy_settings_dialog_.get() && proxy_settings_dialog_->is_open(); |
74 } | 74 } |
75 | 75 |
76 protected: | 76 protected: |
77 // Overridden from views::View. | 77 // Overridden from views::View. |
78 virtual bool OnKeyPressed(const views::KeyEvent& e); | 78 virtual bool OnKeyPressed(const views::KeyEvent& e); |
79 virtual void OnLocaleChanged(); | 79 virtual void OnLocaleChanged(); |
80 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { | 80 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { |
81 return true; | 81 return true; |
82 } | 82 } |
83 virtual void ViewHierarchyChanged(bool is_add, | |
84 views::View* parent, | |
85 views::View* child); | |
86 | 83 |
87 // LoginHtmlDialog::Delegate implementation: | 84 // LoginHtmlDialog::Delegate implementation: |
88 virtual void OnDialogClosed() {} | 85 virtual void OnDialogClosed() {} |
89 | 86 |
90 private: | 87 private: |
91 // Add screen controls to the contents layout specified. | 88 // Add screen controls to the contents layout specified. |
92 // Based on state (connecting to the network or not) | 89 // Based on state (connecting to the network or not) |
93 // different controls are added. | 90 // different controls are added. |
94 void AddControlsToLayout(views::GridLayout* contents_layout); | 91 void AddControlsToLayout(views::GridLayout* contents_layout); |
95 | 92 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 128 |
132 // Dialog used for to launch proxy settings. | 129 // Dialog used for to launch proxy settings. |
133 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; | 130 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; |
134 | 131 |
135 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); | 132 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); |
136 }; | 133 }; |
137 | 134 |
138 } // namespace chromeos | 135 } // namespace chromeos |
139 | 136 |
140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ | 137 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ |
OLD | NEW |