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

Side by Side Diff: ui/wm/core/focus_rules.h

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/wm/core/focus_controller_unittest.cc ('k') | ui/wm/core/image_grid.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_COREWM_FOCUS_RULES_H_ 5 #ifndef UI_WM_CORE_FOCUS_RULES_H_
6 #define UI_VIEWS_COREWM_FOCUS_RULES_H_ 6 #define UI_WM_CORE_FOCUS_RULES_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/wm/core/wm_core_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 } 12 }
13 13
14 namespace views { 14 namespace views {
15 namespace corewm { 15 namespace corewm {
16 16
17 // Implemented by an object that establishes the rules about what can be 17 // Implemented by an object that establishes the rules about what can be
18 // focused or activated. 18 // focused or activated.
19 class VIEWS_EXPORT FocusRules { 19 class WM_CORE_EXPORT FocusRules {
20 public: 20 public:
21 virtual ~FocusRules() {} 21 virtual ~FocusRules() {}
22 22
23 // Returns true if |window| is a toplevel window. Whether or not a window 23 // Returns true if |window| is a toplevel window. Whether or not a window
24 // is considered toplevel is determined by a similar set of rules that 24 // is considered toplevel is determined by a similar set of rules that
25 // govern activation and focus. Not all toplevel windows are activatable, 25 // govern activation and focus. Not all toplevel windows are activatable,
26 // call CanActivateWindow() to determine if a window can be activated. 26 // call CanActivateWindow() to determine if a window can be activated.
27 virtual bool IsToplevelWindow(aura::Window* window) const = 0; 27 virtual bool IsToplevelWindow(aura::Window* window) const = 0;
28 // Returns true if |window| can be activated or focused. 28 // Returns true if |window| can be activated or focused.
29 virtual bool CanActivateWindow(aura::Window* window) const = 0; 29 virtual bool CanActivateWindow(aura::Window* window) const = 0;
(...skipping 28 matching lines...) Expand all
58 // - it is being destroyed. 58 // - it is being destroyed.
59 // - it is being explicitly deactivated. 59 // - it is being explicitly deactivated.
60 // |ignore| cannot be NULL. 60 // |ignore| cannot be NULL.
61 virtual aura::Window* GetNextActivatableWindow( 61 virtual aura::Window* GetNextActivatableWindow(
62 aura::Window* ignore) const = 0; 62 aura::Window* ignore) const = 0;
63 }; 63 };
64 64
65 } // namespace corewm 65 } // namespace corewm
66 } // namespace views 66 } // namespace views
67 67
68 #endif // UI_VIEWS_COREWM_FOCUS_RULES_H_ 68 #endif // UI_WM_CORE_FOCUS_RULES_H_
OLDNEW
« no previous file with comments | « ui/wm/core/focus_controller_unittest.cc ('k') | ui/wm/core/image_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698