| 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" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 DeleteTreeAndWidget(); | 293 DeleteTreeAndWidget(); |
| 294 } | 294 } |
| 295 | 295 |
| 296 void ViewImpl::OnLostConnection(aura::WindowTreeClient* client) { | 296 void ViewImpl::OnLostConnection(aura::WindowTreeClient* client) { |
| 297 DeleteTreeAndWidget(); | 297 DeleteTreeAndWidget(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void ViewImpl::OnPointerEventObserved(const ui::PointerEvent& event, | 300 void ViewImpl::OnPointerEventObserved(const ui::PointerEvent& event, |
| 301 aura::Window* target) {} | 301 aura::Window* target) {} |
| 302 | 302 |
| 303 aura::client::CaptureClient* ViewImpl::GetCaptureClient() { | |
| 304 // TODO: wire this up. This typically comes from WMState. | |
| 305 return nullptr; | |
| 306 } | |
| 307 | |
| 308 aura::PropertyConverter* ViewImpl::GetPropertyConverter() { | 303 aura::PropertyConverter* ViewImpl::GetPropertyConverter() { |
| 309 // TODO: wire this up. | 304 // TODO: wire this up. |
| 310 return nullptr; | 305 return nullptr; |
| 311 } | 306 } |
| 312 | 307 |
| 313 views::View* ViewImpl::GetContentsView() { | 308 views::View* ViewImpl::GetContentsView() { |
| 314 return web_view_; | 309 return web_view_; |
| 315 } | 310 } |
| 316 | 311 |
| 317 views::Widget* ViewImpl::GetWidget() { | 312 views::Widget* ViewImpl::GetWidget() { |
| 318 return web_view_->GetWidget(); | 313 return web_view_->GetWidget(); |
| 319 } | 314 } |
| 320 | 315 |
| 321 const views::Widget* ViewImpl::GetWidget() const { | 316 const views::Widget* ViewImpl::GetWidget() const { |
| 322 return web_view_->GetWidget(); | 317 return web_view_->GetWidget(); |
| 323 } | 318 } |
| 324 | 319 |
| 325 } // navigation | 320 } // navigation |
| OLD | NEW |