Chromium Code Reviews| Index: ui/aura/client/dispatcher_client.h |
| diff --git a/ui/aura/client/dispatcher_client.h b/ui/aura/client/dispatcher_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6c881eb2c8b031277d0d0c1559dff44a1c230b93 |
| --- /dev/null |
| +++ b/ui/aura/client/dispatcher_client.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
| +#define UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
| +#pragma once |
| + |
| +#include "ui/aura/aura_export.h" |
| +#include "base/message_loop.h" |
| + |
| +namespace aura { |
| + |
| +namespace client { |
| + |
| +// A property key to store the nested dispatcher controller. The type of the |
| +// value is |aura::client::DispatcherClient*|. |
| +AURA_EXPORT extern const char kDispatcherClient[]; |
|
oshima
2012/01/31 18:19:52
I think you don't need to export this. I know some
|
| + |
| +// An interface implemented by an object which handles nested dispatchers. |
| +class AURA_EXPORT DispatcherClient { |
| + public: |
| + virtual void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher, |
| + bool nestable_tasks_allowed) = 0; |
| +}; |
| + |
| +AURA_EXPORT void SetDispatcherClient(DispatcherClient* client); |
| +AURA_EXPORT DispatcherClient* GetDispatcherClient(); |
| + |
| +} // namespace client |
| +} // namespace aura |
| + |
| +#endif // UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |