| 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_host.h" | 10 #include "chrome/browser/chromeos/status/status_area_host.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // DOMView for rendering a webpage as a webui login. | 104 // DOMView for rendering a webpage as a webui login. |
| 105 DOMView* webui_login_; | 105 DOMView* webui_login_; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 // Map type for the accelerator-to-identifier map. | 108 // Map type for the accelerator-to-identifier map. |
| 109 typedef std::map<views::Accelerator, std::string> AccelMap; | 109 typedef std::map<views::Accelerator, std::string> AccelMap; |
| 110 | 110 |
| 111 // Overridden from TabContentsDelegate. | 111 // Overridden from TabContentsDelegate. |
| 112 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 112 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 113 virtual void HandleKeyboardEvent( |
| 114 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 115 virtual bool IsPopupOrPanel(const TabContents* source) const OVERRIDE; |
| 113 virtual bool TakeFocus(bool reverse) OVERRIDE; | 116 virtual bool TakeFocus(bool reverse) OVERRIDE; |
| 114 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | |
| 115 | 117 |
| 116 // Window that contains status area. | 118 // Window that contains status area. |
| 117 // TODO(nkostylev): Temporary solution till we have | 119 // TODO(nkostylev): Temporary solution till we have |
| 118 // RenderWidgetHostViewViews working. | 120 // RenderWidgetHostViewViews working. |
| 119 views::Widget* status_window_; | 121 views::Widget* status_window_; |
| 120 | 122 |
| 121 // Converts keyboard events on the TabContents to accelerators. | 123 // Converts keyboard events on the TabContents to accelerators. |
| 122 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 124 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 123 | 125 |
| 124 // Maps installed accelerators to OOBE webui accelerator identifiers. | 126 // Maps installed accelerators to OOBE webui accelerator identifiers. |
| 125 AccelMap accel_map_; | 127 AccelMap accel_map_; |
| 126 | 128 |
| 127 // Proxy settings dialog that can be invoked from network menu. | 129 // Proxy settings dialog that can be invoked from network menu. |
| 128 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; | 130 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; |
| 129 | 131 |
| 130 // Watches webui_login_'s TabContents rendering. | 132 // Watches webui_login_'s TabContents rendering. |
| 131 scoped_ptr<TabFirstRenderWatcher> tab_watcher_; | 133 scoped_ptr<TabFirstRenderWatcher> tab_watcher_; |
| 132 | 134 |
| 133 // Whether the host window is frozen. | 135 // Whether the host window is frozen. |
| 134 bool host_window_frozen_; | 136 bool host_window_frozen_; |
| 135 | 137 |
| 136 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 138 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 } // namespace chromeos | 141 } // namespace chromeos |
| 140 | 142 |
| 141 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
| OLD | NEW |