testOobeLocalization implementation
[chromium-blink-merge.git] / ui / aura / dispatcher_win.cc
blob63b42a256c01953fe82ee19c7769cd73e895a6d4
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"
9 namespace aura {
11 class DispatcherWin : public base::MessagePumpDispatcher {
12 public:
13 DispatcherWin() {}
14 virtual ~DispatcherWin() {}
16 // Overridden from MessagePumpDispatcher:
17 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
19 private:
20 DISALLOW_COPY_AND_ASSIGN(DispatcherWin);
23 bool DispatcherWin::Dispatch(const base::NativeEvent& msg) {
24 TranslateMessage(&msg);
25 DispatchMessage(&msg);
26 return true;
29 base::MessagePumpDispatcher* CreateDispatcher() {
30 return new DispatcherWin;
33 } // namespace aura