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

Unified Diff: components/view_manager/connection_manager.cc

Issue 1149083010: Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/view_manager/connection_manager.cc
diff --git a/components/view_manager/connection_manager.cc b/components/view_manager/connection_manager.cc
index 8555200ae8022c93a15f1359f5ab9cad82eb2f16..3e233c7efb5efba39c8996ce67bc666ea03906b6 100644
--- a/components/view_manager/connection_manager.cc
+++ b/components/view_manager/connection_manager.cc
@@ -115,20 +115,17 @@ ConnectionManager::ConnectionManager(ConnectionManagerDelegate* delegate,
: delegate_(delegate),
window_manager_client_connection_(nullptr),
next_connection_id_(1),
+ event_dispatcher_(this),
display_manager_(display_manager.Pass()),
root_(CreateServerView(RootViewId())),
current_change_(nullptr),
in_destructor_(false),
animation_runner_(base::TimeTicks::Now()),
- event_dispatcher_(this),
- event_dispatcher_binding_(&event_dispatcher_),
focus_controller_(new FocusController(this, root_.get())) {
root_->SetBounds(gfx::Rect(800, 600));
root_->SetVisible(true);
- mojo::NativeViewportEventDispatcherPtr event_dispatcher_ptr;
- event_dispatcher_binding_.Bind(GetProxy(&event_dispatcher_ptr));
- display_manager_->Init(this, event_dispatcher_ptr.Pass());
+ display_manager_->Init(this, &event_dispatcher_);
}
ConnectionManager::~ConnectionManager() {
@@ -312,7 +309,7 @@ bool ConnectionManager::CloneAndAnimate(const ViewId& view_id) {
}
void ConnectionManager::ProcessEvent(mojo::EventPtr event) {
- event_dispatcher_.OnEvent(event.Pass(), EventDispatcher::OnEventCallback());
+ event_dispatcher_.OnEvent(event.Pass(), base::Bind(&base::DoNothing));
}
void ConnectionManager::DispatchInputEventToView(const ServerView* view,

Powered by Google App Engine
This is Rietveld 408576698