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

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

Issue 8894018: Move the concept of Activation to the Shell. (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/aura.gyp ('k') | ui/aura/client/activation_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/activation_client.h
===================================================================
--- ui/aura/client/activation_client.h (revision 0)
+++ ui/aura/client/activation_client.h (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2011 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_ACTIVATION_CLIENT_H_
+#define UI_AURA_CLIENT_ACTIVATION_CLIENT_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+
+namespace aura {
+
+class Window;
+
+// An interface implemented by an object that manages window activation.
+class AURA_EXPORT ActivationClient {
+ public:
+ // Sets/Gets the activation client on the RootWindow.
+ static void SetActivationClient(ActivationClient* client);
+ static ActivationClient* GetActivationClient();
+
+ // Activates |window|. If |window| is NULL, nothing happens.
+ virtual void ActivateWindow(Window* window) = 0;
+
+ // Deactivates |window|. What (if anything) is activated next is up to the
+ // client. If |window| is NULL, nothing happens.
+ virtual void DeactivateWindow(Window* window) = 0;
+
+ // Retrieves the active window, or NULL if there is none.
+ virtual aura::Window* GetActiveWindow() = 0;
+
+ // Returns true if |window| can be focused. To be focusable, |window| must
+ // exist inside an activatable window.
+ virtual bool CanFocusWindow(Window* window) const = 0;
+
+ protected:
+ virtual ~ActivationClient() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_CLIENT_ACTIVATION_CLIENT_H_
Property changes on: ui\aura\client\activation_client.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/activation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698