Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / views / widget / desktop_aura / desktop_focus_rules.h
blobe096e80998df283ad92b62dd61aba811c4f8af5e
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_
8 #include "ui/wm/core/base_focus_rules.h"
10 namespace views {
12 class DesktopFocusRules : public wm::BaseFocusRules {
13 public:
14 explicit DesktopFocusRules(aura::Window* content_window);
15 virtual ~DesktopFocusRules();
17 private:
18 // Overridden from wm::BaseFocusRules:
19 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE;
20 virtual bool SupportsChildActivation(aura::Window* window) const OVERRIDE;
21 virtual bool IsWindowConsideredVisibleForActivation(
22 aura::Window* window) const OVERRIDE;
23 virtual aura::Window* GetToplevelWindow(aura::Window* window) const OVERRIDE;
24 virtual aura::Window* GetNextActivatableWindow(
25 aura::Window* window) const OVERRIDE;
27 // The content window. This is an activatable window even though it is a
28 // child.
29 aura::Window* content_window_;
31 DISALLOW_COPY_AND_ASSIGN(DesktopFocusRules);
34 } // namespace views
36 #endif // UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_