| 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 <string> | 8 #include <string> |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/command_updater_delegate.h" | 11 #include "chrome/browser/command_updater_delegate.h" |
| 12 #include "chrome/browser/ssl/security_state_model.h" | |
| 13 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" | 12 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" |
| 14 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 14 #include "components/security_state/security_state_model.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; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 views::Widget* CreateViewsBubble( | 80 views::Widget* CreateViewsBubble( |
| 81 views::BubbleDelegateView* bubble_delegate) override; | 81 views::BubbleDelegateView* bubble_delegate) override; |
| 82 PageActionImageView* CreatePageActionImageView( | 82 PageActionImageView* CreatePageActionImageView( |
| 83 LocationBarView* owner, | 83 LocationBarView* owner, |
| 84 ExtensionAction* action) override; | 84 ExtensionAction* action) override; |
| 85 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate() | 85 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate() |
| 86 override; | 86 override; |
| 87 void ShowWebsiteSettings( | 87 void ShowWebsiteSettings( |
| 88 content::WebContents* web_contents, | 88 content::WebContents* web_contents, |
| 89 const GURL& url, | 89 const GURL& url, |
| 90 const SecurityStateModel::SecurityInfo& security_info) override; | 90 const security_state::SecurityStateModel::SecurityInfo& security_info) |
| 91 override; |
| 91 | 92 |
| 92 // Implements ToolbarModelDelegate: | 93 // Implements ToolbarModelDelegate: |
| 93 content::WebContents* GetActiveWebContents() const override; | 94 content::WebContents* GetActiveWebContents() const override; |
| 94 | 95 |
| 95 // Implements CommandUpdaterDelegate: | 96 // Implements CommandUpdaterDelegate: |
| 96 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override; | 97 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override; |
| 97 | 98 |
| 98 private: | 99 private: |
| 99 friend class SimpleWebViewDialogTest; | 100 friend class SimpleWebViewDialogTest; |
| 100 | 101 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 117 scoped_ptr<views::WebView> web_view_container_; | 118 scoped_ptr<views::WebView> web_view_container_; |
| 118 | 119 |
| 119 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_; | 120 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); | 122 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace chromeos | 125 } // namespace chromeos |
| 125 | 126 |
| 126 #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 |