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

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

Issue 685013002: Refactors event dispatching of NativeViewport into its own interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 6 years, 2 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
« no previous file with comments | « mojo/services/window_manager/window_manager_internal_service_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_internal_service_impl.cc
diff --git a/mojo/services/window_manager/window_manager_internal_service_impl.cc b/mojo/services/window_manager/window_manager_internal_service_impl.cc
deleted file mode 100644
index 2e321b8d8e77b39259660d7ac2d10ec1f66b3d69..0000000000000000000000000000000000000000
--- a/mojo/services/window_manager/window_manager_internal_service_impl.cc
+++ /dev/null
@@ -1,32 +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/window_manager_internal_service_impl.h"
-
-#include "mojo/aura/window_tree_host_mojo.h"
-#include "mojo/converters/input_events/input_events_type_converters.h"
-#include "mojo/services/window_manager/window_manager_app.h"
-#include "mojo/services/window_manager/window_manager_delegate.h"
-
-namespace mojo {
-
-WindowManagerInternalServiceImpl::WindowManagerInternalServiceImpl(
- WindowManagerApp* app)
- : app_(app) {
-}
-
-WindowManagerInternalServiceImpl::~WindowManagerInternalServiceImpl() {
-}
-
-void WindowManagerInternalServiceImpl::OnViewInputEvent(mojo::EventPtr event) {
- scoped_ptr<ui::Event> ui_event = event.To<scoped_ptr<ui::Event>>();
- if (ui_event)
- app_->host()->SendEventToProcessor(ui_event.get());
-}
-
-void WindowManagerInternalServiceImpl::OnConnectionEstablished() {
- app_->set_window_manager_client(client());
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/window_manager/window_manager_internal_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698