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

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: Give OnPageScaleFactorChanged suitable behaviour upon navigation 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 void OnSetPageEncoding(const std::string& encoding_name); 650 void OnSetPageEncoding(const std::string& encoding_name);
651 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 651 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
652 void OnSetWebUIProperty(const std::string& name, const std::string& value); 652 void OnSetWebUIProperty(const std::string& name, const std::string& value);
653 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 653 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
654 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level); 654 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level);
655 void OnStopFinding(StopFindAction action); 655 void OnStopFinding(StopFindAction action);
656 void OnSuppressDialogsUntilSwapOut(); 656 void OnSuppressDialogsUntilSwapOut();
657 void OnThemeChanged(); 657 void OnThemeChanged();
658 void OnUpdateTargetURLAck(); 658 void OnUpdateTargetURLAck();
659 void OnUpdateWebPreferences(const WebPreferences& prefs); 659 void OnUpdateWebPreferences(const WebPreferences& prefs);
660 void OnResetPageScale(); 660 void OnGetPageScale();
661 void OnSetPageScale(float page_scale_factor);
661 void OnZoom(PageZoom zoom); 662 void OnZoom(PageZoom zoom);
662 void OnEnableViewSourceMode(); 663 void OnEnableViewSourceMode();
663 void OnForceRedraw(int request_id); 664 void OnForceRedraw(int request_id);
664 void OnSelectWordAroundCaret(); 665 void OnSelectWordAroundCaret();
665 #if defined(OS_ANDROID) 666 #if defined(OS_ANDROID)
666 void OnActivateNearestFindResult(int request_id, float x, float y); 667 void OnActivateNearestFindResult(int request_id, float x, float y);
667 void OnFindMatchRects(int current_version); 668 void OnFindMatchRects(int current_version);
668 void OnUndoScrollFocusedEditableNodeIntoRect(); 669 void OnUndoScrollFocusedEditableNodeIntoRect();
669 void OnUpdateTopControlsState(bool enable_hiding, 670 void OnUpdateTopControlsState(bool enable_hiding,
670 bool enable_showing, 671 bool enable_showing,
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 // session, this info is sent to the browser along with other drag/drop info. 997 // session, this info is sent to the browser along with other drag/drop info.
997 DragEventSourceInfo possible_drag_event_info_; 998 DragEventSourceInfo possible_drag_event_info_;
998 999
999 // NOTE: stats_collection_observer_ should be the last members because their 1000 // NOTE: stats_collection_observer_ should be the last members because their
1000 // constructors call the AddObservers method of RenderViewImpl. 1001 // constructors call the AddObservers method of RenderViewImpl.
1001 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; 1002 scoped_ptr<StatsCollectionObserver> stats_collection_observer_;
1002 1003
1003 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; 1004 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap;
1004 BitmapMap disambiguation_bitmaps_; 1005 BitmapMap disambiguation_bitmaps_;
1005 1006
1006 bool page_scale_factor_is_one_;
1007
1008 // --------------------------------------------------------------------------- 1007 // ---------------------------------------------------------------------------
1009 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1008 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1010 // sections rather than throwing it randomly at the end. If you're adding a 1009 // sections rather than throwing it randomly at the end. If you're adding a
1011 // bunch of stuff, you should probably create a helper class and put your 1010 // bunch of stuff, you should probably create a helper class and put your
1012 // data and methods on that to avoid bloating RenderView more. You can 1011 // data and methods on that to avoid bloating RenderView more. You can
1013 // use the Observer interface to filter IPC messages and receive frame change 1012 // use the Observer interface to filter IPC messages and receive frame change
1014 // notifications. 1013 // notifications.
1015 // --------------------------------------------------------------------------- 1014 // ---------------------------------------------------------------------------
1016 1015
1017 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1016 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1018 }; 1017 };
1019 1018
1020 } // namespace content 1019 } // namespace content
1021 1020
1022 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1021 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698