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 views::WebView* webui_login_; | 94 views::WebView* webui_login_; |
95 | 95 |
96 private: | 96 private: |
97 // Map type for the accelerator-to-identifier map. | 97 // Map type for the accelerator-to-identifier map. |
98 typedef std::map<ui::Accelerator, std::string> AccelMap; | 98 typedef std::map<ui::Accelerator, std::string> AccelMap; |
99 | 99 |
100 // Overridden from content::WebContentsDelegate. | 100 // Overridden from content::WebContentsDelegate. |
101 virtual bool HandleContextMenu( | 101 virtual bool HandleContextMenu( |
102 const content::ContextMenuParams& params) OVERRIDE; | 102 const content::ContextMenuParams& params) OVERRIDE; |
103 virtual void HandleKeyboardEvent( | 103 virtual void HandleKeyboardEvent( |
| 104 content::WebContents* source, |
104 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 105 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
105 virtual bool IsPopupOrPanel( | 106 virtual bool IsPopupOrPanel( |
106 const content::WebContents* source) const OVERRIDE; | 107 const content::WebContents* source) const OVERRIDE; |
107 virtual bool TakeFocus(bool reverse) OVERRIDE; | 108 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE; |
108 virtual void RequestMediaAccessPermission( | 109 virtual void RequestMediaAccessPermission( |
109 content::WebContents* web_contents, | 110 content::WebContents* web_contents, |
110 const content::MediaStreamRequest* request, | 111 const content::MediaStreamRequest* request, |
111 const content::MediaResponseCallback& callback) OVERRIDE; | 112 const content::MediaResponseCallback& callback) OVERRIDE; |
112 | 113 |
113 // Performs series of actions when login prompt is considered | 114 // Performs series of actions when login prompt is considered |
114 // to be ready and visible. | 115 // to be ready and visible. |
115 // 1. Emits LoginPromptVisible signal if needed | 116 // 1. Emits LoginPromptVisible signal if needed |
116 // 2. Notifies OOBE/sign classes. | 117 // 2. Notifies OOBE/sign classes. |
117 void OnLoginPromptVisible(); | 118 void OnLoginPromptVisible(); |
(...skipping 24 matching lines...) Expand all Loading... |
142 // Should we emit the login-prompt-visible signal when the login page is | 143 // Should we emit the login-prompt-visible signal when the login page is |
143 // displayed? | 144 // displayed? |
144 bool should_emit_login_prompt_visible_; | 145 bool should_emit_login_prompt_visible_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 147 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace chromeos | 150 } // namespace chromeos |
150 | 151 |
151 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |