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

Side by Side Diff: chrome/browser/chromeos/events/system_key_event_listener.h

Issue 223483002: base: Do not allow MessagePumpObservers to consume events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r262009 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
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 CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_
6 #define CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 10
(...skipping 13 matching lines...) Expand all
24 private: 24 private:
25 // Defines the delete on exit Singleton traits we like. Best to have this 25 // Defines the delete on exit Singleton traits we like. Best to have this
26 // and const/dest private as recommended for Singletons. 26 // and const/dest private as recommended for Singletons.
27 friend struct DefaultSingletonTraits<SystemKeyEventListener>; 27 friend struct DefaultSingletonTraits<SystemKeyEventListener>;
28 friend class SystemKeyEventListenerTest; 28 friend class SystemKeyEventListenerTest;
29 29
30 SystemKeyEventListener(); 30 SystemKeyEventListener();
31 virtual ~SystemKeyEventListener(); 31 virtual ~SystemKeyEventListener();
32 32
33 // MessageLoopForUI::Observer overrides. 33 // MessageLoopForUI::Observer overrides.
34 virtual base::EventStatus WillProcessEvent( 34 virtual void WillProcessEvent(const base::NativeEvent& event) OVERRIDE;
35 const base::NativeEvent& event) OVERRIDE;
36 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; 35 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
37 36
38 // Returns true if the event was processed, false otherwise. 37 void ProcessedXEvent(XEvent* xevent);
39 virtual bool ProcessedXEvent(XEvent* xevent);
40 38
41 bool stopped_; 39 bool stopped_;
42 40
43 // Base X ID for events from the XKB extension. 41 // Base X ID for events from the XKB extension.
44 int xkb_event_base_; 42 int xkb_event_base_;
45 43
46 DISALLOW_COPY_AND_ASSIGN(SystemKeyEventListener); 44 DISALLOW_COPY_AND_ASSIGN(SystemKeyEventListener);
47 }; 45 };
48 46
49 } // namespace chromeos 47 } // namespace chromeos
50 48
51 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter.cc ('k') | chrome/browser/chromeos/events/system_key_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698