| OLD | NEW |
| 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_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "ui/aura/client/focus_change_observer.h" | 9 #include "ui/aura/client/focus_change_observer.h" |
| 10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Overridden from aura::WindowObserver: | 156 // Overridden from aura::WindowObserver: |
| 157 void OnWindowPropertyChanged(aura::Window* window, | 157 void OnWindowPropertyChanged(aura::Window* window, |
| 158 const void* key, | 158 const void* key, |
| 159 intptr_t old) override; | 159 intptr_t old) override; |
| 160 | 160 |
| 161 // Overridden from ui::EventHandler: | 161 // Overridden from ui::EventHandler: |
| 162 void OnKeyEvent(ui::KeyEvent* event) override; | 162 void OnKeyEvent(ui::KeyEvent* event) override; |
| 163 void OnMouseEvent(ui::MouseEvent* event) override; | 163 void OnMouseEvent(ui::MouseEvent* event) override; |
| 164 void OnScrollEvent(ui::ScrollEvent* event) override; | 164 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 165 void OnGestureEvent(ui::GestureEvent* event) override; | 165 void OnGestureEvent(ui::GestureEvent* event) override; |
| 166 void OnAccessibilityMouseEvent(ui::MouseEvent* event) override; |
| 166 | 167 |
| 167 // Overridden from aura::client::ActivationDelegate: | 168 // Overridden from aura::client::ActivationDelegate: |
| 168 bool ShouldActivate() const override; | 169 bool ShouldActivate() const override; |
| 169 | 170 |
| 170 // Overridden from aura::client::ActivationChangeObserver: | 171 // Overridden from aura::client::ActivationChangeObserver: |
| 171 void OnWindowActivated( | 172 void OnWindowActivated( |
| 172 aura::client::ActivationChangeObserver::ActivationReason reason, | 173 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 173 aura::Window* gained_active, | 174 aura::Window* gained_active, |
| 174 aura::Window* lost_active) override; | 175 aura::Window* lost_active) override; |
| 175 | 176 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // The following factory is used for calls to close the NativeWidgetAura | 225 // The following factory is used for calls to close the NativeWidgetAura |
| 225 // instance. | 226 // instance. |
| 226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 227 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
| 227 | 228 |
| 228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 } // namespace views | 232 } // namespace views |
| 232 | 233 |
| 233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |