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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 293043003: <webview>: Move PreHandleGestureEvent in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/media_stream_request.h" 13 #include "content/public/common/media_stream_request.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/base/window_open_disposition.h" 15 #include "ui/base/window_open_disposition.h"
16 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace blink {
21 class WebGestureEvent;
22 } // namespace blink
23
20 namespace content { 24 namespace content {
21 25
22 class ColorChooser; 26 class ColorChooser;
23 class JavaScriptDialogManager; 27 class JavaScriptDialogManager;
24 class WebContents; 28 class WebContents;
25 struct ColorSuggestion; 29 struct ColorSuggestion;
26 struct ContextMenuParams; 30 struct ContextMenuParams;
27 struct FileChooserParams; 31 struct FileChooserParams;
28 struct NativeWebKeyboardEvent; 32 struct NativeWebKeyboardEvent;
29 struct OpenURLParams; 33 struct OpenURLParams;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int opener_render_frame_id, 202 int opener_render_frame_id,
199 const base::string16& frame_name, 203 const base::string16& frame_name,
200 const GURL& target_url, 204 const GURL& target_url,
201 WebContents* new_contents) {} 205 WebContents* new_contents) {}
202 206
203 // Registers a |callback| with the delegate that the delegate would call when 207 // Registers a |callback| with the delegate that the delegate would call when
204 // it is about to be destroyed. 208 // it is about to be destroyed.
205 typedef base::Callback<void(WebContents*)> DestructionCallback; 209 typedef base::Callback<void(WebContents*)> DestructionCallback;
206 virtual void RegisterDestructionCallback( 210 virtual void RegisterDestructionCallback(
207 const DestructionCallback& callback) {} 211 const DestructionCallback& callback) {}
212
213 // Allows delegates to handle gesture events before sending to the renderer.
214 // Returns true if the |event| was handled and thus shouldn't be processed
215 // by the renderer's event handler. Note that the touch events that create
216 // the gesture are always passed to the renderer since the gesture is created
217 // and dispatched after the touches return without being "preventDefault()"ed.
218 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a
219 // WebContentsDelegate.
220 virtual bool PreHandleGestureEvent(WebContents* source,
221 const blink::WebGestureEvent& event);
208 }; 222 };
209 223
210 } // namespace content 224 } // namespace content
211 225
212 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 226 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698