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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1490 // State associated with the GetWindowSnapshot function. | 1490 // State associated with the GetWindowSnapshot function. |
1491 int next_snapshot_id_; | 1491 int next_snapshot_id_; |
1492 typedef std::map<int, WindowSnapshotCallback> PendingSnapshotMap; | 1492 typedef std::map<int, WindowSnapshotCallback> PendingSnapshotMap; |
1493 PendingSnapshotMap pending_snapshots_; | 1493 PendingSnapshotMap pending_snapshots_; |
1494 | 1494 |
1495 // Allows to selectively disable partial buffer swap for this renderer's | 1495 // Allows to selectively disable partial buffer swap for this renderer's |
1496 // compositor. | 1496 // compositor. |
1497 bool allow_partial_swap_; | 1497 bool allow_partial_swap_; |
1498 | 1498 |
1499 // Allows JS to access DOM automation. The JS object is only exposed when the | 1499 // Allows JS to access DOM automation. The JS object is only exposed when the |
1500 // DOM automation bindings are enabled. | 1500 // DOM automation bindings are enabled. |
Aaron Boodman
2014/01/09 20:11:06
How does RV lifetime relate to frame lifetime, and
Aaron Boodman
2014/01/09 20:19:20
On second thought, instead of storing this scary l
jochen (gone - plz use gerrit)
2014/01/09 20:30:38
I think I'll just install one controller per frame
| |
1501 scoped_ptr<DomAutomationController> dom_automation_controller_; | 1501 DomAutomationController* dom_automation_controller_; |
1502 | 1502 |
1503 // This field stores drag/drop related info for the event that is currently | 1503 // This field stores drag/drop related info for the event that is currently |
1504 // being handled. If the current event results in starting a drag/drop | 1504 // being handled. If the current event results in starting a drag/drop |
1505 // session, this info is sent to the browser along with other drag/drop info. | 1505 // session, this info is sent to the browser along with other drag/drop info. |
1506 DragEventSourceInfo possible_drag_event_info_; | 1506 DragEventSourceInfo possible_drag_event_info_; |
1507 | 1507 |
1508 // NOTE: stats_collection_observer_ should be the last members because their | 1508 // NOTE: stats_collection_observer_ should be the last members because their |
1509 // constructors call the AddObservers method of RenderViewImpl. | 1509 // constructors call the AddObservers method of RenderViewImpl. |
1510 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; | 1510 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; |
1511 | 1511 |
1512 ui::MenuSourceType context_menu_source_type_; | 1512 ui::MenuSourceType context_menu_source_type_; |
1513 gfx::Point touch_editing_context_menu_location_; | 1513 gfx::Point touch_editing_context_menu_location_; |
1514 | 1514 |
1515 // --------------------------------------------------------------------------- | 1515 // --------------------------------------------------------------------------- |
1516 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1516 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1517 // sections rather than throwing it randomly at the end. If you're adding a | 1517 // sections rather than throwing it randomly at the end. If you're adding a |
1518 // bunch of stuff, you should probably create a helper class and put your | 1518 // bunch of stuff, you should probably create a helper class and put your |
1519 // data and methods on that to avoid bloating RenderView more. You can | 1519 // data and methods on that to avoid bloating RenderView more. You can |
1520 // use the Observer interface to filter IPC messages and receive frame change | 1520 // use the Observer interface to filter IPC messages and receive frame change |
1521 // notifications. | 1521 // notifications. |
1522 // --------------------------------------------------------------------------- | 1522 // --------------------------------------------------------------------------- |
1523 | 1523 |
1524 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1524 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1525 }; | 1525 }; |
1526 | 1526 |
1527 } // namespace content | 1527 } // namespace content |
1528 | 1528 |
1529 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1529 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |