OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_H_ |
6 #define ASH_COMMON_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WINDOW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 302 |
303 virtual void AddTransientWindowObserver( | 303 virtual void AddTransientWindowObserver( |
304 WmTransientWindowObserver* observer) = 0; | 304 WmTransientWindowObserver* observer) = 0; |
305 virtual void RemoveTransientWindowObserver( | 305 virtual void RemoveTransientWindowObserver( |
306 WmTransientWindowObserver* observer) = 0; | 306 WmTransientWindowObserver* observer) = 0; |
307 | 307 |
308 // Adds or removes a handler to receive events targeted at this window, before | 308 // Adds or removes a handler to receive events targeted at this window, before |
309 // this window handles the events itself; the handler does not recieve events | 309 // this window handles the events itself; the handler does not recieve events |
310 // from embedded windows. This only supports windows with internal widgets; | 310 // from embedded windows. This only supports windows with internal widgets; |
311 // see GetInternalWidget(). Ownership of the handler is not transferred. | 311 // see GetInternalWidget(). Ownership of the handler is not transferred. |
| 312 // |
| 313 // Also note that the target of these events is always an aura::Window. |
312 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 314 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
313 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 315 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
314 | 316 |
315 protected: | 317 protected: |
316 virtual ~WmWindow() {} | 318 virtual ~WmWindow() {} |
317 }; | 319 }; |
318 | 320 |
319 } // namespace ash | 321 } // namespace ash |
320 | 322 |
321 #endif // ASH_COMMON_WM_WINDOW_H_ | 323 #endif // ASH_COMMON_WM_WINDOW_H_ |
OLD | NEW |