Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_WEBUI_LOGIN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 bool check_for_preload = false; | 49 bool check_for_preload = false; |
| 50 | 50 |
| 51 // Title of the web contents. This will be shown in the task manager. If | 51 // Title of the web contents. This will be shown in the task manager. If |
| 52 // empty, the default webview title will be used. | 52 // empty, the default webview title will be used. |
| 53 base::string16 web_view_title; | 53 base::string16 web_view_title; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // Internal class name. | 56 // Internal class name. |
| 57 static const char kViewClassName[]; | 57 static const char kViewClassName[]; |
| 58 | 58 |
| 59 // Returns true if the given WebContentsDelegate is a WebUILoginView. | |
| 60 static bool IsWebUILoginView(const content::WebContentsDelegate* delegate); | |
|
achuithb
2017/02/16 09:05:38
Let's not do this here.
You can get WebUILoginVie
raymes
2017/02/16 10:36:14
I see - so there is only ever one of these around?
achuithb
2017/02/16 10:38:49
Yup, there's only one
raymes
2017/02/21 01:29:55
Done.
raymes
2017/02/21 01:29:55
Done.
| |
| 61 | |
| 59 explicit WebUILoginView(const WebViewSettings& settings); | 62 explicit WebUILoginView(const WebViewSettings& settings); |
| 60 ~WebUILoginView() override; | 63 ~WebUILoginView() override; |
| 61 | 64 |
| 62 // Initializes the webui login view. | 65 // Initializes the webui login view. |
| 63 virtual void Init(); | 66 virtual void Init(); |
| 64 | 67 |
| 65 // Overridden from views::View: | 68 // Overridden from views::View: |
| 66 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 69 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 67 const char* GetClassName() const override; | 70 const char* GetClassName() const override; |
| 68 void RequestFocus() override; | 71 void RequestFocus() override; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 std::unique_ptr<CycleFocusTraversable> cycle_focus_traversable_; | 203 std::unique_ptr<CycleFocusTraversable> cycle_focus_traversable_; |
| 201 | 204 |
| 202 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 205 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 207 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 } // namespace chromeos | 210 } // namespace chromeos |
| 208 | 211 |
| 209 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ | 212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
| OLD | NEW |