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

Side by Side Diff: ash/wm/modality_event_filter.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/modality_event_filter.h" 5 #include "ash/wm/modality_event_filter.h"
6 6
7 #include "ash/wm/modality_event_filter_delegate.h" 7 #include "ash/wm/modality_event_filter_delegate.h"
8 #include "ui/aura/event.h" 8 #include "ui/aura/event.h"
9 9
10 namespace aura_shell { 10 namespace ash {
11 namespace internal { 11 namespace internal {
12 12
13 ModalityEventFilter::ModalityEventFilter(aura::Window* container, 13 ModalityEventFilter::ModalityEventFilter(aura::Window* container,
14 ModalityEventFilterDelegate* delegate) 14 ModalityEventFilterDelegate* delegate)
15 : EventFilter(container), 15 : EventFilter(container),
16 delegate_(delegate) { 16 delegate_(delegate) {
17 } 17 }
18 18
19 ModalityEventFilter::~ModalityEventFilter() { 19 ModalityEventFilter::~ModalityEventFilter() {
20 } 20 }
21 21
22 bool ModalityEventFilter::PreHandleKeyEvent(aura::Window* target, 22 bool ModalityEventFilter::PreHandleKeyEvent(aura::Window* target,
23 aura::KeyEvent* event) { 23 aura::KeyEvent* event) {
24 return !delegate_->CanWindowReceiveEvents(target); 24 return !delegate_->CanWindowReceiveEvents(target);
25 } 25 }
26 26
27 bool ModalityEventFilter::PreHandleMouseEvent(aura::Window* target, 27 bool ModalityEventFilter::PreHandleMouseEvent(aura::Window* target,
28 aura::MouseEvent* event) { 28 aura::MouseEvent* event) {
29 return !delegate_->CanWindowReceiveEvents(target); 29 return !delegate_->CanWindowReceiveEvents(target);
30 } 30 }
31 31
32 ui::TouchStatus ModalityEventFilter::PreHandleTouchEvent( 32 ui::TouchStatus ModalityEventFilter::PreHandleTouchEvent(
33 aura::Window* target, 33 aura::Window* target,
34 aura::TouchEvent* event) { 34 aura::TouchEvent* event) {
35 // TODO(sadrul): ! 35 // TODO(sadrul): !
36 return ui::TOUCH_STATUS_UNKNOWN; 36 return ui::TOUCH_STATUS_UNKNOWN;
37 } 37 }
38 38
39 } // namespace internal 39 } // namespace internal
40 } // namespace aura_shell 40 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698