| 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 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" | 5 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
| 13 #include "chrome/browser/chromeos/login/helper.h" | 13 #include "chrome/browser/chromeos/login/helper.h" |
| 14 #include "chrome/browser/chromeos/login/ui/captive_portal_window_proxy.h" | 14 #include "chrome/browser/chromeos/login/ui/captive_portal_window_proxy.h" |
| 15 #include "chrome/browser/command_updater.h" | 15 #include "chrome/browser/command_updater.h" |
| 16 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 16 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ssl/chrome_security_state_model_client.h" | 18 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| 19 #include "chrome/browser/ssl/security_state_model.h" | |
| 20 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 19 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 21 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" | 21 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" |
| 23 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" | 22 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
| 24 #include "chrome/browser/ui/view_ids.h" | 23 #include "chrome/browser/ui/view_ids.h" |
| 25 #include "chrome/browser/ui/views/toolbar/reload_button.h" | 24 #include "chrome/browser/ui/views/toolbar/reload_button.h" |
| 26 #include "chrome/grit/generated_resources.h" | 25 #include "chrome/grit/generated_resources.h" |
| 27 #include "chrome/grit/theme_resources.h" | 26 #include "chrome/grit/theme_resources.h" |
| 28 #include "components/password_manager/core/browser/password_manager.h" | 27 #include "components/password_manager/core/browser/password_manager.h" |
| 28 #include "components/security_state/security_state_model.h" |
| 29 #include "content/public/browser/navigation_controller.h" | 29 #include "content/public/browser/navigation_controller.h" |
| 30 #include "content/public/browser/navigation_entry.h" | 30 #include "content/public/browser/navigation_entry.h" |
| 31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
| 32 #include "ipc/ipc_message.h" | 32 #include "ipc/ipc_message.h" |
| 33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
| 34 #include "ui/base/theme_provider.h" | 34 #include "ui/base/theme_provider.h" |
| 35 #include "ui/views/background.h" | 35 #include "ui/views/background.h" |
| 36 #include "ui/views/controls/webview/webview.h" | 36 #include "ui/views/controls/webview/webview.h" |
| 37 #include "ui/views/layout/grid_layout.h" | 37 #include "ui/views/layout/grid_layout.h" |
| 38 #include "ui/views/layout/layout_constants.h" | 38 #include "ui/views/layout/layout_constants.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 299 } |
| 300 | 300 |
| 301 ContentSettingBubbleModelDelegate* | 301 ContentSettingBubbleModelDelegate* |
| 302 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { | 302 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { |
| 303 return bubble_model_delegate_.get(); | 303 return bubble_model_delegate_.get(); |
| 304 } | 304 } |
| 305 | 305 |
| 306 void SimpleWebViewDialog::ShowWebsiteSettings( | 306 void SimpleWebViewDialog::ShowWebsiteSettings( |
| 307 content::WebContents* web_contents, | 307 content::WebContents* web_contents, |
| 308 const GURL& url, | 308 const GURL& url, |
| 309 const SecurityStateModel::SecurityInfo& security_info) { | 309 const security_state::SecurityStateModel::SecurityInfo& security_info) { |
| 310 NOTIMPLEMENTED(); | 310 NOTIMPLEMENTED(); |
| 311 // TODO (markusheintz@): implement this | 311 // TODO (markusheintz@): implement this |
| 312 } | 312 } |
| 313 | 313 |
| 314 PageActionImageView* SimpleWebViewDialog::CreatePageActionImageView( | 314 PageActionImageView* SimpleWebViewDialog::CreatePageActionImageView( |
| 315 LocationBarView* owner, | 315 LocationBarView* owner, |
| 316 ExtensionAction* action) { | 316 ExtensionAction* action) { |
| 317 // Notreached because SimpleWebViewDialog uses a popup-mode LocationBarView, | 317 // Notreached because SimpleWebViewDialog uses a popup-mode LocationBarView, |
| 318 // and it doesn't create PageActionImageViews. | 318 // and it doesn't create PageActionImageViews. |
| 319 NOTREACHED(); | 319 NOTREACHED(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 390 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 391 if (reload_) { | 391 if (reload_) { |
| 392 reload_->ChangeMode( | 392 reload_->ChangeMode( |
| 393 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 393 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 394 force); | 394 force); |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace chromeos | 398 } // namespace chromeos |
| OLD | NEW |