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_LOGIN_WEBUI_LOGIN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void OnPostponedShow(); | 94 void OnPostponedShow(); |
95 | 95 |
96 // Toggles status area visibility. | 96 // Toggles status area visibility. |
97 void SetStatusAreaVisible(bool visible); | 97 void SetStatusAreaVisible(bool visible); |
98 | 98 |
99 // Sets whether UI should be enabled. | 99 // Sets whether UI should be enabled. |
100 void SetUIEnabled(bool enabled); | 100 void SetUIEnabled(bool enabled); |
101 | 101 |
102 void set_is_hidden(bool hidden) { is_hidden_ = hidden; } | 102 void set_is_hidden(bool hidden) { is_hidden_ = hidden; } |
103 | 103 |
104 protected: | 104 // Let suppress emission of this signal. |
105 // Let non-login derived classes suppress emission of this signal. | |
106 void set_should_emit_login_prompt_visible(bool emit) { | 105 void set_should_emit_login_prompt_visible(bool emit) { |
107 should_emit_login_prompt_visible_ = emit; | 106 should_emit_login_prompt_visible_ = emit; |
108 } | 107 } |
109 | 108 |
| 109 protected: |
110 // Overridden from views::View: | 110 // Overridden from views::View: |
111 virtual void Layout() OVERRIDE; | 111 virtual void Layout() OVERRIDE; |
112 virtual void OnLocaleChanged() OVERRIDE; | 112 virtual void OnLocaleChanged() OVERRIDE; |
113 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 113 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
114 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 114 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
115 | 115 |
116 // Overridden from content::NotificationObserver. | 116 // Overridden from content::NotificationObserver. |
117 virtual void Observe(int type, | 117 virtual void Observe(int type, |
118 const content::NotificationSource& source, | 118 const content::NotificationSource& source, |
119 const content::NotificationDetails& details) OVERRIDE; | 119 const content::NotificationDetails& details) OVERRIDE; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 179 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
180 | 180 |
181 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; | 181 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
182 | 182 |
183 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 183 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
184 }; | 184 }; |
185 | 185 |
186 } // namespace chromeos | 186 } // namespace chromeos |
187 | 187 |
188 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 188 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |