| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/navigation/view_impl.h" | 5 #include "services/navigation/view_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 #include "content/public/browser/interstitial_page.h" | 10 #include "content/public/browser/interstitial_page.h" |
| 11 #include "content/public/browser/interstitial_page_delegate.h" | 11 #include "content/public/browser/interstitial_page_delegate.h" |
| 12 #include "content/public/browser/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "content/public/browser/navigation_details.h" | 13 #include "content/public/browser/navigation_details.h" |
| 14 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 15 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
| 16 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
| 17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "services/shell/public/cpp/connector.h" | 19 #include "services/service_manager/public/cpp/connector.h" |
| 20 #include "services/ui/public/cpp/window_tree_client.h" | 20 #include "services/ui/public/cpp/window_tree_client.h" |
| 21 #include "ui/views/controls/webview/webview.h" | 21 #include "ui/views/controls/webview/webview.h" |
| 22 #include "ui/views/mus/native_widget_mus.h" | 22 #include "ui/views/mus/native_widget_mus.h" |
| 23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 namespace navigation { | 26 namespace navigation { |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 class InterstitialPageDelegate : public content::InterstitialPageDelegate { | 29 class InterstitialPageDelegate : public content::InterstitialPageDelegate { |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 views::Widget* ViewImpl::GetWidget() { | 289 views::Widget* ViewImpl::GetWidget() { |
| 290 return web_view_->GetWidget(); | 290 return web_view_->GetWidget(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 const views::Widget* ViewImpl::GetWidget() const { | 293 const views::Widget* ViewImpl::GetWidget() const { |
| 294 return web_view_->GetWidget(); | 294 return web_view_->GetWidget(); |
| 295 } | 295 } |
| 296 | 296 |
| 297 } // navigation | 297 } // navigation |
| OLD | NEW |