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/activation_change_observer.h" | 10 #include "ui/aura/client/activation_change_observer.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const gfx::Point& location) OVERRIDE; | 147 const gfx::Point& location) OVERRIDE; |
148 virtual bool CanFocus() OVERRIDE; | 148 virtual bool CanFocus() OVERRIDE; |
149 virtual void OnCaptureLost() OVERRIDE; | 149 virtual void OnCaptureLost() OVERRIDE; |
150 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 150 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
151 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 151 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
152 virtual void OnWindowDestroying() OVERRIDE; | 152 virtual void OnWindowDestroying() OVERRIDE; |
153 virtual void OnWindowDestroyed() OVERRIDE; | 153 virtual void OnWindowDestroyed() OVERRIDE; |
154 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 154 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
155 virtual bool HasHitTestMask() const OVERRIDE; | 155 virtual bool HasHitTestMask() const OVERRIDE; |
156 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 156 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
157 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; | 157 virtual void DidRecreateLayer(ui::Layer* old_layer, |
| 158 ui::Layer* new_layer) OVERRIDE; |
158 | 159 |
159 // Overridden from ui::EventHandler: | 160 // Overridden from ui::EventHandler: |
160 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 161 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
161 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 162 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
162 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 163 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
163 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 164 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
164 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 165 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
165 | 166 |
166 // Overridden from aura::client::ActivationDelegate: | 167 // Overridden from aura::client::ActivationDelegate: |
167 virtual bool ShouldActivate() const OVERRIDE; | 168 virtual bool ShouldActivate() const OVERRIDE; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 229 |
229 scoped_ptr<DropHelper> drop_helper_; | 230 scoped_ptr<DropHelper> drop_helper_; |
230 int last_drop_operation_; | 231 int last_drop_operation_; |
231 | 232 |
232 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
233 }; | 234 }; |
234 | 235 |
235 } // namespace views | 236 } // namespace views |
236 | 237 |
237 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |