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

Unified Diff: ui/aura/env.cc

Issue 243013006: events: Move the PlatformEventSource creation in aura::Env. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/env.h ('k') | ui/wm/core/wm_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index 61b7f27aa28a10e0961826767ec9b02790785fa6..f701695738958abcfa6dd6e4753e31cf068fc7be 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -8,6 +8,7 @@
#include "ui/aura/input_state_lookup.h"
#include "ui/compositor/compositor.h"
#include "ui/events/event_target_iterator.h"
+#include "ui/events/platform/platform_event_source.h"
namespace aura {
@@ -68,6 +69,9 @@ bool Env::IsMouseButtonDown() const {
void Env::Init() {
ui::Compositor::Initialize();
+
+ if (!ui::PlatformEventSource::GetInstance())
+ event_source_ = ui::PlatformEventSource::CreateDefault();
}
void Env::NotifyWindowInitialized(Window* window) {
« no previous file with comments | « ui/aura/env.h ('k') | ui/wm/core/wm_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698