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

Side by Side Diff: ui/base/ozone/event_converter_ozone.cc

Issue 16466003: Event handling support for ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/base/ozone/event_converter_ozone.h"
6
7 #include "base/bind.h"
8 #include "base/message_loop.h"
9 #include "base/message_pump_ozone.h"
10 #include "ui/base/events/event.h"
11
12 namespace {
13
14 void DispatchEventHelper(ui::Event* key) {
15 base::MessagePumpOzone::Current()->Dispatch(key);
16 }
17
18 } // namespace
19
20 namespace ui {
21
22 void EventConverterOzone::DispatchEvent(ui::Event* event) {
23 base::MessageLoop::current()->PostTask(
24 FROM_HERE, base::Bind(&DispatchEventHelper, base::Owned(event)));
25 }
26
27 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698