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

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

Issue 9033007: Rename the aura_shell namespace to ash (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 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 #ifndef ASH_WM_MODALITY_EVENT_FILTER_H_ 5 #ifndef ASH_WM_MODALITY_EVENT_FILTER_H_
6 #define ASH_WM_MODALITY_EVENT_FILTER_H_ 6 #define ASH_WM_MODALITY_EVENT_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/event_filter.h" 10 #include "ui/aura/event_filter.h"
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 12
13 namespace aura_shell { 13 namespace ash {
14 namespace internal { 14 namespace internal {
15 15
16 class ModalityEventFilterDelegate; 16 class ModalityEventFilterDelegate;
17 17
18 class ASH_EXPORT ModalityEventFilter : public aura::EventFilter { 18 class ASH_EXPORT ModalityEventFilter : public aura::EventFilter {
19 public: 19 public:
20 ModalityEventFilter(aura::Window* container, 20 ModalityEventFilter(aura::Window* container,
21 ModalityEventFilterDelegate* delegate); 21 ModalityEventFilterDelegate* delegate);
22 virtual ~ModalityEventFilter(); 22 virtual ~ModalityEventFilter();
23 23
24 // Overridden from aura::EventFilter: 24 // Overridden from aura::EventFilter:
25 virtual bool PreHandleKeyEvent(aura::Window* target, 25 virtual bool PreHandleKeyEvent(aura::Window* target,
26 aura::KeyEvent* event) OVERRIDE; 26 aura::KeyEvent* event) OVERRIDE;
27 virtual bool PreHandleMouseEvent(aura::Window* target, 27 virtual bool PreHandleMouseEvent(aura::Window* target,
28 aura::MouseEvent* event) OVERRIDE; 28 aura::MouseEvent* event) OVERRIDE;
29 virtual ui::TouchStatus PreHandleTouchEvent( 29 virtual ui::TouchStatus PreHandleTouchEvent(
30 aura::Window* target, 30 aura::Window* target,
31 aura::TouchEvent* event) OVERRIDE; 31 aura::TouchEvent* event) OVERRIDE;
32 32
33 private: 33 private:
34 ModalityEventFilterDelegate* delegate_; 34 ModalityEventFilterDelegate* delegate_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ModalityEventFilter); 36 DISALLOW_COPY_AND_ASSIGN(ModalityEventFilter);
37 }; 37 };
38 38
39 } // namespace internal 39 } // namespace internal
40 } // namespace aura_shell 40 } // namespace ash
41 41
42 #endif // ASH_WM_MODALITY_EVENT_FILTER_H_ 42 #endif // ASH_WM_MODALITY_EVENT_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698