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

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

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