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

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

Issue 17078005: Move message_pump to base/message_loop. (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
« no previous file with comments | « ui/base/ozone/event_converter_ozone.h ('k') | ui/base/ozone/event_factory_ozone.h » ('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 #include "ui/base/ozone/event_converter_ozone.h" 5 #include "ui/base/ozone/event_converter_ozone.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/message_pump_ozone.h" 9 #include "base/message_loop/message_pump_ozone.h"
10 #include "ui/base/events/event.h" 10 #include "ui/base/events/event.h"
11 11
12 namespace { 12 namespace {
13 13
14 void DispatchEventHelper(scoped_ptr<ui::Event> key) { 14 void DispatchEventHelper(scoped_ptr<ui::Event> key) {
15 base::MessagePumpOzone::Current()->Dispatch(key.get()); 15 base::MessagePumpOzone::Current()->Dispatch(key.get());
16 } 16 }
17 17
18 } // namespace 18 } // namespace
19 19
20 namespace ui { 20 namespace ui {
21 21
22 EventConverterOzone::EventConverterOzone() { 22 EventConverterOzone::EventConverterOzone() {
23 } 23 }
24 24
25 EventConverterOzone::~EventConverterOzone() { 25 EventConverterOzone::~EventConverterOzone() {
26 } 26 }
27 27
28 void EventConverterOzone::DispatchEvent(scoped_ptr<ui::Event> event) { 28 void EventConverterOzone::DispatchEvent(scoped_ptr<ui::Event> event) {
29 base::MessageLoop::current()->PostTask( 29 base::MessageLoop::current()->PostTask(
30 FROM_HERE, base::Bind(&DispatchEventHelper, base::Passed(&event))); 30 FROM_HERE, base::Bind(&DispatchEventHelper, base::Passed(&event)));
31 } 31 }
32 32
33 } // namespace ui 33 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ozone/event_converter_ozone.h ('k') | ui/base/ozone/event_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698