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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 | 1036 |
1035 // NOTE: stats_collection_observer_ should be the last members because their | 1037 // NOTE: stats_collection_observer_ should be the last members because their |
1036 // constructors call the AddObservers method of RenderViewImpl. | 1038 // constructors call the AddObservers method of RenderViewImpl. |
1037 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; | 1039 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; |
1038 | 1040 |
1039 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; | 1041 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; |
1040 BitmapMap disambiguation_bitmaps_; | 1042 BitmapMap disambiguation_bitmaps_; |
1041 | 1043 |
1042 bool page_scale_factor_is_one_; | 1044 bool page_scale_factor_is_one_; |
1043 | 1045 |
| 1046 // Temporary debug information to help track http://crbug.com/464633. |
| 1047 std::vector<unsigned long> debug_info_; |
| 1048 |
1044 // --------------------------------------------------------------------------- | 1049 // --------------------------------------------------------------------------- |
1045 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1050 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1046 // sections rather than throwing it randomly at the end. If you're adding a | 1051 // sections rather than throwing it randomly at the end. If you're adding a |
1047 // bunch of stuff, you should probably create a helper class and put your | 1052 // bunch of stuff, you should probably create a helper class and put your |
1048 // data and methods on that to avoid bloating RenderView more. You can | 1053 // data and methods on that to avoid bloating RenderView more. You can |
1049 // use the Observer interface to filter IPC messages and receive frame change | 1054 // use the Observer interface to filter IPC messages and receive frame change |
1050 // notifications. | 1055 // notifications. |
1051 // --------------------------------------------------------------------------- | 1056 // --------------------------------------------------------------------------- |
1052 | 1057 |
1053 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1058 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1054 }; | 1059 }; |
1055 | 1060 |
1056 } // namespace content | 1061 } // namespace content |
1057 | 1062 |
1058 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1063 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |