| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AURA_WINDOW_EVENT_DISPATCHER_H_ | 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // TODO(beng): This is only needed because this cleanup needs to happen after | 108 // TODO(beng): This is only needed because this cleanup needs to happen after |
| 109 // all other observers are notified of OnWindowDestroying() but | 109 // all other observers are notified of OnWindowDestroying() but |
| 110 // before OnWindowDestroyed() is sent (i.e. while the window | 110 // before OnWindowDestroyed() is sent (i.e. while the window |
| 111 // hierarchy is still intact). This didn't seem worth adding a | 111 // hierarchy is still intact). This didn't seem worth adding a |
| 112 // generic notification for as only this class needs to implement | 112 // generic notification for as only this class needs to implement |
| 113 // it. I would however like to find a way to do this via an | 113 // it. I would however like to find a way to do this via an |
| 114 // observer. | 114 // observer. |
| 115 void OnPostNotifiedWindowDestroying(Window* window); | 115 void OnPostNotifiedWindowDestroying(Window* window); |
| 116 | 116 |
| 117 bool HoldingPointerMovesForTest(); |
| 118 |
| 117 private: | 119 private: |
| 118 FRIEND_TEST_ALL_PREFIXES(WindowEventDispatcherTest, | 120 FRIEND_TEST_ALL_PREFIXES(WindowEventDispatcherTest, |
| 119 KeepTranslatedEventInRoot); | 121 KeepTranslatedEventInRoot); |
| 120 | 122 |
| 121 friend class Window; | 123 friend class Window; |
| 122 friend class TestScreen; | 124 friend class TestScreen; |
| 123 | 125 |
| 124 // The parameter for OnWindowHidden() to specify why window is hidden. | 126 // The parameter for OnWindowHidden() to specify why window is hidden. |
| 125 enum WindowHiddenReason { | 127 enum WindowHiddenReason { |
| 126 WINDOW_DESTROYED, // Window is destroyed. | 128 WINDOW_DESTROYED, // Window is destroyed. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 258 |
| 257 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 259 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 258 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 260 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 259 | 261 |
| 260 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 262 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 } // namespace aura | 265 } // namespace aura |
| 264 | 266 |
| 265 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 267 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| OLD | NEW |