Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/login/login_html_dialog.h" | 9 #include "chrome/browser/chromeos/login/login_html_dialog.h" |
| 10 #include "chrome/browser/chromeos/status/status_area_button.h" | 10 #include "chrome/browser/chromeos/status/status_area_button.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 | 64 |
| 65 // Returns current WebUI. | 65 // Returns current WebUI. |
| 66 WebUI* GetWebUI(); | 66 WebUI* GetWebUI(); |
| 67 | 67 |
| 68 // Toggles whether status area is enabled. | 68 // Toggles whether status area is enabled. |
| 69 void SetStatusAreaEnabled(bool enable); | 69 void SetStatusAreaEnabled(bool enable); |
| 70 | 70 |
| 71 // Toggles status area visibility. | 71 // Toggles status area visibility. |
| 72 void SetStatusAreaVisible(bool visible); | 72 void SetStatusAreaVisible(bool visible); |
| 73 | 73 |
| 74 DOMView* dom_view() { | |
|
oshima
2011/11/18 17:22:06
document. can you come up with better method name?
flackr
2011/11/18 21:49:09
Done. Not really sure about the name, the view dis
| |
| 75 return webui_login_; | |
| 76 } | |
| 77 | |
| 74 protected: | 78 protected: |
| 75 // Overridden from views::View: | 79 // Overridden from views::View: |
| 76 virtual void Layout() OVERRIDE; | 80 virtual void Layout() OVERRIDE; |
| 77 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 81 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
| 78 | 82 |
| 79 // Overridden from StatusAreaButton::Delegate: | 83 // Overridden from StatusAreaButton::Delegate: |
| 80 virtual bool ShouldExecuteStatusAreaCommand( | 84 virtual bool ShouldExecuteStatusAreaCommand( |
| 81 const views::View* button_view, int command_id) const OVERRIDE; | 85 const views::View* button_view, int command_id) const OVERRIDE; |
| 82 virtual void ExecuteStatusAreaCommand( | 86 virtual void ExecuteStatusAreaCommand( |
| 83 const views::View* button_view, int command_id) OVERRIDE; | 87 const views::View* button_view, int command_id) OVERRIDE; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 | 146 |
| 143 // Caches StatusArea visibility setting before it has been initialized. | 147 // Caches StatusArea visibility setting before it has been initialized. |
| 144 bool status_area_visibility_on_init_; | 148 bool status_area_visibility_on_init_; |
| 145 | 149 |
| 146 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 150 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
| 147 }; | 151 }; |
| 148 | 152 |
| 149 } // namespace chromeos | 153 } // namespace chromeos |
| 150 | 154 |
| 151 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
| OLD | NEW |