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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
561 ScreenMetricsEmulationWithOriginalDSF1); | 561 ScreenMetricsEmulationWithOriginalDSF1); |
562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
563 ScreenMetricsEmulationWithOriginalDSF2); | 563 ScreenMetricsEmulationWithOriginalDSF2); |
564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
565 DecideNavigationPolicyHandlesAllTopLevel); | 565 DecideNavigationPolicyHandlesAllTopLevel); |
566 #if defined(OS_MACOSX) | 566 #if defined(OS_MACOSX) |
567 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 567 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
568 #endif | 568 #endif |
569 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); | 569 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); |
570 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); | |
571 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 570 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
572 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 571 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
573 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 572 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
574 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 573 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
575 MessageOrderInDidChangeSelection); | 574 MessageOrderInDidChangeSelection); |
576 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 575 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
577 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 576 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
578 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 577 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
579 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 578 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
580 SetZoomLevelAfterCrossProcessNavigation); | 579 SetZoomLevelAfterCrossProcessNavigation); |
581 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 580 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
582 ConverViewportToScreenWithZoomForDSF); | 581 ConverViewportToScreenWithZoomForDSF); |
583 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 582 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
584 GetCompositionCharacterBoundsTest); | 583 GetCompositionCharacterBoundsTest); |
585 | 584 |
586 typedef std::map<GURL, double> HostZoomLevels; | |
587 | |
588 enum ErrorPageType { | 585 enum ErrorPageType { |
589 DNS_ERROR, | 586 DNS_ERROR, |
590 HTTP_404, | 587 HTTP_404, |
591 CONNECTION_ERROR, | 588 CONNECTION_ERROR, |
592 }; | 589 }; |
593 | 590 |
594 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 591 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
595 | 592 |
596 void RenderWidgetDidSetColorProfile( | 593 void RenderWidgetDidSetColorProfile( |
597 const std::vector<char>& color_profile) override; | 594 const std::vector<char>& color_profile) override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); | 677 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); |
681 void OnResetPageEncodingToDefault(); | 678 void OnResetPageEncodingToDefault(); |
682 void OnSetActive(bool active); | 679 void OnSetActive(bool active); |
683 void OnSetBackgroundOpaque(bool opaque); | 680 void OnSetBackgroundOpaque(bool opaque); |
684 void OnExitFullscreen(); | 681 void OnExitFullscreen(); |
685 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 682 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
686 void OnSetInitialFocus(bool reverse); | 683 void OnSetInitialFocus(bool reverse); |
687 void OnSetPageEncoding(const std::string& encoding_name); | 684 void OnSetPageEncoding(const std::string& encoding_name); |
688 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 685 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
689 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 686 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
690 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | |
691 void OnSuppressDialogsUntilSwapOut(); | 687 void OnSuppressDialogsUntilSwapOut(); |
692 void OnThemeChanged(); | 688 void OnThemeChanged(); |
693 void OnUpdateTargetURLAck(); | 689 void OnUpdateTargetURLAck(); |
694 void OnUpdateWebPreferences(const WebPreferences& prefs); | 690 void OnUpdateWebPreferences(const WebPreferences& prefs); |
695 void OnSetPageScale(float page_scale_factor); | 691 void OnSetPageScale(float page_scale_factor); |
696 void OnZoom(PageZoom zoom); | 692 void OnZoom(PageZoom zoom); |
697 void OnForceRedraw(int request_id); | 693 void OnForceRedraw(int request_id); |
698 void OnSelectWordAroundCaret(); | 694 void OnSelectWordAroundCaret(); |
699 #if defined(OS_ANDROID) | 695 #if defined(OS_ANDROID) |
700 void OnUndoScrollFocusedEditableNodeIntoRect(); | 696 void OnUndoScrollFocusedEditableNodeIntoRect(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 // --------------------------------------------------------------------------- | 774 // --------------------------------------------------------------------------- |
779 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 775 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
780 // it in the same order in the .cc file as it was in the header. | 776 // it in the same order in the .cc file as it was in the header. |
781 // --------------------------------------------------------------------------- | 777 // --------------------------------------------------------------------------- |
782 | 778 |
783 // Settings ------------------------------------------------------------------ | 779 // Settings ------------------------------------------------------------------ |
784 | 780 |
785 WebPreferences webkit_preferences_; | 781 WebPreferences webkit_preferences_; |
786 RendererPreferences renderer_preferences_; | 782 RendererPreferences renderer_preferences_; |
787 | 783 |
788 HostZoomLevels host_zoom_levels_; | |
789 | |
790 // Whether content state (such as form state, scroll position and page | 784 // Whether content state (such as form state, scroll position and page |
791 // contents) should be sent to the browser immediately. This is normally | 785 // contents) should be sent to the browser immediately. This is normally |
792 // false, but set to true by some tests. | 786 // false, but set to true by some tests. |
793 bool send_content_state_immediately_; | 787 bool send_content_state_immediately_; |
794 | 788 |
795 // Bitwise-ORed set of extra bindings that have been enabled. See | 789 // Bitwise-ORed set of extra bindings that have been enabled. See |
796 // BindingsPolicy for details. | 790 // BindingsPolicy for details. |
797 int enabled_bindings_; | 791 int enabled_bindings_; |
798 | 792 |
799 // If true, we send IPC messages when |preferred_size_| changes. | 793 // If true, we send IPC messages when |preferred_size_| changes. |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 // use the Observer interface to filter IPC messages and receive frame change | 1019 // use the Observer interface to filter IPC messages and receive frame change |
1026 // notifications. | 1020 // notifications. |
1027 // --------------------------------------------------------------------------- | 1021 // --------------------------------------------------------------------------- |
1028 | 1022 |
1029 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1023 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1030 }; | 1024 }; |
1031 | 1025 |
1032 } // namespace content | 1026 } // namespace content |
1033 | 1027 |
1034 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1028 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |