OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 virtual void SetParentNativeViewAccessible( | 155 virtual void SetParentNativeViewAccessible( |
156 gfx::NativeViewAccessible accessible_parent) OVERRIDE; | 156 gfx::NativeViewAccessible accessible_parent) OVERRIDE; |
157 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; | 157 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; |
158 #endif | 158 #endif |
159 | 159 |
160 // Overridden from ui::GestureEventHelper. | 160 // Overridden from ui::GestureEventHelper. |
161 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; | 161 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; |
162 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; | 162 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; |
163 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; | 163 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
164 | 164 |
| 165 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
| 166 |
165 protected: | 167 protected: |
166 friend class RenderWidgetHostView; | 168 friend class RenderWidgetHostView; |
167 | 169 |
168 private: | 170 private: |
169 // Destroys this view without calling |Destroy| on |platform_view_|. | 171 // Destroys this view without calling |Destroy| on |platform_view_|. |
170 void DestroyGuestView(); | 172 void DestroyGuestView(); |
171 | 173 |
172 // Builds and forwards a WebKitGestureEvent to the renderer. | 174 // Builds and forwards a WebKitGestureEvent to the renderer. |
173 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); | 175 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); |
174 | 176 |
(...skipping 10 matching lines...) Expand all Loading... |
185 RenderWidgetHostViewPort* platform_view_; | 187 RenderWidgetHostViewPort* platform_view_; |
186 #if defined(OS_WIN) || defined(USE_AURA) | 188 #if defined(OS_WIN) || defined(USE_AURA) |
187 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 189 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
188 #endif // defined(OS_WIN) || defined(USE_AURA) | 190 #endif // defined(OS_WIN) || defined(USE_AURA) |
189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 191 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
190 }; | 192 }; |
191 | 193 |
192 } // namespace content | 194 } // namespace content |
193 | 195 |
194 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 196 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |