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_pump_dispatcher.h"
11 class DispatcherWin
: public base::MessagePumpDispatcher
{
14 virtual ~DispatcherWin() {}
16 // Overridden from MessagePumpDispatcher:
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::MessagePumpDispatcher
* CreateDispatcher() {
30 return new DispatcherWin
;