Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 2020633003: Revert of Add FrameHost mojo service (patchset #23 id:490001 of https://codereview.chromium.org/196… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
547 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); 548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame);
548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); 549 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame);
549 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); 550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper);
550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 551 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
551 MessageOrderInDidChangeSelection); 552 MessageOrderInDidChangeSelection);
552 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); 553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents);
553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); 554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose);
554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); 555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut);
555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 556 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
556 SetZoomLevelAfterCrossProcessNavigation); 557 SetZoomLevelAfterCrossProcessNavigation);
557 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest,
558 ConverViewportToScreenWithZoomForDSF); 559 ConverViewportToScreenWithZoomForDSF);
559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest,
560 GetCompositionCharacterBoundsTest); 561 GetCompositionCharacterBoundsTest);
561 562
563 typedef std::map<GURL, double> HostZoomLevels;
564
562 enum ErrorPageType { 565 enum ErrorPageType {
563 DNS_ERROR, 566 DNS_ERROR,
564 HTTP_404, 567 HTTP_404,
565 CONNECTION_ERROR, 568 CONNECTION_ERROR,
566 }; 569 };
567 570
568 // RenderWidgetOwnerDelegate implementation ---------------------------------- 571 // RenderWidgetOwnerDelegate implementation ----------------------------------
569 572
570 void RenderWidgetDidSetColorProfile( 573 void RenderWidgetDidSetColorProfile(
571 const std::vector<char>& color_profile) override; 574 const std::vector<char>& color_profile) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); 656 void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id);
654 void OnResetPageEncodingToDefault(); 657 void OnResetPageEncodingToDefault();
655 void OnSetActive(bool active); 658 void OnSetActive(bool active);
656 void OnSetBackgroundOpaque(bool opaque); 659 void OnSetBackgroundOpaque(bool opaque);
657 void OnExitFullscreen(); 660 void OnExitFullscreen();
658 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); 661 void OnSetHistoryOffsetAndLength(int history_offset, int history_length);
659 void OnSetInitialFocus(bool reverse); 662 void OnSetInitialFocus(bool reverse);
660 void OnSetPageEncoding(const std::string& encoding_name); 663 void OnSetPageEncoding(const std::string& encoding_name);
661 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 664 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
662 void OnSetWebUIProperty(const std::string& name, const std::string& value); 665 void OnSetWebUIProperty(const std::string& name, const std::string& value);
666 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
663 void OnSuppressDialogsUntilSwapOut(); 667 void OnSuppressDialogsUntilSwapOut();
664 void OnThemeChanged(); 668 void OnThemeChanged();
665 void OnUpdateTargetURLAck(); 669 void OnUpdateTargetURLAck();
666 void OnUpdateWebPreferences(const WebPreferences& prefs); 670 void OnUpdateWebPreferences(const WebPreferences& prefs);
667 void OnSetPageScale(float page_scale_factor); 671 void OnSetPageScale(float page_scale_factor);
668 void OnZoom(PageZoom zoom); 672 void OnZoom(PageZoom zoom);
669 void OnForceRedraw(int request_id); 673 void OnForceRedraw(int request_id);
670 void OnSelectWordAroundCaret(); 674 void OnSelectWordAroundCaret();
671 #if defined(OS_ANDROID) 675 #if defined(OS_ANDROID)
672 void OnUndoScrollFocusedEditableNodeIntoRect(); 676 void OnUndoScrollFocusedEditableNodeIntoRect();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 // --------------------------------------------------------------------------- 747 // ---------------------------------------------------------------------------
744 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put 748 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
745 // it in the same order in the .cc file as it was in the header. 749 // it in the same order in the .cc file as it was in the header.
746 // --------------------------------------------------------------------------- 750 // ---------------------------------------------------------------------------
747 751
748 // Settings ------------------------------------------------------------------ 752 // Settings ------------------------------------------------------------------
749 753
750 WebPreferences webkit_preferences_; 754 WebPreferences webkit_preferences_;
751 RendererPreferences renderer_preferences_; 755 RendererPreferences renderer_preferences_;
752 756
757 HostZoomLevels host_zoom_levels_;
758
753 // Whether content state (such as form state, scroll position and page 759 // Whether content state (such as form state, scroll position and page
754 // contents) should be sent to the browser immediately. This is normally 760 // contents) should be sent to the browser immediately. This is normally
755 // false, but set to true by some tests. 761 // false, but set to true by some tests.
756 bool send_content_state_immediately_; 762 bool send_content_state_immediately_;
757 763
758 // Bitwise-ORed set of extra bindings that have been enabled. See 764 // Bitwise-ORed set of extra bindings that have been enabled. See
759 // BindingsPolicy for details. 765 // BindingsPolicy for details.
760 int enabled_bindings_; 766 int enabled_bindings_;
761 767
762 // If true, we send IPC messages when |preferred_size_| changes. 768 // If true, we send IPC messages when |preferred_size_| changes.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 // use the Observer interface to filter IPC messages and receive frame change 972 // use the Observer interface to filter IPC messages and receive frame change
967 // notifications. 973 // notifications.
968 // --------------------------------------------------------------------------- 974 // ---------------------------------------------------------------------------
969 975
970 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 976 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
971 }; 977 };
972 978
973 } // namespace content 979 } // namespace content
974 980
975 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 981 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698