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

Unified Diff: ui/wm/core/base_focus_rules.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/wm/core/accelerator_filter.cc ('k') | ui/wm/core/base_focus_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/base_focus_rules.h
diff --git a/ui/wm/core/base_focus_rules.h b/ui/wm/core/base_focus_rules.h
deleted file mode 100644
index 80735410834be2c601e2030343756b5931dfef8a..0000000000000000000000000000000000000000
--- a/ui/wm/core/base_focus_rules.h
+++ /dev/null
@@ -1,45 +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_WM_CORE_BASE_FOCUS_RULES_H_
-#define UI_WM_CORE_BASE_FOCUS_RULES_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/wm/core/focus_rules.h"
-
-namespace wm {
-
-// A set of basic focus and activation rules. Specializations should most likely
-// subclass this and call up to these methods rather than reimplementing them.
-class WM_EXPORT BaseFocusRules : public FocusRules {
- protected:
- BaseFocusRules();
- virtual ~BaseFocusRules();
-
- // Returns true if the children of |window| can be activated.
- virtual bool SupportsChildActivation(aura::Window* window) const = 0;
-
- // Returns true if |window| is considered visible for activation purposes.
- virtual bool IsWindowConsideredVisibleForActivation(
- aura::Window* window) const;
-
- // Overridden from FocusRules:
- virtual bool IsToplevelWindow(aura::Window* window) const override;
- virtual bool CanActivateWindow(aura::Window* window) const override;
- virtual bool CanFocusWindow(aura::Window* window) const override;
- virtual aura::Window* GetToplevelWindow(aura::Window* window) const override;
- virtual aura::Window* GetActivatableWindow(
- aura::Window* window) const override;
- virtual aura::Window* GetFocusableWindow(aura::Window* window) const override;
- virtual aura::Window* GetNextActivatableWindow(
- aura::Window* ignore) const override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BaseFocusRules);
-};
-
-} // namespace wm
-
-#endif // UI_WM_CORE_BASE_FOCUS_RULES_H_
« no previous file with comments | « ui/wm/core/accelerator_filter.cc ('k') | ui/wm/core/base_focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698