| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 const webkit_glue::WebPreferences& webkit_prefs, | 216 const webkit_glue::WebPreferences& webkit_prefs, |
| 217 SharedRenderViewCounter* counter, | 217 SharedRenderViewCounter* counter, |
| 218 int32 routing_id, | 218 int32 routing_id, |
| 219 int32 surface_id, | 219 int32 surface_id, |
| 220 int64 session_storage_namespace_id, | 220 int64 session_storage_namespace_id, |
| 221 const string16& frame_name, | 221 const string16& frame_name, |
| 222 bool is_renderer_created, | 222 bool is_renderer_created, |
| 223 bool swapped_out, | 223 bool swapped_out, |
| 224 int32 next_page_id, | 224 int32 next_page_id, |
| 225 const WebKit::WebScreenInfo& screen_info, | 225 const WebKit::WebScreenInfo& screen_info, |
| 226 AccessibilityMode accessibility_mode); | 226 AccessibilityMode accessibility_mode, |
| 227 bool allow_partial_swap); |
| 227 | 228 |
| 228 // Used by content_layouttest_support to hook into the creation of | 229 // Used by content_layouttest_support to hook into the creation of |
| 229 // RenderViewImpls. | 230 // RenderViewImpls. |
| 230 static void InstallCreateHook( | 231 static void InstallCreateHook( |
| 231 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); | 232 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); |
| 232 | 233 |
| 233 // Returns the RenderViewImpl containing the given WebView. | 234 // Returns the RenderViewImpl containing the given WebView. |
| 234 static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 235 static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
| 235 | 236 |
| 236 // Returns the RenderViewImpl for the given routing ID. | 237 // Returns the RenderViewImpl for the given routing ID. |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 virtual ui::TextInputType GetTextInputType() OVERRIDE; | 824 virtual ui::TextInputType GetTextInputType() OVERRIDE; |
| 824 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; | 825 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE; |
| 825 virtual void GetCompositionCharacterBounds( | 826 virtual void GetCompositionCharacterBounds( |
| 826 std::vector<gfx::Rect>* character_bounds) OVERRIDE; | 827 std::vector<gfx::Rect>* character_bounds) OVERRIDE; |
| 827 virtual bool CanComposeInline() OVERRIDE; | 828 virtual bool CanComposeInline() OVERRIDE; |
| 828 virtual void DidCommitCompositorFrame() OVERRIDE; | 829 virtual void DidCommitCompositorFrame() OVERRIDE; |
| 829 virtual void InstrumentWillBeginFrame() OVERRIDE; | 830 virtual void InstrumentWillBeginFrame() OVERRIDE; |
| 830 virtual void InstrumentDidBeginFrame() OVERRIDE; | 831 virtual void InstrumentDidBeginFrame() OVERRIDE; |
| 831 virtual void InstrumentDidCancelFrame() OVERRIDE; | 832 virtual void InstrumentDidCancelFrame() OVERRIDE; |
| 832 virtual void InstrumentWillComposite() OVERRIDE; | 833 virtual void InstrumentWillComposite() OVERRIDE; |
| 834 virtual bool AllowPartialSwap() const OVERRIDE; |
| 833 | 835 |
| 834 protected: | 836 protected: |
| 835 explicit RenderViewImpl(RenderViewImplParams* params); | 837 explicit RenderViewImpl(RenderViewImplParams* params); |
| 836 | 838 |
| 837 void Initialize(RenderViewImplParams* params); | 839 void Initialize(RenderViewImplParams* params); |
| 838 | 840 |
| 839 // Do not delete directly. This class is reference counted. | 841 // Do not delete directly. This class is reference counted. |
| 840 virtual ~RenderViewImpl(); | 842 virtual ~RenderViewImpl(); |
| 841 | 843 |
| 842 private: | 844 private: |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 | 1565 |
| 1564 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 1566 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
| 1565 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 1567 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
| 1566 | 1568 |
| 1567 // State associated with the GetWindowSnapshot function. | 1569 // State associated with the GetWindowSnapshot function. |
| 1568 int next_snapshot_id_; | 1570 int next_snapshot_id_; |
| 1569 typedef std::map<int, WindowSnapshotCallback> | 1571 typedef std::map<int, WindowSnapshotCallback> |
| 1570 PendingSnapshotMap; | 1572 PendingSnapshotMap; |
| 1571 PendingSnapshotMap pending_snapshots_; | 1573 PendingSnapshotMap pending_snapshots_; |
| 1572 | 1574 |
| 1575 bool allow_partial_swap_; |
| 1576 |
| 1573 // Plugins ------------------------------------------------------------------- | 1577 // Plugins ------------------------------------------------------------------- |
| 1574 | 1578 |
| 1575 // All the currently active plugin delegates for this RenderView; kept so | 1579 // All the currently active plugin delegates for this RenderView; kept so |
| 1576 // that we can enumerate them to send updates about things like window | 1580 // that we can enumerate them to send updates about things like window |
| 1577 // location or tab focus and visibily. These are non-owning references. | 1581 // location or tab focus and visibily. These are non-owning references. |
| 1578 std::set<WebPluginDelegateProxy*> plugin_delegates_; | 1582 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
| 1579 | 1583 |
| 1580 #if defined(OS_WIN) | 1584 #if defined(OS_WIN) |
| 1581 // The ID of the focused NPAPI plug-in. | 1585 // The ID of the focused NPAPI plug-in. |
| 1582 int focused_plugin_id_; | 1586 int focused_plugin_id_; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 // use the Observer interface to filter IPC messages and receive frame change | 1635 // use the Observer interface to filter IPC messages and receive frame change |
| 1632 // notifications. | 1636 // notifications. |
| 1633 // --------------------------------------------------------------------------- | 1637 // --------------------------------------------------------------------------- |
| 1634 | 1638 |
| 1635 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1639 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1636 }; | 1640 }; |
| 1637 | 1641 |
| 1638 } // namespace content | 1642 } // namespace content |
| 1639 | 1643 |
| 1640 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1644 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |