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

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

Issue 2809073002: cros: allow aura window not considered activatable for pointer event (Closed)
Patch Set: ui::Event* Created 3 years, 8 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
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_WM_CORE_BASE_FOCUS_RULES_H_ 5 #ifndef UI_WM_CORE_BASE_FOCUS_RULES_H_
6 #define UI_WM_CORE_BASE_FOCUS_RULES_H_ 6 #define UI_WM_CORE_BASE_FOCUS_RULES_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/wm/core/focus_rules.h" 10 #include "ui/wm/core/focus_rules.h"
(...skipping 10 matching lines...) Expand all
21 // Returns true if the children of |window| can be activated. 21 // Returns true if the children of |window| can be activated.
22 virtual bool SupportsChildActivation(aura::Window* window) const = 0; 22 virtual bool SupportsChildActivation(aura::Window* window) const = 0;
23 23
24 // Returns true if |window| is considered visible for activation purposes. 24 // Returns true if |window| is considered visible for activation purposes.
25 virtual bool IsWindowConsideredVisibleForActivation( 25 virtual bool IsWindowConsideredVisibleForActivation(
26 aura::Window* window) const; 26 aura::Window* window) const;
27 27
28 // Overridden from FocusRules: 28 // Overridden from FocusRules:
29 bool IsToplevelWindow(aura::Window* window) const override; 29 bool IsToplevelWindow(aura::Window* window) const override;
30 bool CanActivateWindow(aura::Window* window) const override; 30 bool CanActivateWindow(aura::Window* window) const override;
31 bool CanFocusWindow(aura::Window* window) const override; 31 bool CanFocusWindow(aura::Window* window, ui::Event* event) const override;
32 aura::Window* GetToplevelWindow(aura::Window* window) const override; 32 aura::Window* GetToplevelWindow(aura::Window* window) const override;
33 aura::Window* GetActivatableWindow(aura::Window* window) const override; 33 aura::Window* GetActivatableWindow(aura::Window* window) const override;
34 aura::Window* GetFocusableWindow(aura::Window* window) const override; 34 aura::Window* GetFocusableWindow(aura::Window* window) const override;
35 aura::Window* GetNextActivatableWindow(aura::Window* ignore) const override; 35 aura::Window* GetNextActivatableWindow(aura::Window* ignore) const override;
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(BaseFocusRules); 38 DISALLOW_COPY_AND_ASSIGN(BaseFocusRules);
39 }; 39 };
40 40
41 } // namespace wm 41 } // namespace wm
42 42
43 #endif // UI_WM_CORE_BASE_FOCUS_RULES_H_ 43 #endif // UI_WM_CORE_BASE_FOCUS_RULES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698