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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « ash/wm/mru_window_tracker_unittest.cc ('k') | ash/wm/overlay_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OVERLAY_EVENT_FILTER_H_ 5 #ifndef ASH_WM_OVERLAY_EVENT_FILTER_H_
6 #define ASH_WM_OVERLAY_EVENT_FILTER_H_ 6 #define ASH_WM_OVERLAY_EVENT_FILTER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/events/event_handler.h" 12 #include "ui/events/event_handler.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace internal {
16 15
17 // EventFilter for the "overlay window", which intercepts events before they are 16 // EventFilter for the "overlay window", which intercepts events before they are
18 // processed by the usual path (e.g. the partial screenshot UI, the keyboard 17 // processed by the usual path (e.g. the partial screenshot UI, the keyboard
19 // overlay). It does nothing the first time, but works when |Activate()| is 18 // overlay). It does nothing the first time, but works when |Activate()| is
20 // called. The main task of this event filter is just to stop propagation 19 // called. The main task of this event filter is just to stop propagation
21 // of any key events during activation, and also signal cancellation when keys 20 // of any key events during activation, and also signal cancellation when keys
22 // for canceling are pressed. 21 // for canceling are pressed.
23 class ASH_EXPORT OverlayEventFilter : public ui::EventHandler, 22 class ASH_EXPORT OverlayEventFilter : public ui::EventHandler,
24 public ShellObserver { 23 public ShellObserver {
25 public: 24 public:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; 58 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
60 virtual void OnAppTerminating() OVERRIDE; 59 virtual void OnAppTerminating() OVERRIDE;
61 virtual void OnLockStateChanged(bool locked) OVERRIDE; 60 virtual void OnLockStateChanged(bool locked) OVERRIDE;
62 61
63 private: 62 private:
64 Delegate* delegate_; 63 Delegate* delegate_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter); 65 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter);
67 }; 66 };
68 67
69 } // namespace internal
70 } // namespace ash 68 } // namespace ash
71 69
72 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_ 70 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « ash/wm/mru_window_tracker_unittest.cc ('k') | ash/wm/overlay_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698