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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 | 197 |
198 MouseLockDispatcher* mouse_lock_dispatcher() { | 198 MouseLockDispatcher* mouse_lock_dispatcher() { |
199 return mouse_lock_dispatcher_; | 199 return mouse_lock_dispatcher_; |
200 } | 200 } |
201 | 201 |
202 HistoryController* history_controller() { | 202 HistoryController* history_controller() { |
203 return history_controller_.get(); | 203 return history_controller_.get(); |
204 } | 204 } |
205 | 205 |
| 206 const std::vector<unsigned long>& debug_info() { return debug_info_; } |
| 207 |
206 // Functions to add and remove observers for this object. | 208 // Functions to add and remove observers for this object. |
207 void AddObserver(RenderViewObserver* observer); | 209 void AddObserver(RenderViewObserver* observer); |
208 void RemoveObserver(RenderViewObserver* observer); | 210 void RemoveObserver(RenderViewObserver* observer); |
209 | 211 |
210 // Returns the StatsCollectionObserver associated with this view, or NULL | 212 // Returns the StatsCollectionObserver associated with this view, or NULL |
211 // if one wasn't created; | 213 // if one wasn't created; |
212 StatsCollectionObserver* GetStatsCollectionObserver() { | 214 StatsCollectionObserver* GetStatsCollectionObserver() { |
213 return stats_collection_observer_.get(); | 215 return stats_collection_observer_.get(); |
214 } | 216 } |
215 | 217 |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 | 1037 |
1036 // NOTE: stats_collection_observer_ should be the last members because their | 1038 // NOTE: stats_collection_observer_ should be the last members because their |
1037 // constructors call the AddObservers method of RenderViewImpl. | 1039 // constructors call the AddObservers method of RenderViewImpl. |
1038 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; | 1040 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; |
1039 | 1041 |
1040 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; | 1042 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; |
1041 BitmapMap disambiguation_bitmaps_; | 1043 BitmapMap disambiguation_bitmaps_; |
1042 | 1044 |
1043 bool page_scale_factor_is_one_; | 1045 bool page_scale_factor_is_one_; |
1044 | 1046 |
| 1047 // Temporary debug information to help track http://crbug.com/464633. |
| 1048 std::vector<unsigned long> debug_info_; |
| 1049 |
1045 // --------------------------------------------------------------------------- | 1050 // --------------------------------------------------------------------------- |
1046 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1051 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1047 // sections rather than throwing it randomly at the end. If you're adding a | 1052 // sections rather than throwing it randomly at the end. If you're adding a |
1048 // bunch of stuff, you should probably create a helper class and put your | 1053 // bunch of stuff, you should probably create a helper class and put your |
1049 // data and methods on that to avoid bloating RenderView more. You can | 1054 // data and methods on that to avoid bloating RenderView more. You can |
1050 // use the Observer interface to filter IPC messages and receive frame change | 1055 // use the Observer interface to filter IPC messages and receive frame change |
1051 // notifications. | 1056 // notifications. |
1052 // --------------------------------------------------------------------------- | 1057 // --------------------------------------------------------------------------- |
1053 | 1058 |
1054 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1059 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1055 }; | 1060 }; |
1056 | 1061 |
1057 } // namespace content | 1062 } // namespace content |
1058 | 1063 |
1059 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1064 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |