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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/focus_change_observer.cc ('k') | ui/aura/client/focus_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/focus_client.h
diff --git a/ui/aura/client/focus_client.h b/ui/aura/client/focus_client.h
deleted file mode 100644
index cec64ec6ddb84d72b5094b1c7c31d2053137f65c..0000000000000000000000000000000000000000
--- a/ui/aura/client/focus_client.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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_FOCUS_CLIENT_H_
-#define UI_AURA_CLIENT_FOCUS_CLIENT_H_
-
-#include "ui/aura/aura_export.h"
-
-namespace ui {
-class Event;
-}
-
-namespace aura {
-class Window;
-namespace client {
-class FocusChangeObserver;
-
-// An interface implemented by an object that manages window focus.
-class AURA_EXPORT FocusClient {
- public:
- virtual ~FocusClient() {}
-
- virtual void AddObserver(FocusChangeObserver* observer) = 0;
- virtual void RemoveObserver(FocusChangeObserver* observer) = 0;
-
- // Focuses |window|. Passing NULL clears focus.
- virtual void FocusWindow(Window* window) = 0;
-
- // Sets focus to |window| if it's within the active window. Not intended as a
- // general purpose API, use FocusWindow() instead.
- virtual void ResetFocusWithinActiveWindow(Window* window) = 0;
-
- // Retrieves the focused window, or NULL if there is none.
- virtual Window* GetFocusedWindow() = 0;
-};
-
-// Sets/Gets the focus client on the root Window.
-AURA_EXPORT void SetFocusClient(Window* root_window, FocusClient* client);
-AURA_EXPORT FocusClient* GetFocusClient(Window* window);
-AURA_EXPORT FocusClient* GetFocusClient(const Window* window);
-
-} // namespace clients
-} // namespace aura
-
-#endif // UI_AURA_CLIENT_FOCUS_CLIENT_H_
« no previous file with comments | « ui/aura/client/focus_change_observer.cc ('k') | ui/aura/client/focus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698