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

Side by Side Diff: ui/wm/core/focus_controller.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_FOCUS_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_
6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_ 6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Called when a window's disposition changed such that it and its hierarchy 110 // Called when a window's disposition changed such that it and its hierarchy
111 // are no longer focusable/activatable. |next| is a valid window that is used 111 // are no longer focusable/activatable. |next| is a valid window that is used
112 // as a starting point for finding a window to focus next based on rules. 112 // as a starting point for finding a window to focus next based on rules.
113 void WindowLostFocusFromDispositionChange(aura::Window* window, 113 void WindowLostFocusFromDispositionChange(aura::Window* window,
114 aura::Window* next); 114 aura::Window* next);
115 115
116 // Called when an attempt is made to focus or activate a window via an input 116 // Called when an attempt is made to focus or activate a window via an input
117 // event targeted at that window. Rules determine the best focusable window 117 // event targeted at that window. Rules determine the best focusable window
118 // for the input window. 118 // for the input window.
119 void WindowFocusedFromInputEvent(aura::Window* window); 119 void WindowFocusedFromInputEvent(aura::Window* window, ui::Event* event);
120 120
121 aura::Window* active_window_; 121 aura::Window* active_window_;
122 aura::Window* focused_window_; 122 aura::Window* focused_window_;
123 123
124 bool updating_focus_; 124 bool updating_focus_;
125 bool updating_activation_; 125 bool updating_activation_;
126 126
127 std::unique_ptr<FocusRules> rules_; 127 std::unique_ptr<FocusRules> rules_;
128 128
129 base::ObserverList<aura::client::ActivationChangeObserver> 129 base::ObserverList<aura::client::ActivationChangeObserver>
130 activation_observers_; 130 activation_observers_;
131 base::ObserverList<aura::client::FocusChangeObserver> focus_observers_; 131 base::ObserverList<aura::client::FocusChangeObserver> focus_observers_;
132 132
133 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; 133 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(FocusController); 135 DISALLOW_COPY_AND_ASSIGN(FocusController);
136 }; 136 };
137 137
138 } // namespace wm 138 } // namespace wm
139 139
140 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_ 140 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698