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

Side by Side Diff: ui/aura/dispatcher_win.cc

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh 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 | « sync/test/accounts_client/test_accounts_client.cc ('k') | ui/aura/env.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) 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 8
9 namespace aura { 9 namespace aura {
10 10
11 class DispatcherWin : public base::MessageLoop::Dispatcher { 11 class DispatcherWin : public base::MessageLoop::Dispatcher {
12 public: 12 public:
13 DispatcherWin() {} 13 DispatcherWin() {}
14 virtual ~DispatcherWin() {} 14 virtual ~DispatcherWin() {}
15 15
16 // Overridden from MessageLoop::Dispatcher: 16 // Overridden from MessageLoop::Dispatcher:
17 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 17 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
18 18
19 private: 19 private:
20 DISALLOW_COPY_AND_ASSIGN(DispatcherWin); 20 DISALLOW_COPY_AND_ASSIGN(DispatcherWin);
21 }; 21 };
22 22
23 bool DispatcherWin::Dispatch(const base::NativeEvent& msg) { 23 bool DispatcherWin::Dispatch(const base::NativeEvent& msg) {
24 TranslateMessage(&msg); 24 TranslateMessage(&msg);
25 DispatchMessage(&msg); 25 DispatchMessage(&msg);
26 return true; 26 return true;
27 } 27 }
28 28
29 MessageLoop::Dispatcher* CreateDispatcher() { 29 base::MessageLoop::Dispatcher* CreateDispatcher() {
30 return new DispatcherWin; 30 return new DispatcherWin;
31 } 31 }
32 32
33 } // namespace aura 33 } // namespace aura
OLDNEW
« no previous file with comments | « sync/test/accounts_client/test_accounts_client.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698