| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 485 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 486 ScreenMetricsEmulationWithOriginalDSF1); | 486 ScreenMetricsEmulationWithOriginalDSF1); |
| 487 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 487 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 488 ScreenMetricsEmulationWithOriginalDSF2); | 488 ScreenMetricsEmulationWithOriginalDSF2); |
| 489 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 489 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 490 DecideNavigationPolicyHandlesAllTopLevel); | 490 DecideNavigationPolicyHandlesAllTopLevel); |
| 491 #if defined(OS_MACOSX) | 491 #if defined(OS_MACOSX) |
| 492 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 492 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
| 493 #endif | 493 #endif |
| 494 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); | 494 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); |
| 495 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); | |
| 496 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 495 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
| 497 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 496 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
| 498 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 497 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
| 499 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 498 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 500 MessageOrderInDidChangeSelection); | 499 MessageOrderInDidChangeSelection); |
| 501 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 500 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
| 502 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 501 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
| 503 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 502 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
| 504 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 503 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 505 SetZoomLevelAfterCrossProcessNavigation); | 504 SetZoomLevelAfterCrossProcessNavigation); |
| 506 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 505 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 507 ConverViewportToScreenWithZoomForDSF); | 506 ConverViewportToScreenWithZoomForDSF); |
| 508 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 507 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 509 GetCompositionCharacterBoundsTest); | 508 GetCompositionCharacterBoundsTest); |
| 510 | 509 |
| 511 typedef std::map<GURL, double> HostZoomLevels; | |
| 512 | |
| 513 enum ErrorPageType { | 510 enum ErrorPageType { |
| 514 DNS_ERROR, | 511 DNS_ERROR, |
| 515 HTTP_404, | 512 HTTP_404, |
| 516 CONNECTION_ERROR, | 513 CONNECTION_ERROR, |
| 517 }; | 514 }; |
| 518 | 515 |
| 519 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 516 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 520 | 517 |
| 521 void RenderWidgetDidSetColorProfile( | 518 void RenderWidgetDidSetColorProfile( |
| 522 const std::vector<char>& color_profile) override; | 519 const std::vector<char>& color_profile) override; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 const blink::WebPluginAction& action); | 596 const blink::WebPluginAction& action); |
| 600 void OnMoveOrResizeStarted(); | 597 void OnMoveOrResizeStarted(); |
| 601 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); | 598 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); |
| 602 void OnSetActive(bool active); | 599 void OnSetActive(bool active); |
| 603 void OnSetBackgroundOpaque(bool opaque); | 600 void OnSetBackgroundOpaque(bool opaque); |
| 604 void OnExitFullscreen(); | 601 void OnExitFullscreen(); |
| 605 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 602 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
| 606 void OnSetInitialFocus(bool reverse); | 603 void OnSetInitialFocus(bool reverse); |
| 607 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 604 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 608 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 605 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 609 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | |
| 610 void OnSuppressDialogsUntilSwapOut(); | 606 void OnSuppressDialogsUntilSwapOut(); |
| 611 void OnUpdateTargetURLAck(); | 607 void OnUpdateTargetURLAck(); |
| 612 void OnUpdateWebPreferences(const WebPreferences& prefs); | 608 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 613 void OnSetPageScale(float page_scale_factor); | 609 void OnSetPageScale(float page_scale_factor); |
| 614 void OnZoom(PageZoom zoom); | 610 void OnZoom(PageZoom zoom); |
| 615 void OnForceRedraw(const ui::LatencyInfo& latency_info); | 611 void OnForceRedraw(const ui::LatencyInfo& latency_info); |
| 616 void OnSelectWordAroundCaret(); | 612 void OnSelectWordAroundCaret(); |
| 617 #if defined(OS_ANDROID) | 613 #if defined(OS_ANDROID) |
| 618 void OnUndoScrollFocusedEditableNodeIntoRect(); | 614 void OnUndoScrollFocusedEditableNodeIntoRect(); |
| 619 void OnUpdateTopControlsState(bool enable_hiding, | 615 void OnUpdateTopControlsState(bool enable_hiding, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 // --------------------------------------------------------------------------- | 691 // --------------------------------------------------------------------------- |
| 696 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 692 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
| 697 // it in the same order in the .cc file as it was in the header. | 693 // it in the same order in the .cc file as it was in the header. |
| 698 // --------------------------------------------------------------------------- | 694 // --------------------------------------------------------------------------- |
| 699 | 695 |
| 700 // Settings ------------------------------------------------------------------ | 696 // Settings ------------------------------------------------------------------ |
| 701 | 697 |
| 702 WebPreferences webkit_preferences_; | 698 WebPreferences webkit_preferences_; |
| 703 RendererPreferences renderer_preferences_; | 699 RendererPreferences renderer_preferences_; |
| 704 | 700 |
| 705 HostZoomLevels host_zoom_levels_; | |
| 706 | |
| 707 // Whether content state (such as form state, scroll position and page | 701 // Whether content state (such as form state, scroll position and page |
| 708 // contents) should be sent to the browser immediately. This is normally | 702 // contents) should be sent to the browser immediately. This is normally |
| 709 // false, but set to true by some tests. | 703 // false, but set to true by some tests. |
| 710 bool send_content_state_immediately_; | 704 bool send_content_state_immediately_; |
| 711 | 705 |
| 712 // Bitwise-ORed set of extra bindings that have been enabled. See | 706 // Bitwise-ORed set of extra bindings that have been enabled. See |
| 713 // BindingsPolicy for details. | 707 // BindingsPolicy for details. |
| 714 int enabled_bindings_; | 708 int enabled_bindings_; |
| 715 | 709 |
| 716 // If true, we send IPC messages when |preferred_size_| changes. | 710 // If true, we send IPC messages when |preferred_size_| changes. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 // use the Observer interface to filter IPC messages and receive frame change | 899 // use the Observer interface to filter IPC messages and receive frame change |
| 906 // notifications. | 900 // notifications. |
| 907 // --------------------------------------------------------------------------- | 901 // --------------------------------------------------------------------------- |
| 908 | 902 |
| 909 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 903 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 910 }; | 904 }; |
| 911 | 905 |
| 912 } // namespace content | 906 } // namespace content |
| 913 | 907 |
| 914 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 908 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |