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

Unified Diff: mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc

Issue 765753003: Move window_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc
diff --git a/mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc b/mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc
deleted file mode 100644
index 21e5f30ea99409fdc8c97c7391e118558676d51c..0000000000000000000000000000000000000000
--- a/mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/services/window_manager/native_viewport_event_dispatcher_impl.h"
-
-#include "mojo/converters/input_events/input_events_type_converters.h"
-#include "mojo/services/window_manager/view_event_dispatcher.h"
-#include "mojo/services/window_manager/window_manager_app.h"
-
-namespace mojo {
-
-NativeViewportEventDispatcherImpl::NativeViewportEventDispatcherImpl(
- WindowManagerApp* app)
- : app_(app) {
-}
-NativeViewportEventDispatcherImpl::~NativeViewportEventDispatcherImpl() {
-}
-
-ui::EventProcessor* NativeViewportEventDispatcherImpl::GetEventProcessor() {
- return app_->event_dispatcher();
-}
-
-void NativeViewportEventDispatcherImpl::OnEvent(
- mojo::EventPtr event,
- const mojo::Callback<void()>& callback) {
- scoped_ptr<ui::Event> ui_event = event.To<scoped_ptr<ui::Event>>();
-
- if (ui_event)
- SendEventToProcessor(ui_event.get());
-
- callback.Run();
-}
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698