| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 537 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 538 ScreenMetricsEmulationWithOriginalDSF1); | 538 ScreenMetricsEmulationWithOriginalDSF1); |
| 539 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 539 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 540 ScreenMetricsEmulationWithOriginalDSF2); | 540 ScreenMetricsEmulationWithOriginalDSF2); |
| 541 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 541 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 542 DecideNavigationPolicyHandlesAllTopLevel); | 542 DecideNavigationPolicyHandlesAllTopLevel); |
| 543 #if defined(OS_MACOSX) | 543 #if defined(OS_MACOSX) |
| 544 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 544 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
| 545 #endif | 545 #endif |
| 546 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); | 546 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); |
| 547 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); | |
| 548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 547 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
| 549 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
| 550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 549 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
| 551 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 552 MessageOrderInDidChangeSelection); | 551 MessageOrderInDidChangeSelection); |
| 553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 552 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
| 554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
| 555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
| 556 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 557 SetZoomLevelAfterCrossProcessNavigation); | 556 SetZoomLevelAfterCrossProcessNavigation); |
| 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 557 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 559 ConverViewportToScreenWithZoomForDSF); | 558 ConverViewportToScreenWithZoomForDSF); |
| 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 561 GetCompositionCharacterBoundsTest); | 560 GetCompositionCharacterBoundsTest); |
| 562 | 561 |
| 563 typedef std::map<GURL, double> HostZoomLevels; | |
| 564 | |
| 565 enum ErrorPageType { | 562 enum ErrorPageType { |
| 566 DNS_ERROR, | 563 DNS_ERROR, |
| 567 HTTP_404, | 564 HTTP_404, |
| 568 CONNECTION_ERROR, | 565 CONNECTION_ERROR, |
| 569 }; | 566 }; |
| 570 | 567 |
| 571 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 568 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 572 | 569 |
| 573 void RenderWidgetDidSetColorProfile( | 570 void RenderWidgetDidSetColorProfile( |
| 574 const std::vector<char>& color_profile) override; | 571 const std::vector<char>& color_profile) override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); | 653 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); |
| 657 void OnResetPageEncodingToDefault(); | 654 void OnResetPageEncodingToDefault(); |
| 658 void OnSetActive(bool active); | 655 void OnSetActive(bool active); |
| 659 void OnSetBackgroundOpaque(bool opaque); | 656 void OnSetBackgroundOpaque(bool opaque); |
| 660 void OnExitFullscreen(); | 657 void OnExitFullscreen(); |
| 661 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 658 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
| 662 void OnSetInitialFocus(bool reverse); | 659 void OnSetInitialFocus(bool reverse); |
| 663 void OnSetPageEncoding(const std::string& encoding_name); | 660 void OnSetPageEncoding(const std::string& encoding_name); |
| 664 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 661 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 665 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 662 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 666 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | |
| 667 void OnSuppressDialogsUntilSwapOut(); | 663 void OnSuppressDialogsUntilSwapOut(); |
| 668 void OnThemeChanged(); | 664 void OnThemeChanged(); |
| 669 void OnUpdateTargetURLAck(); | 665 void OnUpdateTargetURLAck(); |
| 670 void OnUpdateWebPreferences(const WebPreferences& prefs); | 666 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 671 void OnSetPageScale(float page_scale_factor); | 667 void OnSetPageScale(float page_scale_factor); |
| 672 void OnZoom(PageZoom zoom); | 668 void OnZoom(PageZoom zoom); |
| 673 void OnForceRedraw(int request_id); | 669 void OnForceRedraw(int request_id); |
| 674 void OnSelectWordAroundCaret(); | 670 void OnSelectWordAroundCaret(); |
| 675 #if defined(OS_ANDROID) | 671 #if defined(OS_ANDROID) |
| 676 void OnUndoScrollFocusedEditableNodeIntoRect(); | 672 void OnUndoScrollFocusedEditableNodeIntoRect(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 // --------------------------------------------------------------------------- | 750 // --------------------------------------------------------------------------- |
| 755 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 751 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
| 756 // it in the same order in the .cc file as it was in the header. | 752 // it in the same order in the .cc file as it was in the header. |
| 757 // --------------------------------------------------------------------------- | 753 // --------------------------------------------------------------------------- |
| 758 | 754 |
| 759 // Settings ------------------------------------------------------------------ | 755 // Settings ------------------------------------------------------------------ |
| 760 | 756 |
| 761 WebPreferences webkit_preferences_; | 757 WebPreferences webkit_preferences_; |
| 762 RendererPreferences renderer_preferences_; | 758 RendererPreferences renderer_preferences_; |
| 763 | 759 |
| 764 HostZoomLevels host_zoom_levels_; | |
| 765 | |
| 766 // Whether content state (such as form state, scroll position and page | 760 // Whether content state (such as form state, scroll position and page |
| 767 // contents) should be sent to the browser immediately. This is normally | 761 // contents) should be sent to the browser immediately. This is normally |
| 768 // false, but set to true by some tests. | 762 // false, but set to true by some tests. |
| 769 bool send_content_state_immediately_; | 763 bool send_content_state_immediately_; |
| 770 | 764 |
| 771 // Bitwise-ORed set of extra bindings that have been enabled. See | 765 // Bitwise-ORed set of extra bindings that have been enabled. See |
| 772 // BindingsPolicy for details. | 766 // BindingsPolicy for details. |
| 773 int enabled_bindings_; | 767 int enabled_bindings_; |
| 774 | 768 |
| 775 // If true, we send IPC messages when |preferred_size_| changes. | 769 // If true, we send IPC messages when |preferred_size_| changes. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 // use the Observer interface to filter IPC messages and receive frame change | 973 // use the Observer interface to filter IPC messages and receive frame change |
| 980 // notifications. | 974 // notifications. |
| 981 // --------------------------------------------------------------------------- | 975 // --------------------------------------------------------------------------- |
| 982 | 976 |
| 983 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 977 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 984 }; | 978 }; |
| 985 | 979 |
| 986 } // namespace content | 980 } // namespace content |
| 987 | 981 |
| 988 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 982 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |