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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; | 1445 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; |
1446 | 1446 |
1447 // Resource manager for all the android media player objects if they are | 1447 // Resource manager for all the android media player objects if they are |
1448 // created in the renderer process. | 1448 // created in the renderer process. |
1449 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; | 1449 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; |
1450 | 1450 |
1451 // A date/time picker object for date and time related input elements. | 1451 // A date/time picker object for date and time related input elements. |
1452 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; | 1452 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
1453 #endif | 1453 #endif |
1454 | 1454 |
| 1455 // Plugins ------------------------------------------------------------------- |
| 1456 |
| 1457 // All the currently active plugin delegates for this RenderView; kept so |
| 1458 // that we can enumerate them to send updates about things like window |
| 1459 // location or tab focus and visibily. These are non-owning references. |
| 1460 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
| 1461 |
| 1462 #if defined(OS_WIN) |
| 1463 // The ID of the focused NPAPI plug-in. |
| 1464 int focused_plugin_id_; |
| 1465 #endif |
| 1466 |
1455 // Misc ---------------------------------------------------------------------- | 1467 // Misc ---------------------------------------------------------------------- |
1456 | 1468 |
1457 // The current and pending file chooser completion objects. If the queue is | 1469 // The current and pending file chooser completion objects. If the queue is |
1458 // nonempty, the first item represents the currently running file chooser | 1470 // nonempty, the first item represents the currently running file chooser |
1459 // callback, and the remaining elements are the other file chooser completion | 1471 // callback, and the remaining elements are the other file chooser completion |
1460 // still waiting to be run (in order). | 1472 // still waiting to be run (in order). |
1461 struct PendingFileChooser; | 1473 struct PendingFileChooser; |
1462 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1474 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1463 | 1475 |
1464 // The current directory enumeration callback | 1476 // The current directory enumeration callback |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 | 1515 |
1504 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 1516 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
1505 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 1517 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
1506 | 1518 |
1507 // State associated with the GetWindowSnapshot function. | 1519 // State associated with the GetWindowSnapshot function. |
1508 int next_snapshot_id_; | 1520 int next_snapshot_id_; |
1509 typedef std::map<int, WindowSnapshotCallback> | 1521 typedef std::map<int, WindowSnapshotCallback> |
1510 PendingSnapshotMap; | 1522 PendingSnapshotMap; |
1511 PendingSnapshotMap pending_snapshots_; | 1523 PendingSnapshotMap pending_snapshots_; |
1512 | 1524 |
| 1525 // Allows to selectively disable partial buffer swap for this renderer's |
| 1526 // compositor. |
1513 bool allow_partial_swap_; | 1527 bool allow_partial_swap_; |
1514 | 1528 |
1515 // Plugins ------------------------------------------------------------------- | |
1516 | |
1517 // All the currently active plugin delegates for this RenderView; kept so | |
1518 // that we can enumerate them to send updates about things like window | |
1519 // location or tab focus and visibily. These are non-owning references. | |
1520 std::set<WebPluginDelegateProxy*> plugin_delegates_; | |
1521 | |
1522 #if defined(OS_WIN) | |
1523 // The ID of the focused NPAPI plug-in. | |
1524 int focused_plugin_id_; | |
1525 #endif | |
1526 | |
1527 // Allows JS to access DOM automation. The JS object is only exposed when the | 1529 // Allows JS to access DOM automation. The JS object is only exposed when the |
1528 // DOM automation bindings are enabled. | 1530 // DOM automation bindings are enabled. |
1529 scoped_ptr<DomAutomationController> dom_automation_controller_; | 1531 scoped_ptr<DomAutomationController> dom_automation_controller_; |
1530 | 1532 |
1531 // Boolean indicating whether we are in the process of creating the frame | 1533 // Boolean indicating whether we are in the process of creating the frame |
1532 // tree for this renderer in response to ViewMsg_UpdateFrameTree. If true, | 1534 // tree for this renderer in response to ViewMsg_UpdateFrameTree. If true, |
1533 // we won't be sending ViewHostMsg_FrameTreeUpdated messages back to the | 1535 // we won't be sending ViewHostMsg_FrameTreeUpdated messages back to the |
1534 // browser, as those will be redundant. | 1536 // browser, as those will be redundant. |
1535 bool updating_frame_tree_; | 1537 bool updating_frame_tree_; |
1536 | 1538 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 // use the Observer interface to filter IPC messages and receive frame change | 1575 // use the Observer interface to filter IPC messages and receive frame change |
1574 // notifications. | 1576 // notifications. |
1575 // --------------------------------------------------------------------------- | 1577 // --------------------------------------------------------------------------- |
1576 | 1578 |
1577 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1579 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1578 }; | 1580 }; |
1579 | 1581 |
1580 } // namespace content | 1582 } // namespace content |
1581 | 1583 |
1582 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1584 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |