| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // IPC::Listener implementation ---------------------------------------------- | 250 // IPC::Listener implementation ---------------------------------------------- |
| 251 | 251 |
| 252 bool OnMessageReceived(const IPC::Message& msg) override; | 252 bool OnMessageReceived(const IPC::Message& msg) override; |
| 253 | 253 |
| 254 // blink::WebWidgetClient implementation ------------------------------------ | 254 // blink::WebWidgetClient implementation ------------------------------------ |
| 255 | 255 |
| 256 // Most methods are handled by RenderWidget. | 256 // Most methods are handled by RenderWidget. |
| 257 void Show(blink::WebNavigationPolicy policy) override; | 257 void Show(blink::WebNavigationPolicy policy) override; |
| 258 void DidHandleGestureEvent(const blink::WebGestureEvent& event, | 258 void DidHandleGestureEvent(const blink::WebGestureEvent& event, |
| 259 bool event_cancelled) override; | 259 bool event_cancelled) override; |
| 260 void OnMouseDown(const blink::WebNode& mouse_down_node) override; | |
| 261 blink::WebLayerTreeView* InitializeLayerTreeView() override; | 260 blink::WebLayerTreeView* InitializeLayerTreeView() override; |
| 262 | 261 |
| 263 bool CanHandleGestureEvent() override; | 262 bool CanHandleGestureEvent() override; |
| 264 bool CanUpdateLayout() override; | 263 bool CanUpdateLayout() override; |
| 265 | 264 |
| 266 // TODO(lfg): Remove once WebViewClient no longer inherits from | 265 // TODO(lfg): Remove once WebViewClient no longer inherits from |
| 267 // WebWidgetClient. | 266 // WebWidgetClient. |
| 268 void CloseWidgetSoon() override; | 267 void CloseWidgetSoon() override; |
| 269 void ConvertViewportToWindow(blink::WebRect* rect) override; | 268 void ConvertViewportToWindow(blink::WebRect* rect) override; |
| 270 void ConvertWindowToViewport(blink::WebFloatRect* rect) override; | 269 void ConvertWindowToViewport(blink::WebFloatRect* rect) override; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 GetCompositionCharacterBoundsTest); | 470 GetCompositionCharacterBoundsTest); |
| 472 | 471 |
| 473 enum ErrorPageType { | 472 enum ErrorPageType { |
| 474 DNS_ERROR, | 473 DNS_ERROR, |
| 475 HTTP_404, | 474 HTTP_404, |
| 476 CONNECTION_ERROR, | 475 CONNECTION_ERROR, |
| 477 }; | 476 }; |
| 478 | 477 |
| 479 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 478 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 480 | 479 |
| 481 void RenderWidgetFocusChangeComplete() override; | |
| 482 bool DoesRenderWidgetHaveTouchEventHandlersAt( | 480 bool DoesRenderWidgetHaveTouchEventHandlersAt( |
| 483 const gfx::Point& point) const override; | 481 const gfx::Point& point) const override; |
| 484 bool RenderWidgetWillHandleMouseEvent( | 482 bool RenderWidgetWillHandleMouseEvent( |
| 485 const blink::WebMouseEvent& event) override; | 483 const blink::WebMouseEvent& event) override; |
| 486 | 484 |
| 487 // Old WebFrameClient implementations ---------------------------------------- | 485 // Old WebFrameClient implementations ---------------------------------------- |
| 488 | 486 |
| 489 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the | 487 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the |
| 490 // WebFrameClient. However, many implementations of WebFrameClient methods | 488 // WebFrameClient. However, many implementations of WebFrameClient methods |
| 491 // still live here and are called from RenderFrameImpl. These implementations | 489 // still live here and are called from RenderFrameImpl. These implementations |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 // --------------------------------------------------------------------------- | 821 // --------------------------------------------------------------------------- |
| 824 | 822 |
| 825 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 823 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
| 826 | 824 |
| 827 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 825 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 828 }; | 826 }; |
| 829 | 827 |
| 830 } // namespace content | 828 } // namespace content |
| 831 | 829 |
| 832 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 830 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |