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_delegate.h" | 10 #include "ui/aura/client/activation_delegate.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 const gfx::Point& location) OVERRIDE; | 142 const gfx::Point& location) OVERRIDE; |
143 virtual bool CanFocus() OVERRIDE; | 143 virtual bool CanFocus() OVERRIDE; |
144 virtual void OnCaptureLost() OVERRIDE; | 144 virtual void OnCaptureLost() OVERRIDE; |
145 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 145 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
147 virtual void OnWindowDestroying() OVERRIDE; | 147 virtual void OnWindowDestroying() OVERRIDE; |
148 virtual void OnWindowDestroyed() OVERRIDE; | 148 virtual void OnWindowDestroyed() OVERRIDE; |
149 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 149 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
150 virtual bool HasHitTestMask() const OVERRIDE; | 150 virtual bool HasHitTestMask() const OVERRIDE; |
151 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 151 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 152 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
152 | 153 |
153 // Overridden from ui::EventHandler: | 154 // Overridden from ui::EventHandler: |
154 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 155 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
155 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 156 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
156 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 157 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
157 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 158 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
158 | 159 |
159 // Overridden from aura::client::ActivationDelegate: | 160 // Overridden from aura::client::ActivationDelegate: |
160 virtual bool ShouldActivate(const ui::Event* event) OVERRIDE; | 161 virtual bool ShouldActivate(const ui::Event* event) OVERRIDE; |
161 virtual void OnActivated() OVERRIDE; | 162 virtual void OnActivated() OVERRIDE; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 208 |
208 scoped_ptr<DropHelper> drop_helper_; | 209 scoped_ptr<DropHelper> drop_helper_; |
209 int last_drop_operation_; | 210 int last_drop_operation_; |
210 | 211 |
211 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 212 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
212 }; | 213 }; |
213 | 214 |
214 } // namespace views | 215 } // namespace views |
215 | 216 |
216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 217 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |