Disable Wow64 tests. These appear to be causing issues on a Vista bot.
[chromium-blink-merge.git] / ui / wm / core / nested_accelerator_controller.h
blob13b4a4bf7c3ac49958514119032af88d4f192adb
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 #ifndef UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_
6 #define UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_
8 #include "base/callback.h"
9 #include "base/message_loop/message_loop.h"
10 #include "ui/wm/public/dispatcher_client.h"
11 #include "ui/wm/wm_export.h"
13 namespace wm {
15 class NestedAcceleratorDelegate;
16 class NestedAcceleratorDispatcher;
18 // Creates a dispatcher which wraps another dispatcher.
19 // The outer dispatcher runs first and performs ash specific handling.
20 // If it does not consume the event it forwards the event to the nested
21 // dispatcher.
22 class WM_EXPORT NestedAcceleratorController
23 : public aura::client::DispatcherClient {
24 public:
25 explicit NestedAcceleratorController(NestedAcceleratorDelegate* delegate);
26 virtual ~NestedAcceleratorController();
28 // aura::client::DispatcherClient:
29 virtual void RunWithDispatcher(
30 base::MessagePumpDispatcher* dispatcher) OVERRIDE;
31 virtual void QuitNestedMessageLoop() OVERRIDE;
33 private:
34 base::Closure quit_closure_;
35 scoped_ptr<NestedAcceleratorDispatcher> accelerator_dispatcher_;
36 scoped_ptr<NestedAcceleratorDelegate> dispatcher_delegate_;
38 DISALLOW_COPY_AND_ASSIGN(NestedAcceleratorController);
41 } // namespace wm
43 #endif // UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_