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

Side by Side Diff: ui/events/ozone/event_factory_ozone.h

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | « ui/base/ime/remote_input_method_win.h ('k') | ui/keyboard/keyboard_util.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_ 5 #ifndef UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
6 #define UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_ 6 #define UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_pump_libevent.h" 11 #include "base/message_loop/message_pump_libevent.h"
12 #include "ui/events/events_export.h" 12 #include "ui/events/events_export.h"
13 #include "ui/events/ozone/event_converter_ozone.h" 13 #include "ui/events/ozone/event_converter_ozone.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 // Creates and dispatches |ui.Event|'s. Ozone assumes that events arrive on file 17 // Creates and dispatches |ui.Event|'s. Ozone assumes that events arrive on file
18 // descriptors with one |EventConverterOzone| instance for each descriptor. 18 // descriptors with one |EventConverterOzone| instance for each descriptor.
19 // Ozone presumes that the set of file desctiprtors can vary at runtime so this 19 // Ozone presumes that the set of file desctiprtors can vary at runtime so this
20 // class supports dynamically adding and removing |EventConverterOzone| 20 // class supports dynamically adding and removing |EventConverterOzone|
21 // instances as necessary. 21 // instances as necessary.
22 class EVENTS_EXPORT EventFactoryOzone { 22 class EVENTS_EXPORT EventFactoryOzone {
23 public: 23 public:
24 EventFactoryOzone(); 24 EventFactoryOzone();
25 virtual ~EventFactoryOzone(); 25 virtual ~EventFactoryOzone();
26 26
27 // Called from RootWindowHostOzone to initialize and start processing events. 27 // Called from WindowTreeHostOzone to initialize and start processing events.
28 // This should create the initial set of converters, and potentially arrange 28 // This should create the initial set of converters, and potentially arrange
29 // for more converters to be created as new event sources become available. 29 // for more converters to be created as new event sources become available.
30 // No events processing should happen until this is called. All processes have 30 // No events processing should happen until this is called. All processes have
31 // an EventFactoryOzone but not all of them should process events. In chrome, 31 // an EventFactoryOzone but not all of them should process events. In chrome,
32 // events are dispatched in the browser process on the UI thread. 32 // events are dispatched in the browser process on the UI thread.
33 virtual void StartProcessingEvents(); 33 virtual void StartProcessingEvents();
34 34
35 // Returns the static instance last set using SetInstance(). 35 // Returns the static instance last set using SetInstance().
36 static EventFactoryOzone* GetInstance(); 36 static EventFactoryOzone* GetInstance();
37 37
(...skipping 15 matching lines...) Expand all
53 std::map<int, FDWatcher> watchers_; 53 std::map<int, FDWatcher> watchers_;
54 54
55 static EventFactoryOzone* impl_; // not owned 55 static EventFactoryOzone* impl_; // not owned
56 56
57 DISALLOW_COPY_AND_ASSIGN(EventFactoryOzone); 57 DISALLOW_COPY_AND_ASSIGN(EventFactoryOzone);
58 }; 58 };
59 59
60 } // namespace ui 60 } // namespace ui
61 61
62 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_ 62 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/remote_input_method_win.h ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698