| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 // Most methods are handled by RenderWidget. | 322 // Most methods are handled by RenderWidget. |
| 323 virtual void didFocus(); | 323 virtual void didFocus(); |
| 324 virtual void didBlur(); | 324 virtual void didBlur(); |
| 325 virtual void show(blink::WebNavigationPolicy policy); | 325 virtual void show(blink::WebNavigationPolicy policy); |
| 326 virtual bool requestPointerLock(); | 326 virtual bool requestPointerLock(); |
| 327 virtual void requestPointerUnlock(); | 327 virtual void requestPointerUnlock(); |
| 328 virtual bool isPointerLocked(); | 328 virtual bool isPointerLocked(); |
| 329 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, | 329 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 330 bool event_cancelled) override; | 330 bool event_cancelled) override; |
| 331 virtual void onMouseDown(const blink::WebNode& mouse_down_node) override; |
| 332 |
| 331 virtual void initializeLayerTreeView() override; | 333 virtual void initializeLayerTreeView() override; |
| 332 | 334 |
| 333 // blink::WebViewClient implementation -------------------------------------- | 335 // blink::WebViewClient implementation -------------------------------------- |
| 334 | 336 |
| 335 virtual blink::WebView* createView(blink::WebLocalFrame* creator, | 337 virtual blink::WebView* createView(blink::WebLocalFrame* creator, |
| 336 const blink::WebURLRequest& request, | 338 const blink::WebURLRequest& request, |
| 337 const blink::WebWindowFeatures& features, | 339 const blink::WebWindowFeatures& features, |
| 338 const blink::WebString& frame_name, | 340 const blink::WebString& frame_name, |
| 339 blink::WebNavigationPolicy policy, | 341 blink::WebNavigationPolicy policy, |
| 340 bool suppress_opener); | 342 bool suppress_opener); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 protected: | 458 protected: |
| 457 // RenderWidget overrides: | 459 // RenderWidget overrides: |
| 458 void Close() override; | 460 void Close() override; |
| 459 void OnResize(const ViewMsg_Resize_Params& params) override; | 461 void OnResize(const ViewMsg_Resize_Params& params) override; |
| 460 void DidInitiatePaint() override; | 462 void DidInitiatePaint() override; |
| 461 void DidFlushPaint() override; | 463 void DidFlushPaint() override; |
| 462 gfx::Vector2d GetScrollOffset() override; | 464 gfx::Vector2d GetScrollOffset() override; |
| 463 void DidHandleKeyEvent() override; | 465 void DidHandleKeyEvent() override; |
| 464 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 466 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
| 465 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 467 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
| 466 void DidHandleMouseEvent(const blink::WebMouseEvent& event) override; | |
| 467 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; | 468 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; |
| 468 void OnSetFocus(bool enable) override; | 469 void OnSetFocus(bool enable) override; |
| 469 void OnWasHidden() override; | 470 void OnWasHidden() override; |
| 470 void OnWasShown(bool needs_repainting, | 471 void OnWasShown(bool needs_repainting, |
| 471 const ui::LatencyInfo& latency_info) override; | 472 const ui::LatencyInfo& latency_info) override; |
| 472 GURL GetURLForGraphicsContext3D() override; | 473 GURL GetURLForGraphicsContext3D() override; |
| 473 void OnImeSetComposition( | 474 void OnImeSetComposition( |
| 474 const base::string16& text, | 475 const base::string16& text, |
| 475 const std::vector<blink::WebCompositionUnderline>& underlines, | 476 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 476 int selection_start, | 477 int selection_start, |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 // use the Observer interface to filter IPC messages and receive frame change | 1020 // use the Observer interface to filter IPC messages and receive frame change |
| 1020 // notifications. | 1021 // notifications. |
| 1021 // --------------------------------------------------------------------------- | 1022 // --------------------------------------------------------------------------- |
| 1022 | 1023 |
| 1023 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1024 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1024 }; | 1025 }; |
| 1025 | 1026 |
| 1026 } // namespace content | 1027 } // namespace content |
| 1027 | 1028 |
| 1028 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1029 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |