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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 2762553002: Add canUpdateLayout & canHandleGestureEvent to WebViewClient. (Closed)
Patch Set: Fix merge issues. Created 3 years, 8 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
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | content/renderer/render_view_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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 // blink::WebWidgetClient implementation ------------------------------------ 259 // blink::WebWidgetClient implementation ------------------------------------
260 260
261 // Most methods are handled by RenderWidget. 261 // Most methods are handled by RenderWidget.
262 void show(blink::WebNavigationPolicy policy) override; 262 void show(blink::WebNavigationPolicy policy) override;
263 void didHandleGestureEvent(const blink::WebGestureEvent& event, 263 void didHandleGestureEvent(const blink::WebGestureEvent& event,
264 bool event_cancelled) override; 264 bool event_cancelled) override;
265 void onMouseDown(const blink::WebNode& mouse_down_node) override; 265 void onMouseDown(const blink::WebNode& mouse_down_node) override;
266 blink::WebLayerTreeView* initializeLayerTreeView() override; 266 blink::WebLayerTreeView* initializeLayerTreeView() override;
267 267
268 bool canHandleGestureEvent() override;
269 bool canUpdateLayout() override;
270
268 // TODO(lfg): Remove once WebViewClient no longer inherits from 271 // TODO(lfg): Remove once WebViewClient no longer inherits from
269 // WebWidgetClient. 272 // WebWidgetClient.
270 void closeWidgetSoon() override; 273 void closeWidgetSoon() override;
271 void convertViewportToWindow(blink::WebRect* rect) override; 274 void convertViewportToWindow(blink::WebRect* rect) override;
272 void convertWindowToViewport(blink::WebFloatRect* rect) override; 275 void convertWindowToViewport(blink::WebFloatRect* rect) override;
273 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 276 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
274 const blink::WebFloatSize& accumulatedOverscroll, 277 const blink::WebFloatSize& accumulatedOverscroll,
275 const blink::WebFloatPoint& positionInViewport, 278 const blink::WebFloatPoint& positionInViewport,
276 const blink::WebFloatSize& velocityInViewport) override; 279 const blink::WebFloatSize& velocityInViewport) override;
277 void hasTouchEventHandlers(bool has_handlers) override; 280 void hasTouchEventHandlers(bool has_handlers) override;
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 // --------------------------------------------------------------------------- 839 // ---------------------------------------------------------------------------
837 840
838 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; 841 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_;
839 842
840 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 843 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
841 }; 844 };
842 845
843 } // namespace content 846 } // namespace content
844 847
845 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 848 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698