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

Side by Side Diff: ash/wm/ash_focus_rules.h

Issue 11414304: Fleshes out the basic set of focus rules a bit more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/ash_focus_rules.cc » ('j') | ash/wm/ash_focus_rules.cc » ('J')
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 ASH_WM_ASH_FOCUS_RULES_H_ 5 #ifndef ASH_WM_ASH_FOCUS_RULES_H_
6 #define ASH_WM_ASH_FOCUS_RULES_H_ 6 #define ASH_WM_ASH_FOCUS_RULES_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/views/corewm/focus_rules.h" 11 #include "ui/views/corewm/base_focus_rules.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace wm { 14 namespace wm {
15 15
16 class ASH_EXPORT AshFocusRules : public views::corewm::FocusRules { 16 class ASH_EXPORT AshFocusRules : public views::corewm::BaseFocusRules {
17 public: 17 public:
18 AshFocusRules(); 18 AshFocusRules();
19 virtual ~AshFocusRules(); 19 virtual ~AshFocusRules();
20 20
21 private: 21 private:
22 // Overridden from views::corewm::FocusRules: 22 // Overridden from views::corewm::BaseFocusRules:
23 virtual bool SupportsChildActivation(aura::Window* window) OVERRIDE;
24 virtual bool IsWindowConsideredVisibleForActivation(
25 aura::Window* window) OVERRIDE;
23 virtual bool CanActivateWindow(aura::Window* window) OVERRIDE; 26 virtual bool CanActivateWindow(aura::Window* window) OVERRIDE;
24 virtual bool CanFocusWindow(aura::Window* window) OVERRIDE;
25 virtual aura::Window* GetActivatableWindow(aura::Window* window) OVERRIDE;
26 virtual aura::Window* GetFocusableWindow(aura::Window* window) OVERRIDE;
27 virtual aura::Window* GetNextActivatableWindow(aura::Window* ignore) OVERRIDE;
28 virtual aura::Window* GetNextFocusableWindow(aura::Window* ignore) OVERRIDE;
29 27
30 DISALLOW_COPY_AND_ASSIGN(AshFocusRules); 28 DISALLOW_COPY_AND_ASSIGN(AshFocusRules);
31 }; 29 };
32 30
33 } // namespace wm 31 } // namespace wm
34 } // namespace ash 32 } // namespace ash
35 33
36 #endif // ASH_WM_ASH_FOCUS_RULES_H_ 34 #endif // ASH_WM_ASH_FOCUS_RULES_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/ash_focus_rules.cc » ('j') | ash/wm/ash_focus_rules.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698