| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 void SetEditCommandForNextKeyEvent(const std::string& name, | 443 void SetEditCommandForNextKeyEvent(const std::string& name, |
| 444 const std::string& value) override; | 444 const std::string& value) override; |
| 445 void ClearEditCommands() override; | 445 void ClearEditCommands() override; |
| 446 SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const override; | 446 SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const override; |
| 447 const std::string& GetAcceptLanguages() const override; | 447 const std::string& GetAcceptLanguages() const override; |
| 448 #if defined(OS_ANDROID) | 448 #if defined(OS_ANDROID) |
| 449 void UpdateTopControlsState(TopControlsState constraints, | 449 void UpdateTopControlsState(TopControlsState constraints, |
| 450 TopControlsState current, | 450 TopControlsState current, |
| 451 bool animate) override; | 451 bool animate) override; |
| 452 #endif | 452 #endif |
| 453 void convertViewportToWindow(blink::WebRect* rect) override; |
| 454 |
| 453 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } | 455 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
| 454 | 456 |
| 455 // Please do not add your stuff randomly to the end here. If there is an | 457 // Please do not add your stuff randomly to the end here. If there is an |
| 456 // appropriate section, add it there. If not, there are some random functions | 458 // appropriate section, add it there. If not, there are some random functions |
| 457 // nearer to the top you can add it to. | 459 // nearer to the top you can add it to. |
| 458 | 460 |
| 459 protected: | 461 protected: |
| 460 // RenderWidget overrides: | 462 // RenderWidget overrides: |
| 461 void CloseForFrame() override; | 463 void CloseForFrame() override; |
| 462 void Close() override; | 464 void Close() override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 void SetScreenMetricsEmulationParameters( | 508 void SetScreenMetricsEmulationParameters( |
| 507 bool enabled, | 509 bool enabled, |
| 508 const blink::WebDeviceEmulationParams& params) override; | 510 const blink::WebDeviceEmulationParams& params) override; |
| 509 | 511 |
| 510 // Do not delete directly. This class is reference counted. | 512 // Do not delete directly. This class is reference counted. |
| 511 ~RenderViewImpl() override; | 513 ~RenderViewImpl() override; |
| 512 | 514 |
| 513 private: | 515 private: |
| 514 // For unit tests. | 516 // For unit tests. |
| 515 friend class DevToolsAgentTest; | 517 friend class DevToolsAgentTest; |
| 518 friend class RenderViewImplScaleFactorTest; |
| 516 friend class RenderViewImplTest; | 519 friend class RenderViewImplTest; |
| 517 friend class RenderViewTest; | 520 friend class RenderViewTest; |
| 518 friend class RendererAccessibilityTest; | 521 friend class RendererAccessibilityTest; |
| 519 | 522 |
| 520 // TODO(nasko): Temporarily friend RenderFrameImpl, so we don't duplicate | 523 // TODO(nasko): Temporarily friend RenderFrameImpl, so we don't duplicate |
| 521 // utility functions needed in both classes, while we move frame specific | 524 // utility functions needed in both classes, while we move frame specific |
| 522 // code away from this class. | 525 // code away from this class. |
| 523 friend class RenderFrameImpl; | 526 friend class RenderFrameImpl; |
| 524 | 527 |
| 525 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameMessageAfterDetach); | 528 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameMessageAfterDetach); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); | 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); |
| 556 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); | 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); |
| 557 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
| 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 561 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
| 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
| 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 561 MessageOrderInDidChangeSelection); | 564 MessageOrderInDidChangeSelection); |
| 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 565 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
| 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 566 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
| 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 567 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
| 568 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 569 ConverViewportToScreenWithZoomForDSF); |
| 565 | 570 |
| 566 typedef std::map<GURL, double> HostZoomLevels; | 571 typedef std::map<GURL, double> HostZoomLevels; |
| 567 | 572 |
| 568 enum ErrorPageType { | 573 enum ErrorPageType { |
| 569 DNS_ERROR, | 574 DNS_ERROR, |
| 570 HTTP_404, | 575 HTTP_404, |
| 571 CONNECTION_ERROR, | 576 CONNECTION_ERROR, |
| 572 }; | 577 }; |
| 573 | 578 |
| 574 // Old WebFrameClient implementations ---------------------------------------- | 579 // Old WebFrameClient implementations ---------------------------------------- |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 // use the Observer interface to filter IPC messages and receive frame change | 1036 // use the Observer interface to filter IPC messages and receive frame change |
| 1032 // notifications. | 1037 // notifications. |
| 1033 // --------------------------------------------------------------------------- | 1038 // --------------------------------------------------------------------------- |
| 1034 | 1039 |
| 1035 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1040 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1036 }; | 1041 }; |
| 1037 | 1042 |
| 1038 } // namespace content | 1043 } // namespace content |
| 1039 | 1044 |
| 1040 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1045 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |