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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 protected: | 142 protected: |
143 friend class RenderWidgetHostView; | 143 friend class RenderWidgetHostView; |
144 | 144 |
145 private: | 145 private: |
146 | |
kenrb
2015/06/26 17:18:24
Not necessary.
wjmaclean
2015/06/27 16:30:58
Done.
| |
146 // Destroys this view without calling |Destroy| on |platform_view_|. | 147 // Destroys this view without calling |Destroy| on |platform_view_|. |
147 void DestroyGuestView(); | 148 void DestroyGuestView(); |
148 | 149 |
149 // Builds and forwards a WebKitGestureEvent to the renderer. | 150 // Builds and forwards a WebKitGestureEvent to the renderer. |
150 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); | 151 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); |
151 | 152 |
152 // Process all of the given gestures (passes them on to renderer) | 153 // Process all of the given gestures (passes them on to renderer) |
153 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 154 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
154 | 155 |
155 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; | 156 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; |
(...skipping 13 matching lines...) Expand all Loading... | |
169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 170 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
170 #if defined(USE_AURA) | 171 #if defined(USE_AURA) |
171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 172 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
172 #endif | 173 #endif |
173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 174 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
174 }; | 175 }; |
175 | 176 |
176 } // namespace content | 177 } // namespace content |
177 | 178 |
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |