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