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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // acquires a browser_plugin_instance_id as well. The guest instance ID 151 // acquires a browser_plugin_instance_id as well. The guest instance ID
152 // uniquely identifies a guest WebContents that's hosted by this 152 // uniquely identifies a guest WebContents that's hosted by this
153 // BrowserPlugin. 153 // BrowserPlugin.
154 BrowserPlugin(RenderFrame* render_frame, 154 BrowserPlugin(RenderFrame* render_frame,
155 const base::WeakPtr<BrowserPluginDelegate>& delegate); 155 const base::WeakPtr<BrowserPluginDelegate>& delegate);
156 156
157 ~BrowserPlugin() override; 157 ~BrowserPlugin() override;
158 158
159 gfx::Rect view_rect() const { return view_rect_; } 159 gfx::Rect view_rect() const { return view_rect_; }
160 160
161 void ScrollEventCompleted(bool scroll_event_handled_by_guest);
162
161 void ShowSadGraphic(); 163 void ShowSadGraphic();
162 void UpdateInternalInstanceId(); 164 void UpdateInternalInstanceId();
163 165
164 // IPC message handlers. 166 // IPC message handlers.
165 // Please keep in alphabetical order. 167 // Please keep in alphabetical order.
166 void OnAdvanceFocus(int instance_id, bool reverse); 168 void OnAdvanceFocus(int instance_id, bool reverse);
167 void OnCompositorFrameSwapped(const IPC::Message& message); 169 void OnCompositorFrameSwapped(const IPC::Message& message);
168 void OnGuestGone(int instance_id); 170 void OnGuestGone(int instance_id);
169 void OnSetChildFrameSurface(int instance_id, 171 void OnSetChildFrameSurface(int instance_id,
170 const cc::SurfaceId& surface_id, 172 const cc::SurfaceId& surface_id,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 222 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
221 // get called after BrowserPlugin has been destroyed. 223 // get called after BrowserPlugin has been destroyed.
222 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 224 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
223 225
224 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 226 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
225 }; 227 };
226 228
227 } // namespace content 229 } // namespace content
228 230
229 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 231 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698