Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 // Most methods are handled by RenderWidget. | 286 // Most methods are handled by RenderWidget. |
| 287 void didFocus() override; | 287 void didFocus() override; |
| 288 void show(blink::WebNavigationPolicy policy) override; | 288 void show(blink::WebNavigationPolicy policy) override; |
| 289 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 289 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 290 bool event_cancelled) override; | 290 bool event_cancelled) override; |
| 291 void onMouseDown(const blink::WebNode& mouse_down_node) override; | 291 void onMouseDown(const blink::WebNode& mouse_down_node) override; |
| 292 void initializeLayerTreeView() override; | 292 void initializeLayerTreeView() override; |
| 293 | 293 |
| 294 // TODO(lfg): Remove once WebViewClient no longer inherits from | 294 // TODO(lfg): Remove once WebViewClient no longer inherits from |
| 295 // WebWidgetClient. | 295 // WebWidgetClient. |
| 296 bool allowsBrokenNullLayerTreeView() const override; | |
| 297 void closeWidgetSoon() override; | 296 void closeWidgetSoon() override; |
| 298 void convertViewportToWindow(blink::WebRect* rect) override; | 297 void convertViewportToWindow(blink::WebRect* rect) override; |
| 299 void convertWindowToViewport(blink::WebFloatRect* rect) override; | 298 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
| 300 void didAutoResize(const blink::WebSize& newSize) override; | 299 void didAutoResize(const blink::WebSize& newSize) override; |
| 301 void didChangeCursor(const blink::WebCursorInfo& info) override; | 300 void didChangeCursor(const blink::WebCursorInfo& info) override; |
| 302 void didInvalidateRect(const blink::WebRect& rect) override; | 301 void didInvalidateRect(const blink::WebRect& rect) override; |
| 303 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; | 302 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; |
| 304 void didOverscroll(const blink::WebFloatSize& overscrollDelta, | 303 void didOverscroll(const blink::WebFloatSize& overscrollDelta, |
| 305 const blink::WebFloatSize& accumulatedOverscroll, | 304 const blink::WebFloatSize& accumulatedOverscroll, |
| 306 const blink::WebFloatPoint& positionInViewport, | 305 const blink::WebFloatPoint& positionInViewport, |
| 307 const blink::WebFloatSize& velocityInViewport) override; | 306 const blink::WebFloatSize& velocityInViewport) override; |
| 308 void didUpdateTextOfFocusedElementByNonUserInput() override; | 307 void didUpdateTextOfFocusedElementByNonUserInput() override; |
| 309 void hasTouchEventHandlers(bool has_handlers) override; | 308 void hasTouchEventHandlers(bool has_handlers) override; |
| 310 blink::WebLayerTreeView* layerTreeView() override; | 309 blink::WebLayerTreeView* layerTreeView() override; |
| 311 void resetInputMethod() override; | 310 void resetInputMethod() override; |
| 312 blink::WebRect rootWindowRect() override; | 311 blink::WebRect rootWindowRect() override; |
| 313 void scheduleAnimation() override; | 312 void scheduleAnimation() override; |
| 314 blink::WebScreenInfo screenInfo() override; | 313 blink::WebScreenInfo screenInfo() override; |
| 315 void setToolTipText(const blink::WebString&, | 314 void setToolTipText(const blink::WebString&, |
| 316 blink::WebTextDirection hint) override; | 315 blink::WebTextDirection hint) override; |
| 317 void setTouchAction(blink::WebTouchAction touchAction) override; | 316 void setTouchAction(blink::WebTouchAction touchAction) override; |
| 318 void setWindowRect(const blink::WebRect& rect) override; | 317 void setWindowRect(const blink::WebRect& rect) override; |
| 319 void showImeIfNeeded() override; | 318 void showImeIfNeeded() override; |
| 320 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tappedPosition, | 319 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tappedPosition, |
| 321 const blink::WebNode& tappedNode, | 320 const blink::WebNode& tappedNode, |
| 322 bool pageChanged) override; | 321 bool pageChanged) override; |
| 323 blink::WebRect windowRect() override; | 322 blink::WebRect windowRect() override; |
| 324 blink::WebRect windowResizerRect() override; | 323 blink::WebRect windowResizerRect() override; |
| 324 blink::WebWidgetClient* widgetClient() override; | |
|
kenrb
2016/07/07 14:57:38
Is this override necessary because of the diamond-
lfg
2016/07/07 15:16:43
Yes, you are right. Once all these methods are spl
| |
| 325 | 325 |
| 326 // blink::WebViewClient implementation -------------------------------------- | 326 // blink::WebViewClient implementation -------------------------------------- |
| 327 | 327 |
| 328 blink::WebView* createView(blink::WebLocalFrame* creator, | 328 blink::WebView* createView(blink::WebLocalFrame* creator, |
| 329 const blink::WebURLRequest& request, | 329 const blink::WebURLRequest& request, |
| 330 const blink::WebWindowFeatures& features, | 330 const blink::WebWindowFeatures& features, |
| 331 const blink::WebString& frame_name, | 331 const blink::WebString& frame_name, |
| 332 blink::WebNavigationPolicy policy, | 332 blink::WebNavigationPolicy policy, |
| 333 bool suppress_opener) override; | 333 bool suppress_opener) override; |
| 334 blink::WebWidget* createPopupMenu(blink::WebPopupType popup_type) override; | 334 blink::WebWidget* createPopupMenu(blink::WebPopupType popup_type) override; |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 941 // use the Observer interface to filter IPC messages and receive frame change | 941 // use the Observer interface to filter IPC messages and receive frame change |
| 942 // notifications. | 942 // notifications. |
| 943 // --------------------------------------------------------------------------- | 943 // --------------------------------------------------------------------------- |
| 944 | 944 |
| 945 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 945 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 946 }; | 946 }; |
| 947 | 947 |
| 948 } // namespace content | 948 } // namespace content |
| 949 | 949 |
| 950 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 950 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |