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

Side by Side Diff: ui/wm/public/dispatcher_client.h

Issue 280483003: wm: Change the DispatcherClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-tests Created 6 years, 6 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 | « ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc ('k') | no next file » | 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 UI_WM_PUBLIC_DISPATCHER_CLIENT_H_ 5 #ifndef UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
6 #define UI_WM_PUBLIC_DISPATCHER_CLIENT_H_ 6 #define UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
7 7
8 #include "base/callback_forward.h"
8 #include "base/message_loop/message_pump_dispatcher.h" 9 #include "base/message_loop/message_pump_dispatcher.h"
9 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
10 11
11 namespace aura { 12 namespace aura {
12 class Window; 13 class Window;
13 namespace client { 14 namespace client {
14 15
15 // An interface implemented by an object which handles nested dispatchers. 16 // An interface implemented by an object which handles nested dispatchers.
16 class AURA_EXPORT DispatcherClient { 17 class AURA_EXPORT DispatcherClient {
17 public: 18 public:
18 virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher) = 0; 19 virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher,
19 20 base::Closure* quit_closure) = 0;
sky 2014/05/27 17:19:38 It seems more natural to use a scoping object for
sadrul 2014/05/27 17:37:14 Do you mean something like: DispatcherClient* c
20 virtual void QuitNestedMessageLoop() = 0;
21 }; 21 };
22 22
23 AURA_EXPORT void SetDispatcherClient(Window* root_window, 23 AURA_EXPORT void SetDispatcherClient(Window* root_window,
24 DispatcherClient* client); 24 DispatcherClient* client);
25 AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window); 25 AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window);
26 26
27 } // namespace client 27 } // namespace client
28 } // namespace aura 28 } // namespace aura
29 29
30 #endif // UI_WM_PUBLIC_DISPATCHER_CLIENT_H_ 30 #endif // UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698