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

Side by Side Diff: ash/accelerators/nested_dispatcher_controller.h

Issue 10693135: Remove #pragma once from ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « ash/accelerators/focus_manager_factory.h ('k') | ash/ash_export.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 #ifndef ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ 5 #ifndef ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_
6 #define ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ 6 #define ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_
7 #pragma once
8 7
9 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
10 #include "base/message_loop.h" 9 #include "base/message_loop.h"
11 #include "ui/aura/client/dispatcher_client.h" 10 #include "ui/aura/client/dispatcher_client.h"
12 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
13 12
14 namespace ash { 13 namespace ash {
15 14
16 // Creates a dispatcher which wraps another dispatcher. 15 // Creates a dispatcher which wraps another dispatcher.
17 // The outer dispatcher runs first and performs ash specific handling. 16 // The outer dispatcher runs first and performs ash specific handling.
18 // If it does not consume the event it forwards the event to the nested 17 // If it does not consume the event it forwards the event to the nested
19 // dispatcher. 18 // dispatcher.
20 class ASH_EXPORT NestedDispatcherController 19 class ASH_EXPORT NestedDispatcherController
21 : public aura::client::DispatcherClient { 20 : public aura::client::DispatcherClient {
22 public: 21 public:
23 NestedDispatcherController(); 22 NestedDispatcherController();
24 virtual ~NestedDispatcherController(); 23 virtual ~NestedDispatcherController();
25 24
26 virtual void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher, 25 virtual void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher,
27 aura::Window* associated_window, 26 aura::Window* associated_window,
28 bool nestable_tasks_allowed) OVERRIDE; 27 bool nestable_tasks_allowed) OVERRIDE;
29 28
30 private: 29 private:
31 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherController); 30 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherController);
32 }; 31 };
33 32
34 } // namespace ash 33 } // namespace ash
35 34
36 #endif // ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ 35 #endif // ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/accelerators/focus_manager_factory.h ('k') | ash/ash_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698