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

Unified Diff: ui/aura/client/activation_delegate.h

Issue 8956004: Move ActivationClient/Delegate to client namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/activation_client.cc ('k') | ui/aura/client/activation_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/activation_delegate.h
===================================================================
--- ui/aura/client/activation_delegate.h (revision 114593)
+++ ui/aura/client/activation_delegate.h (working copy)
@@ -9,19 +9,14 @@
#include "ui/aura/aura_export.h"
namespace aura {
-
class Event;
class Window;
+namespace client {
// An interface implemented by an object that configures and responds to changes
// to a window's activation state.
class AURA_EXPORT ActivationDelegate {
public:
- // Sets/Gets the ActivationDelegate on the Window. No ownership changes.
- static void SetActivationDelegate(Window* window,
- ActivationDelegate* delegate);
- static ActivationDelegate* GetActivationDelegate(Window* window);
-
// Returns true if the window should be activated. |event| is either the mouse
// event supplied if the activation is the result of a mouse, or the touch
// event if the activation is the result of a touch, or NULL if activation is
@@ -38,6 +33,12 @@
virtual ~ActivationDelegate() {}
};
+// Sets/Gets the ActivationDelegate on the Window. No ownership changes.
+AURA_EXPORT void SetActivationDelegate(Window* window,
+ ActivationDelegate* delegate);
+AURA_EXPORT ActivationDelegate* GetActivationDelegate(Window* window);
+
+} // namespace client
} // namespace aura
#endif // UI_AURA_CLIENT_ACTIVATION_DELEGATE_H_
« no previous file with comments | « ui/aura/client/activation_client.cc ('k') | ui/aura/client/activation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698