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

Unified Diff: services/window_manager/view_event_dispatcher.cc

Issue 1531403003: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: rebase Created 4 years, 11 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 | « services/window_manager/view_event_dispatcher.h ('k') | services/window_manager/view_target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/window_manager/view_event_dispatcher.cc
diff --git a/services/window_manager/view_event_dispatcher.cc b/services/window_manager/view_event_dispatcher.cc
deleted file mode 100644
index 5d2bc2996676af193f8a110983295a71a63b9d0b..0000000000000000000000000000000000000000
--- a/services/window_manager/view_event_dispatcher.cc
+++ /dev/null
@@ -1,55 +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 "services/window_manager/view_event_dispatcher.h"
-
-#include "mojo/services/view_manager/cpp/view.h"
-#include "services/window_manager/view_target.h"
-
-namespace window_manager {
-
-ViewEventDispatcher::ViewEventDispatcher()
- : event_dispatch_target_(nullptr),
- old_dispatch_target_(nullptr) {
-}
-
-ViewEventDispatcher::~ViewEventDispatcher() {}
-
-void ViewEventDispatcher::SetRootViewTarget(ViewTarget* root_view_target) {
- root_view_target_ = root_view_target;
-}
-
-ui::EventTarget* ViewEventDispatcher::GetRootTarget() {
- return root_view_target_;
-}
-
-void ViewEventDispatcher::OnEventProcessingStarted(ui::Event* event) {
-}
-
-bool ViewEventDispatcher::CanDispatchToTarget(ui::EventTarget* target) {
- return event_dispatch_target_ == target;
-}
-
-ui::EventDispatchDetails ViewEventDispatcher::PreDispatchEvent(
- ui::EventTarget* target,
- ui::Event* event) {
- // TODO(erg): PreDispatch in aura::WindowEventDispatcher does many, many
- // things. It, and the functions split off for different event types, are
- // most of the file.
- old_dispatch_target_ = event_dispatch_target_;
- event_dispatch_target_ = static_cast<ViewTarget*>(target);
- return ui::EventDispatchDetails();
-}
-
-ui::EventDispatchDetails ViewEventDispatcher::PostDispatchEvent(
- ui::EventTarget* target,
- const ui::Event& event) {
- // TODO(erg): Not at all as long as PreDispatchEvent, but still missing core
- // details.
- event_dispatch_target_ = old_dispatch_target_;
- old_dispatch_target_ = nullptr;
- return ui::EventDispatchDetails();
-}
-
-} // namespace window_manager
« no previous file with comments | « services/window_manager/view_event_dispatcher.h ('k') | services/window_manager/view_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698