Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.h

Issue 1254883006: Bubble scroll events from WebView guest to embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete test. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Process all of the given gestures (passes them on to renderer) 152 // Process all of the given gestures (passes them on to renderer)
153 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); 153 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures);
154 154
155 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; 155 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const;
156 156
157 void OnHandleInputEvent(RenderWidgetHostImpl* embedder, 157 void OnHandleInputEvent(RenderWidgetHostImpl* embedder,
158 int browser_plugin_instance_id, 158 int browser_plugin_instance_id,
159 const gfx::Rect& guest_window_rect, 159 const gfx::Rect& guest_window_rect,
160 const blink::WebInputEvent* event); 160 const blink::WebInputEvent* event);
161 161
162 void GestureEventAck(const blink::WebGestureEvent& event,
163 InputEventAckState ack_result) override;
164
165 void WheelEventAck(const blink::WebMouseWheelEvent& event,
166 InputEventAckState ack_result) override;
167
162 // BrowserPluginGuest and RenderWidgetHostViewGuest's lifetimes are not tied 168 // BrowserPluginGuest and RenderWidgetHostViewGuest's lifetimes are not tied
163 // to one another, therefore we access |guest_| through WeakPtr. 169 // to one another, therefore we access |guest_| through WeakPtr.
164 base::WeakPtr<BrowserPluginGuest> guest_; 170 base::WeakPtr<BrowserPluginGuest> guest_;
165 gfx::Size size_; 171 gfx::Size size_;
166 // The platform view for this RenderWidgetHostView. 172 // The platform view for this RenderWidgetHostView.
167 // RenderWidgetHostViewGuest mostly only cares about stuff related to 173 // RenderWidgetHostViewGuest mostly only cares about stuff related to
168 // compositing, the rest are directly forwared to this |platform_view_|. 174 // compositing, the rest are directly forwared to this |platform_view_|.
169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; 175 base::WeakPtr<RenderWidgetHostViewBase> platform_view_;
170 #if defined(USE_AURA) 176 #if defined(USE_AURA)
171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 177 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
172 #endif 178 #endif
173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
174 }; 180 };
175 181
176 } // namespace content 182 } // namespace content
177 183
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 184 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698