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

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

Issue 11570012: events: Update key-event handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-for-landing Created 8 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
« no previous file with comments | « ash/wm/event_rewriter_event_filter.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/shell_observer.h" 8 #include "ash/shell_observer.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // does not take ownership. 45 // does not take ownership.
46 void Activate(Delegate* delegate); 46 void Activate(Delegate* delegate);
47 47
48 // Ends the filtering of events. 48 // Ends the filtering of events.
49 void Deactivate(); 49 void Deactivate();
50 50
51 // Cancels the partial screenshot UI. Do nothing if it's not activated. 51 // Cancels the partial screenshot UI. Do nothing if it's not activated.
52 void Cancel(); 52 void Cancel();
53 53
54 // ui::EventHandler overrides: 54 // ui::EventHandler overrides:
55 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 55 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
56 56
57 // ShellObserver overrides: 57 // ShellObserver overrides:
58 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; 58 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
59 virtual void OnAppTerminating() OVERRIDE; 59 virtual void OnAppTerminating() OVERRIDE;
60 virtual void OnLockStateChanged(bool locked) OVERRIDE; 60 virtual void OnLockStateChanged(bool locked) OVERRIDE;
61 61
62 private: 62 private:
63 Delegate* delegate_; 63 Delegate* delegate_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter); 65 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter);
66 }; 66 };
67 67
68 } // namespace internal 68 } // namespace internal
69 } // namespace ash 69 } // namespace ash
70 70
71 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_ 71 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « ash/wm/event_rewriter_event_filter.cc ('k') | ash/wm/overlay_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698