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

Side by Side Diff: services/navigation/view_impl.cc

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Event conversion; comments; rebase Created 4 years, 4 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
OLDNEW
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/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
9 #include "content/public/browser/interstitial_page.h" 9 #include "content/public/browser/interstitial_page.h"
10 #include "content/public/browser/interstitial_page_delegate.h" 10 #include "content/public/browser/interstitial_page_delegate.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); 273 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
274 params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; 274 params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
275 params.delegate = this; 275 params.delegate = this;
276 params.native_widget = new views::NativeWidgetMus( 276 params.native_widget = new views::NativeWidgetMus(
277 widget_.get(), root, ui::mojom::SurfaceType::DEFAULT); 277 widget_.get(), root, ui::mojom::SurfaceType::DEFAULT);
278 widget_->Init(params); 278 widget_->Init(params);
279 widget_->Show(); 279 widget_->Show();
280 } 280 }
281 281
282 void ViewImpl::OnDidDestroyClient(ui::WindowTreeClient* client) {} 282 void ViewImpl::OnDidDestroyClient(ui::WindowTreeClient* client) {}
283 void ViewImpl::OnEventObserved(const ui::Event& event, ui::Window* target) {} 283 void ViewImpl::OnPointerWatcherEvent(const ui::PointerEvent& event,
284 ui::Window* target) {}
284 285
285 views::View* ViewImpl::GetContentsView() { 286 views::View* ViewImpl::GetContentsView() {
286 return web_view_; 287 return web_view_;
287 } 288 }
288 289
289 views::Widget* ViewImpl::GetWidget() { 290 views::Widget* ViewImpl::GetWidget() {
290 return web_view_->GetWidget(); 291 return web_view_->GetWidget();
291 } 292 }
292 293
293 const views::Widget* ViewImpl::GetWidget() const { 294 const views::Widget* ViewImpl::GetWidget() const {
294 return web_view_->GetWidget(); 295 return web_view_->GetWidget();
295 } 296 }
296 297
297 } // navigation 298 } // navigation
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698