| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void EndMoveLoop() OVERRIDE; | 124 virtual void EndMoveLoop() OVERRIDE; |
| 125 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 125 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
| 126 | 126 |
| 127 // Overridden from views::InputMethodDelegate: | 127 // Overridden from views::InputMethodDelegate: |
| 128 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; | 128 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; |
| 129 | 129 |
| 130 // Overridden from aura::WindowDelegate: | 130 // Overridden from aura::WindowDelegate: |
| 131 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 131 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 132 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 132 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 133 const gfx::Rect& new_bounds) OVERRIDE; | 133 const gfx::Rect& new_bounds) OVERRIDE; |
| 134 virtual void OnFocus() OVERRIDE; | 134 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; |
| 135 virtual void OnBlur() OVERRIDE; | 135 virtual void OnBlur() OVERRIDE; |
| 136 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; | 136 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; |
| 137 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 137 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 138 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 138 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 139 virtual bool ShouldDescendIntoChildForEventHandling( | 139 virtual bool ShouldDescendIntoChildForEventHandling( |
| 140 aura::Window* child, | 140 aura::Window* child, |
| 141 const gfx::Point& location) OVERRIDE; | 141 const gfx::Point& location) OVERRIDE; |
| 142 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 142 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
| 143 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 143 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
| 144 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; | 144 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // See class documentation for Widget in widget.h for a note about ownership. | 182 // See class documentation for Widget in widget.h for a note about ownership. |
| 183 Widget::InitParams::Ownership ownership_; | 183 Widget::InitParams::Ownership ownership_; |
| 184 | 184 |
| 185 // The following factory is used for calls to close the NativeWidgetAura | 185 // The following factory is used for calls to close the NativeWidgetAura |
| 186 // instance. | 186 // instance. |
| 187 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 187 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
| 188 | 188 |
| 189 // Can we be made active? | 189 // Can we be made active? |
| 190 bool can_activate_; | 190 bool can_activate_; |
| 191 | 191 |
| 192 // Are we in the destructor? |
| 193 bool destroying_; |
| 194 |
| 192 gfx::NativeCursor cursor_; | 195 gfx::NativeCursor cursor_; |
| 193 | 196 |
| 194 // The saved window state for exiting full screen state. | 197 // The saved window state for exiting full screen state. |
| 195 ui::WindowShowState saved_window_state_; | 198 ui::WindowShowState saved_window_state_; |
| 196 | 199 |
| 197 scoped_ptr<TooltipManagerAura> tooltip_manager_; | 200 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
| 198 | 201 |
| 199 scoped_ptr<ActiveWindowObserver> active_window_observer_; | 202 scoped_ptr<ActiveWindowObserver> active_window_observer_; |
| 200 | 203 |
| 201 scoped_ptr<DropHelper> drop_helper_; | 204 scoped_ptr<DropHelper> drop_helper_; |
| 202 int last_drop_operation_; | 205 int last_drop_operation_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 207 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 } // namespace views | 210 } // namespace views |
| 208 | 211 |
| 209 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 212 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |