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_SIMPLE_WEB_VIEW_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/command_updater_delegate.h" | 12 #include "chrome/browser/command_updater_delegate.h" |
13 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" | 13 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" |
14 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 14 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
15 #include "components/security_state/security_state_model.h" | |
16 #include "content/public/browser/page_navigator.h" | 15 #include "content/public/browser/page_navigator.h" |
17 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
18 #include "ui/views/controls/button/image_button.h" | 17 #include "ui/views/controls/button/image_button.h" |
19 #include "ui/views/widget/widget_delegate.h" | 18 #include "ui/views/widget/widget_delegate.h" |
20 #include "url/gurl.h" | 19 #include "url/gurl.h" |
21 | 20 |
22 class CommandUpdater; | 21 class CommandUpdater; |
23 class Profile; | 22 class Profile; |
24 class ReloadButton; | 23 class ReloadButton; |
25 class ToolbarModel; | 24 class ToolbarModel; |
26 | 25 |
| 26 namespace security_state { |
| 27 struct SecurityInfo; |
| 28 } // namespace security_state |
| 29 |
27 namespace views { | 30 namespace views { |
28 class WebView; | 31 class WebView; |
29 class Widget; | 32 class Widget; |
30 } | 33 } |
31 | 34 |
32 namespace chromeos { | 35 namespace chromeos { |
33 | 36 |
34 class StubBubbleModelDelegate; | 37 class StubBubbleModelDelegate; |
35 | 38 |
36 // View class which shows the light version of the toolbar and the web contents. | 39 // View class which shows the light version of the toolbar and the web contents. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ToolbarModel* GetToolbarModel() override; | 81 ToolbarModel* GetToolbarModel() override; |
79 const ToolbarModel* GetToolbarModel() const override; | 82 const ToolbarModel* GetToolbarModel() const override; |
80 PageActionImageView* CreatePageActionImageView( | 83 PageActionImageView* CreatePageActionImageView( |
81 LocationBarView* owner, | 84 LocationBarView* owner, |
82 ExtensionAction* action) override; | 85 ExtensionAction* action) override; |
83 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate() | 86 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate() |
84 override; | 87 override; |
85 void ShowWebsiteSettings( | 88 void ShowWebsiteSettings( |
86 content::WebContents* web_contents, | 89 content::WebContents* web_contents, |
87 const GURL& virtual_url, | 90 const GURL& virtual_url, |
88 const security_state::SecurityStateModel::SecurityInfo& security_info) | 91 const security_state::SecurityInfo& security_info) override; |
89 override; | |
90 | 92 |
91 // Implements ChromeToolbarModelDelegate: | 93 // Implements ChromeToolbarModelDelegate: |
92 content::WebContents* GetActiveWebContents() const override; | 94 content::WebContents* GetActiveWebContents() const override; |
93 | 95 |
94 // Implements CommandUpdaterDelegate: | 96 // Implements CommandUpdaterDelegate: |
95 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override; | 97 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override; |
96 | 98 |
97 private: | 99 private: |
98 friend class SimpleWebViewDialogTest; | 100 friend class SimpleWebViewDialogTest; |
99 | 101 |
(...skipping 16 matching lines...) Expand all Loading... |
116 std::unique_ptr<views::WebView> web_view_container_; | 118 std::unique_ptr<views::WebView> web_view_container_; |
117 | 119 |
118 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_; | 120 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); | 122 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); |
121 }; | 123 }; |
122 | 124 |
123 } // namespace chromeos | 125 } // namespace chromeos |
124 | 126 |
125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ | 127 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
OLD | NEW |