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