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

Unified Diff: ui/aura_shell/modality_event_filter.cc

Issue 9026017: Move some more files into ash... this time seed the window manager dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « ui/aura_shell/modality_event_filter.h ('k') | ui/aura_shell/modality_event_filter_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/modality_event_filter.cc
===================================================================
--- ui/aura_shell/modality_event_filter.cc (revision 115643)
+++ ui/aura_shell/modality_event_filter.cc (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2011 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 "ui/aura_shell/modality_event_filter.h"
-
-#include "ui/aura/event.h"
-#include "ui/aura_shell/modality_event_filter_delegate.h"
-
-namespace aura_shell {
-namespace internal {
-
-ModalityEventFilter::ModalityEventFilter(aura::Window* container,
- ModalityEventFilterDelegate* delegate)
- : EventFilter(container),
- delegate_(delegate) {
-}
-
-ModalityEventFilter::~ModalityEventFilter() {
-}
-
-bool ModalityEventFilter::PreHandleKeyEvent(aura::Window* target,
- aura::KeyEvent* event) {
- return !delegate_->CanWindowReceiveEvents(target);
-}
-
-bool ModalityEventFilter::PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) {
- return !delegate_->CanWindowReceiveEvents(target);
-}
-
-ui::TouchStatus ModalityEventFilter::PreHandleTouchEvent(
- aura::Window* target,
- aura::TouchEvent* event) {
- // TODO(sadrul): !
- return ui::TOUCH_STATUS_UNKNOWN;
-}
-
-} // namespace internal
-} // namespace aura_shell
« no previous file with comments | « ui/aura_shell/modality_event_filter.h ('k') | ui/aura_shell/modality_event_filter_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698