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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void SetParentNativeViewAccessible( | 132 void SetParentNativeViewAccessible( |
133 gfx::NativeViewAccessible accessible_parent) override; | 133 gfx::NativeViewAccessible accessible_parent) override; |
134 gfx::NativeViewId GetParentForWindowlessPlugin() const override; | 134 gfx::NativeViewId GetParentForWindowlessPlugin() const override; |
135 #endif | 135 #endif |
136 | 136 |
137 // Overridden from ui::GestureEventHelper. | 137 // Overridden from ui::GestureEventHelper. |
138 bool CanDispatchToConsumer(ui::GestureConsumer* consumer) override; | 138 bool CanDispatchToConsumer(ui::GestureConsumer* consumer) override; |
139 void DispatchGestureEvent(ui::GestureEvent* event) override; | 139 void DispatchGestureEvent(ui::GestureEvent* event) override; |
140 void DispatchCancelTouchEvent(ui::TouchEvent* event) override; | 140 void DispatchCancelTouchEvent(ui::TouchEvent* event) override; |
141 | 141 |
142 SkColorType PreferredReadbackFormat() override; | |
143 | |
144 protected: | 142 protected: |
145 friend class RenderWidgetHostView; | 143 friend class RenderWidgetHostView; |
146 | 144 |
147 private: | 145 private: |
148 // Destroys this view without calling |Destroy| on |platform_view_|. | 146 // Destroys this view without calling |Destroy| on |platform_view_|. |
149 void DestroyGuestView(); | 147 void DestroyGuestView(); |
150 | 148 |
151 // Builds and forwards a WebKitGestureEvent to the renderer. | 149 // Builds and forwards a WebKitGestureEvent to the renderer. |
152 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); | 150 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); |
153 | 151 |
(...skipping 17 matching lines...) Expand all Loading... |
171 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
172 #if defined(USE_AURA) | 170 #if defined(USE_AURA) |
173 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
174 #endif | 172 #endif |
175 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
176 }; | 174 }; |
177 | 175 |
178 } // namespace content | 176 } // namespace content |
179 | 177 |
180 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |