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

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

Issue 1408393003: Propagate pageScaleFactor to GuestViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant initialization of AwLayoutSizer's page scale factor in tests Created 5 years, 1 month 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
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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 void OnSetPageEncoding(const std::string& encoding_name); 654 void OnSetPageEncoding(const std::string& encoding_name);
655 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 655 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
656 void OnSetWebUIProperty(const std::string& name, const std::string& value); 656 void OnSetWebUIProperty(const std::string& name, const std::string& value);
657 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 657 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
658 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level); 658 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level);
659 void OnStopFinding(StopFindAction action); 659 void OnStopFinding(StopFindAction action);
660 void OnSuppressDialogsUntilSwapOut(); 660 void OnSuppressDialogsUntilSwapOut();
661 void OnThemeChanged(); 661 void OnThemeChanged();
662 void OnUpdateTargetURLAck(); 662 void OnUpdateTargetURLAck();
663 void OnUpdateWebPreferences(const WebPreferences& prefs); 663 void OnUpdateWebPreferences(const WebPreferences& prefs);
664 void OnResetPageScale(); 664 void OnSetPageScale(float page_scale_factor);
665 void OnZoom(PageZoom zoom); 665 void OnZoom(PageZoom zoom);
666 void OnEnableViewSourceMode(); 666 void OnEnableViewSourceMode();
667 void OnForceRedraw(int request_id); 667 void OnForceRedraw(int request_id);
668 void OnSelectWordAroundCaret(); 668 void OnSelectWordAroundCaret();
669 #if defined(OS_ANDROID) 669 #if defined(OS_ANDROID)
670 void OnActivateNearestFindResult(int request_id, float x, float y); 670 void OnActivateNearestFindResult(int request_id, float x, float y);
671 void OnFindMatchRects(int current_version); 671 void OnFindMatchRects(int current_version);
672 void OnUndoScrollFocusedEditableNodeIntoRect(); 672 void OnUndoScrollFocusedEditableNodeIntoRect();
673 void OnUpdateTopControlsState(bool enable_hiding, 673 void OnUpdateTopControlsState(bool enable_hiding,
674 bool enable_showing, 674 bool enable_showing,
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 // session, this info is sent to the browser along with other drag/drop info. 1004 // session, this info is sent to the browser along with other drag/drop info.
1005 DragEventSourceInfo possible_drag_event_info_; 1005 DragEventSourceInfo possible_drag_event_info_;
1006 1006
1007 // NOTE: stats_collection_observer_ should be the last members because their 1007 // NOTE: stats_collection_observer_ should be the last members because their
1008 // constructors call the AddObservers method of RenderViewImpl. 1008 // constructors call the AddObservers method of RenderViewImpl.
1009 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; 1009 scoped_ptr<StatsCollectionObserver> stats_collection_observer_;
1010 1010
1011 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; 1011 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap;
1012 BitmapMap disambiguation_bitmaps_; 1012 BitmapMap disambiguation_bitmaps_;
1013 1013
1014 bool page_scale_factor_is_one_;
1015
1016 // --------------------------------------------------------------------------- 1014 // ---------------------------------------------------------------------------
1017 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1015 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1018 // sections rather than throwing it randomly at the end. If you're adding a 1016 // sections rather than throwing it randomly at the end. If you're adding a
1019 // bunch of stuff, you should probably create a helper class and put your 1017 // bunch of stuff, you should probably create a helper class and put your
1020 // data and methods on that to avoid bloating RenderView more. You can 1018 // data and methods on that to avoid bloating RenderView more. You can
1021 // 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
1022 // notifications. 1020 // notifications.
1023 // --------------------------------------------------------------------------- 1021 // ---------------------------------------------------------------------------
1024 1022
1025 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1023 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1026 }; 1024 };
1027 1025
1028 } // namespace content 1026 } // namespace content
1029 1027
1030 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1028 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698