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 <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "chrome/browser/chromeos/login/login_html_dialog.h" | 12 #include "chrome/browser/chromeos/login/login_html_dialog.h" |
13 #include "chrome/browser/chromeos/status/status_area_button.h" | 13 #include "chrome/browser/chromeos/status/status_area_button.h" |
14 #include "chrome/browser/tab_first_render_watcher.h" | 14 #include "chrome/browser/tab_first_render_watcher.h" |
15 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" | 15 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" |
16 #include "content/browser/tab_contents/tab_contents_delegate.h" | 16 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 17 #include "ui/views/widget/widget.h" |
17 #include "ui/views/widget/widget_delegate.h" | 18 #include "ui/views/widget/widget_delegate.h" |
18 | 19 |
19 class DOMView; | 20 class DOMView; |
20 class GURL; | 21 class GURL; |
21 class StatusAreaView; | 22 class StatusAreaView; |
22 class WebUI; | 23 class WebUI; |
23 | 24 |
24 namespace views { | 25 namespace views { |
25 class View; | 26 class View; |
26 class Widget; | 27 class Widget; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE; | 88 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE; |
88 | 89 |
89 // TabFirstRenderWatcher::Delegate implementation. | 90 // TabFirstRenderWatcher::Delegate implementation. |
90 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; | 91 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; |
91 virtual void OnTabMainFrameLoaded() OVERRIDE; | 92 virtual void OnTabMainFrameLoaded() OVERRIDE; |
92 virtual void OnTabMainFrameFirstRender() OVERRIDE; | 93 virtual void OnTabMainFrameFirstRender() OVERRIDE; |
93 | 94 |
94 // Creates and adds the status area (separate window). | 95 // Creates and adds the status area (separate window). |
95 virtual void InitStatusArea(); | 96 virtual void InitStatusArea(); |
96 | 97 |
| 98 // Returns the type to use for the status area widget. |
| 99 virtual views::Widget::InitParams::Type GetStatusAreaWidgetType(); |
| 100 |
97 StatusAreaView* status_area_; | 101 StatusAreaView* status_area_; |
98 | 102 |
99 // DOMView for rendering a webpage as a webui login. | 103 // DOMView for rendering a webpage as a webui login. |
100 DOMView* webui_login_; | 104 DOMView* webui_login_; |
101 | 105 |
102 private: | 106 private: |
103 // Map type for the accelerator-to-identifier map. | 107 // Map type for the accelerator-to-identifier map. |
104 typedef std::map<ui::Accelerator, std::string> AccelMap; | 108 typedef std::map<ui::Accelerator, std::string> AccelMap; |
105 | 109 |
106 // Overridden from TabContentsDelegate. | 110 // Overridden from TabContentsDelegate. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 143 |
140 // Caches StatusArea visibility setting before it has been initialized. | 144 // Caches StatusArea visibility setting before it has been initialized. |
141 bool status_area_visibility_on_init_; | 145 bool status_area_visibility_on_init_; |
142 | 146 |
143 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 147 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
144 }; | 148 }; |
145 | 149 |
146 } // namespace chromeos | 150 } // namespace chromeos |
147 | 151 |
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |