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/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual void ClearNativeFocus() OVERRIDE; | 125 virtual void ClearNativeFocus() OVERRIDE; |
126 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; | 126 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; |
127 virtual Widget::MoveLoopResult RunMoveLoop( | 127 virtual Widget::MoveLoopResult RunMoveLoop( |
128 const gfx::Vector2d& drag_offset, | 128 const gfx::Vector2d& drag_offset, |
129 Widget::MoveLoopSource source, | 129 Widget::MoveLoopSource source, |
130 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; | 130 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; |
131 virtual void EndMoveLoop() OVERRIDE; | 131 virtual void EndMoveLoop() OVERRIDE; |
132 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 132 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
133 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; | 133 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; |
134 virtual void OnRootViewLayout() const OVERRIDE; | 134 virtual void OnRootViewLayout() const OVERRIDE; |
| 135 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; |
135 | 136 |
136 // Overridden from views::InputMethodDelegate: | 137 // Overridden from views::InputMethodDelegate: |
137 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; | 138 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; |
138 | 139 |
139 // Overridden from aura::WindowDelegate: | 140 // Overridden from aura::WindowDelegate: |
140 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 141 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
141 virtual gfx::Size GetMaximumSize() const OVERRIDE; | 142 virtual gfx::Size GetMaximumSize() const OVERRIDE; |
142 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 143 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
143 const gfx::Rect& new_bounds) OVERRIDE; | 144 const gfx::Rect& new_bounds) OVERRIDE; |
144 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 145 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
172 // Overridden from aura::client::FocusChangeObserver: | 173 // Overridden from aura::client::FocusChangeObserver: |
173 virtual void OnWindowFocused(aura::Window* gained_focus, | 174 virtual void OnWindowFocused(aura::Window* gained_focus, |
174 aura::Window* lost_focus) OVERRIDE; | 175 aura::Window* lost_focus) OVERRIDE; |
175 | 176 |
176 // Overridden from aura::client::DragDropDelegate: | 177 // Overridden from aura::client::DragDropDelegate: |
177 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 178 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
178 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 179 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
179 virtual void OnDragExited() OVERRIDE; | 180 virtual void OnDragExited() OVERRIDE; |
180 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 181 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
181 | 182 |
182 // Overridden from NativeWidget: | |
183 virtual ui::EventHandler* GetEventHandler() OVERRIDE; | |
184 | |
185 protected: | 183 protected: |
186 virtual ~NativeWidgetAura(); | 184 virtual ~NativeWidgetAura(); |
187 | 185 |
188 internal::NativeWidgetDelegate* delegate() { return delegate_; } | 186 internal::NativeWidgetDelegate* delegate() { return delegate_; } |
189 | 187 |
190 private: | 188 private: |
191 class ActiveWindowObserver; | 189 class ActiveWindowObserver; |
192 | 190 |
193 void SetInitialFocus(ui::WindowShowState show_state); | 191 void SetInitialFocus(ui::WindowShowState show_state); |
194 | 192 |
(...skipping 27 matching lines...) Expand all Loading... |
222 | 220 |
223 scoped_ptr<DropHelper> drop_helper_; | 221 scoped_ptr<DropHelper> drop_helper_; |
224 int last_drop_operation_; | 222 int last_drop_operation_; |
225 | 223 |
226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 224 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
227 }; | 225 }; |
228 | 226 |
229 } // namespace views | 227 } // namespace views |
230 | 228 |
231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |