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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 const gfx::Range& range, | 582 const gfx::Range& range, |
583 const std::vector<gfx::Rect>& character_bounds); | 583 const std::vector<gfx::Rect>& character_bounds); |
584 void OnImeCancelComposition(); | 584 void OnImeCancelComposition(); |
585 void OnLockMouse(bool user_gesture, | 585 void OnLockMouse(bool user_gesture, |
586 bool last_unlocked_by_target, | 586 bool last_unlocked_by_target, |
587 bool privileged); | 587 bool privileged); |
588 void OnUnlockMouse(); | 588 void OnUnlockMouse(); |
589 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 589 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
590 const gfx::Size& size, | 590 const gfx::Size& size, |
591 const cc::SharedBitmapId& id); | 591 const cc::SharedBitmapId& id); |
592 #if defined(OS_WIN) | |
593 void OnWindowlessPluginDummyWindowCreated( | |
594 gfx::NativeViewId dummy_activation_window); | |
595 void OnWindowlessPluginDummyWindowDestroyed( | |
596 gfx::NativeViewId dummy_activation_window); | |
597 #endif | |
598 void OnSelectionChanged(const base::string16& text, | 592 void OnSelectionChanged(const base::string16& text, |
599 uint32_t offset, | 593 uint32_t offset, |
600 const gfx::Range& range); | 594 const gfx::Range& range); |
601 void OnSelectionBoundsChanged( | 595 void OnSelectionBoundsChanged( |
602 const ViewHostMsg_SelectionBounds_Params& params); | 596 const ViewHostMsg_SelectionBounds_Params& params); |
603 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); | 597 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); |
604 void OnHittestData(const FrameHostMsg_HittestData_Params& params); | 598 void OnHittestData(const FrameHostMsg_HittestData_Params& params); |
605 | 599 |
606 // Called (either immediately or asynchronously) after we're done with our | 600 // Called (either immediately or asynchronously) after we're done with our |
607 // BackingStore and can send an ACK to the renderer so it can paint onto it | 601 // BackingStore and can send an ACK to the renderer so it can paint onto it |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 // called. This means that a paint for the new load has completed before | 791 // called. This means that a paint for the new load has completed before |
798 // the browser received a DidCommitProvisionalLoad message. In that case | 792 // the browser received a DidCommitProvisionalLoad message. In that case |
799 // |new_content_rendering_timeout_| is not needed. The renderer will send | 793 // |new_content_rendering_timeout_| is not needed. The renderer will send |
800 // both the FirstPaintAfterLoad and DidCommitProvisionalLoad messages after | 794 // both the FirstPaintAfterLoad and DidCommitProvisionalLoad messages after |
801 // any new page navigation, it doesn't matter which is received first, and | 795 // any new page navigation, it doesn't matter which is received first, and |
802 // it should not be possible to interleave other navigations in between | 796 // it should not be possible to interleave other navigations in between |
803 // receipt of those messages (unless FirstPaintAfterLoad is prevented from | 797 // receipt of those messages (unless FirstPaintAfterLoad is prevented from |
804 // being sent, in which case the timer should fire). | 798 // being sent, in which case the timer should fire). |
805 bool received_paint_after_load_; | 799 bool received_paint_after_load_; |
806 | 800 |
807 #if defined(OS_WIN) | |
808 std::list<HWND> dummy_windows_for_activation_; | |
809 #endif | |
810 | |
811 RenderWidgetHostLatencyTracker latency_tracker_; | 801 RenderWidgetHostLatencyTracker latency_tracker_; |
812 | 802 |
813 int next_browser_snapshot_id_; | 803 int next_browser_snapshot_id_; |
814 using PendingSnapshotMap = std::map<int, GetSnapshotFromBrowserCallback>; | 804 using PendingSnapshotMap = std::map<int, GetSnapshotFromBrowserCallback>; |
815 PendingSnapshotMap pending_browser_snapshots_; | 805 PendingSnapshotMap pending_browser_snapshots_; |
816 | 806 |
817 // Indicates whether a RenderFramehost has ownership, in which case this | 807 // Indicates whether a RenderFramehost has ownership, in which case this |
818 // object does not self destroy. | 808 // object does not self destroy. |
819 bool owned_by_render_frame_host_; | 809 bool owned_by_render_frame_host_; |
820 | 810 |
(...skipping 21 matching lines...) Expand all Loading... |
842 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 832 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
843 | 833 |
844 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 834 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
845 | 835 |
846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 836 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
847 }; | 837 }; |
848 | 838 |
849 } // namespace content | 839 } // namespace content |
850 | 840 |
851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 841 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |