| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 502 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 503 ScreenMetricsEmulationWithOriginalDSF1); | 503 ScreenMetricsEmulationWithOriginalDSF1); |
| 504 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 504 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 505 ScreenMetricsEmulationWithOriginalDSF2); | 505 ScreenMetricsEmulationWithOriginalDSF2); |
| 506 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 506 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 507 DecideNavigationPolicyHandlesAllTopLevel); | 507 DecideNavigationPolicyHandlesAllTopLevel); |
| 508 #if defined(OS_MACOSX) | 508 #if defined(OS_MACOSX) |
| 509 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 509 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
| 510 #endif | 510 #endif |
| 511 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); | 511 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); |
| 512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); |
| 512 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
| 513 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 514 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
| 514 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
| 515 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 516 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 516 MessageOrderInDidChangeSelection); | 517 MessageOrderInDidChangeSelection); |
| 517 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 518 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
| 518 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 519 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
| 519 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 520 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
| 520 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 521 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 521 SetZoomLevelAfterCrossProcessNavigation); | 522 SetZoomLevelAfterCrossProcessNavigation); |
| 522 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 523 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 523 ConverViewportToScreenWithZoomForDSF); | 524 ConverViewportToScreenWithZoomForDSF); |
| 524 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 525 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 525 GetCompositionCharacterBoundsTest); | 526 GetCompositionCharacterBoundsTest); |
| 526 | 527 |
| 528 typedef std::map<GURL, double> HostZoomLevels; |
| 529 |
| 527 enum ErrorPageType { | 530 enum ErrorPageType { |
| 528 DNS_ERROR, | 531 DNS_ERROR, |
| 529 HTTP_404, | 532 HTTP_404, |
| 530 CONNECTION_ERROR, | 533 CONNECTION_ERROR, |
| 531 }; | 534 }; |
| 532 | 535 |
| 533 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 536 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 534 | 537 |
| 535 void RenderWidgetDidSetColorProfile( | 538 void RenderWidgetDidSetColorProfile( |
| 536 const std::vector<char>& color_profile) override; | 539 const std::vector<char>& color_profile) override; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); | 620 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); |
| 618 void OnResetPageEncodingToDefault(); | 621 void OnResetPageEncodingToDefault(); |
| 619 void OnSetActive(bool active); | 622 void OnSetActive(bool active); |
| 620 void OnSetBackgroundOpaque(bool opaque); | 623 void OnSetBackgroundOpaque(bool opaque); |
| 621 void OnExitFullscreen(); | 624 void OnExitFullscreen(); |
| 622 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 625 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
| 623 void OnSetInitialFocus(bool reverse); | 626 void OnSetInitialFocus(bool reverse); |
| 624 void OnSetPageEncoding(const std::string& encoding_name); | 627 void OnSetPageEncoding(const std::string& encoding_name); |
| 625 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 628 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 626 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 629 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 630 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 627 void OnSuppressDialogsUntilSwapOut(); | 631 void OnSuppressDialogsUntilSwapOut(); |
| 628 void OnThemeChanged(); | 632 void OnThemeChanged(); |
| 629 void OnUpdateTargetURLAck(); | 633 void OnUpdateTargetURLAck(); |
| 630 void OnUpdateWebPreferences(const WebPreferences& prefs); | 634 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 631 void OnSetPageScale(float page_scale_factor); | 635 void OnSetPageScale(float page_scale_factor); |
| 632 void OnZoom(PageZoom zoom); | 636 void OnZoom(PageZoom zoom); |
| 633 void OnForceRedraw(int request_id); | 637 void OnForceRedraw(int request_id); |
| 634 void OnSelectWordAroundCaret(); | 638 void OnSelectWordAroundCaret(); |
| 635 #if defined(OS_ANDROID) | 639 #if defined(OS_ANDROID) |
| 636 void OnUndoScrollFocusedEditableNodeIntoRect(); | 640 void OnUndoScrollFocusedEditableNodeIntoRect(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 // --------------------------------------------------------------------------- | 710 // --------------------------------------------------------------------------- |
| 707 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 711 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
| 708 // it in the same order in the .cc file as it was in the header. | 712 // it in the same order in the .cc file as it was in the header. |
| 709 // --------------------------------------------------------------------------- | 713 // --------------------------------------------------------------------------- |
| 710 | 714 |
| 711 // Settings ------------------------------------------------------------------ | 715 // Settings ------------------------------------------------------------------ |
| 712 | 716 |
| 713 WebPreferences webkit_preferences_; | 717 WebPreferences webkit_preferences_; |
| 714 RendererPreferences renderer_preferences_; | 718 RendererPreferences renderer_preferences_; |
| 715 | 719 |
| 720 HostZoomLevels host_zoom_levels_; |
| 721 |
| 716 // Whether content state (such as form state, scroll position and page | 722 // Whether content state (such as form state, scroll position and page |
| 717 // contents) should be sent to the browser immediately. This is normally | 723 // contents) should be sent to the browser immediately. This is normally |
| 718 // false, but set to true by some tests. | 724 // false, but set to true by some tests. |
| 719 bool send_content_state_immediately_; | 725 bool send_content_state_immediately_; |
| 720 | 726 |
| 721 // Bitwise-ORed set of extra bindings that have been enabled. See | 727 // Bitwise-ORed set of extra bindings that have been enabled. See |
| 722 // BindingsPolicy for details. | 728 // BindingsPolicy for details. |
| 723 int enabled_bindings_; | 729 int enabled_bindings_; |
| 724 | 730 |
| 725 // If true, we send IPC messages when |preferred_size_| changes. | 731 // If true, we send IPC messages when |preferred_size_| changes. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 // use the Observer interface to filter IPC messages and receive frame change | 924 // use the Observer interface to filter IPC messages and receive frame change |
| 919 // notifications. | 925 // notifications. |
| 920 // --------------------------------------------------------------------------- | 926 // --------------------------------------------------------------------------- |
| 921 | 927 |
| 922 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 928 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 923 }; | 929 }; |
| 924 | 930 |
| 925 } // namespace content | 931 } // namespace content |
| 926 | 932 |
| 927 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 933 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |