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
3 // found in the LICENSE file.
5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h"
7 #include "base/message_loop/message_loop.h"
11 class DispatcherWin : public base::MessageLoop::Dispatcher {
14 virtual ~DispatcherWin() {}
16 // Overridden from MessageLoop::Dispatcher:
17 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
20 DISALLOW_COPY_AND_ASSIGN(DispatcherWin);
23 bool DispatcherWin::Dispatch(const base::NativeEvent& msg) {
24 TranslateMessage(&msg);
25 DispatchMessage(&msg);
29 base::MessageLoop::Dispatcher* CreateDispatcher() {
30 return new DispatcherWin;