| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // IPC::Listener implementation ---------------------------------------------- | 255 // IPC::Listener implementation ---------------------------------------------- |
| 256 | 256 |
| 257 bool OnMessageReceived(const IPC::Message& msg) override; | 257 bool OnMessageReceived(const IPC::Message& msg) override; |
| 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; | |
| 266 blink::WebLayerTreeView* initializeLayerTreeView() override; | 265 blink::WebLayerTreeView* initializeLayerTreeView() override; |
| 267 | 266 |
| 268 // TODO(lfg): Remove once WebViewClient no longer inherits from | 267 // TODO(lfg): Remove once WebViewClient no longer inherits from |
| 269 // WebWidgetClient. | 268 // WebWidgetClient. |
| 270 void closeWidgetSoon() override; | 269 void closeWidgetSoon() override; |
| 271 void convertViewportToWindow(blink::WebRect* rect) override; | 270 void convertViewportToWindow(blink::WebRect* rect) override; |
| 272 void convertWindowToViewport(blink::WebFloatRect* rect) override; | 271 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
| 273 void didOverscroll(const blink::WebFloatSize& overscrollDelta, | 272 void didOverscroll(const blink::WebFloatSize& overscrollDelta, |
| 274 const blink::WebFloatSize& accumulatedOverscroll, | 273 const blink::WebFloatSize& accumulatedOverscroll, |
| 275 const blink::WebFloatPoint& positionInViewport, | 274 const blink::WebFloatPoint& positionInViewport, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 GetCompositionCharacterBoundsTest); | 479 GetCompositionCharacterBoundsTest); |
| 481 | 480 |
| 482 enum ErrorPageType { | 481 enum ErrorPageType { |
| 483 DNS_ERROR, | 482 DNS_ERROR, |
| 484 HTTP_404, | 483 HTTP_404, |
| 485 CONNECTION_ERROR, | 484 CONNECTION_ERROR, |
| 486 }; | 485 }; |
| 487 | 486 |
| 488 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 487 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 489 | 488 |
| 490 void RenderWidgetFocusChangeComplete() override; | |
| 491 bool DoesRenderWidgetHaveTouchEventHandlersAt( | 489 bool DoesRenderWidgetHaveTouchEventHandlersAt( |
| 492 const gfx::Point& point) const override; | 490 const gfx::Point& point) const override; |
| 493 bool RenderWidgetWillHandleMouseEvent( | 491 bool RenderWidgetWillHandleMouseEvent( |
| 494 const blink::WebMouseEvent& event) override; | 492 const blink::WebMouseEvent& event) override; |
| 495 | 493 |
| 496 // Old WebFrameClient implementations ---------------------------------------- | 494 // Old WebFrameClient implementations ---------------------------------------- |
| 497 | 495 |
| 498 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the | 496 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the |
| 499 // WebFrameClient. However, many implementations of WebFrameClient methods | 497 // WebFrameClient. However, many implementations of WebFrameClient methods |
| 500 // still live here and are called from RenderFrameImpl. These implementations | 498 // still live here and are called from RenderFrameImpl. These implementations |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 // --------------------------------------------------------------------------- | 834 // --------------------------------------------------------------------------- |
| 837 | 835 |
| 838 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 836 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
| 839 | 837 |
| 840 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 838 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 841 }; | 839 }; |
| 842 | 840 |
| 843 } // namespace content | 841 } // namespace content |
| 844 | 842 |
| 845 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 843 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |