Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: chrome/browser/chromeos/login/ui/simple_web_view_dialog.h

Issue 2660293002: Show Page Info from Form-Not-Secure 'Learn more' link (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/browser/page_navigator.h" 15 #include "content/public/browser/page_navigator.h"
16 #include "content/public/browser/web_contents_delegate.h" 16 #include "content/public/browser/web_contents_delegate.h"
17 #include "ui/views/controls/button/image_button.h" 17 #include "ui/views/controls/button/image_button.h"
18 #include "ui/views/widget/widget_delegate.h" 18 #include "ui/views/widget/widget_delegate.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 class CommandUpdater; 21 class CommandUpdater;
22 class Profile; 22 class Profile;
23 class ReloadButton; 23 class ReloadButton;
24 class ToolbarModel; 24 class ToolbarModel;
25 25
26 namespace security_state {
27 struct SecurityInfo;
28 } // namespace security_state
29
30 namespace views { 26 namespace views {
31 class WebView; 27 class WebView;
32 class Widget; 28 class Widget;
33 } 29 }
34 30
35 namespace chromeos { 31 namespace chromeos {
36 32
37 class StubBubbleModelDelegate; 33 class StubBubbleModelDelegate;
38 34
39 // View class which shows the light version of the toolbar and the web contents. 35 // View class which shows the light version of the toolbar and the web contents.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 74
79 // Implements LocationBarView::Delegate: 75 // Implements LocationBarView::Delegate:
80 content::WebContents* GetWebContents() override; 76 content::WebContents* GetWebContents() override;
81 ToolbarModel* GetToolbarModel() override; 77 ToolbarModel* GetToolbarModel() override;
82 const ToolbarModel* GetToolbarModel() const override; 78 const ToolbarModel* GetToolbarModel() const override;
83 PageActionImageView* CreatePageActionImageView( 79 PageActionImageView* CreatePageActionImageView(
84 LocationBarView* owner, 80 LocationBarView* owner,
85 ExtensionAction* action) override; 81 ExtensionAction* action) override;
86 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate() 82 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate()
87 override; 83 override;
88 void ShowWebsiteSettings( 84 void ShowWebsiteSettings(content::WebContents* web_contents) override;
89 content::WebContents* web_contents,
90 const GURL& virtual_url,
91 const security_state::SecurityInfo& security_info) override;
92 85
93 // Implements ChromeToolbarModelDelegate: 86 // Implements ChromeToolbarModelDelegate:
94 content::WebContents* GetActiveWebContents() const override; 87 content::WebContents* GetActiveWebContents() const override;
95 88
96 // Implements CommandUpdaterDelegate: 89 // Implements CommandUpdaterDelegate:
97 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override; 90 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override;
98 91
99 private: 92 private:
100 friend class SimpleWebViewDialogTest; 93 friend class SimpleWebViewDialogTest;
101 94
(...skipping 16 matching lines...) Expand all
118 std::unique_ptr<views::WebView> web_view_container_; 111 std::unique_ptr<views::WebView> web_view_container_;
119 112
120 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_; 113 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_;
121 114
122 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); 115 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog);
123 }; 116 };
124 117
125 } // namespace chromeos 118 } // namespace chromeos
126 119
127 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698