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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 313083002: Disable overscroll navigation when emulating touch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Returns true if the |event| was handled. 52 // Returns true if the |event| was handled.
53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
54 54
55 // Callback to inform the browser that the renderer did not process the 55 // Callback to inform the browser that the renderer did not process the
56 // specified gesture event. Returns true if the |event| was handled. 56 // specified gesture event. Returns true if the |event| was handled.
57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event);
58 58
59 // Notifies that screen rects were sent to renderer process. 59 // Notifies that screen rects were sent to renderer process.
60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
61 61
62 // Notifies that overscrolling content should be disabled.
63 virtual void SetOverscrollContentDisabled(bool disabled) {}
mfomitchev 2014/06/04 21:50:36 This doesn't really belong in the RWHDelegate inte
dgozman 2014/06/06 14:07:31 I don't like this one either. Unfortunately, movin
Avi (use Gerrit) 2014/06/06 14:36:17 Well, RWH knows about "touch emulation" so perhaps
mfomitchev 2014/06/06 15:32:48 This sounds reasonable to me.
dgozman 2014/06/06 15:45:28 Done.
64
62 #if defined(OS_WIN) 65 #if defined(OS_WIN)
63 // Returns the widget's parent's NativeViewAccessible. 66 // Returns the widget's parent's NativeViewAccessible.
64 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 67 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
65 #endif 68 #endif
66 69
67 protected: 70 protected:
68 virtual ~RenderWidgetHostDelegate() {} 71 virtual ~RenderWidgetHostDelegate() {}
69 }; 72 };
70 73
71 } // namespace content 74 } // namespace content
72 75
73 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 76 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698