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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 int64 GetLatencyComponentId() const; | 473 int64 GetLatencyComponentId() const; |
474 | 474 |
475 base::TimeDelta GetEstimatedBrowserCompositeTime() const; | 475 base::TimeDelta GetEstimatedBrowserCompositeTime() const; |
476 | 476 |
477 static void CompositorFrameDrawn( | 477 static void CompositorFrameDrawn( |
478 const std::vector<ui::LatencyInfo>& latency_info); | 478 const std::vector<ui::LatencyInfo>& latency_info); |
479 | 479 |
480 // Don't check whether we expected a resize ack during layout tests. | 480 // Don't check whether we expected a resize ack during layout tests. |
481 static void DisableResizeAckCheckForTesting(); | 481 static void DisableResizeAckCheckForTesting(); |
482 | 482 |
483 void WindowSnapshotAsyncCallback( | |
484 int routing_id, | |
485 int snapshot_id, | |
486 gfx::Size snapshot_size, | |
487 scoped_refptr<base::RefCountedBytes> png_data); | |
488 | |
489 InputRouter* input_router() { return input_router_.get(); } | 483 InputRouter* input_router() { return input_router_.get(); } |
490 | 484 |
491 // Get the BrowserAccessibilityManager for the root of the frame tree, | 485 // Get the BrowserAccessibilityManager for the root of the frame tree, |
492 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 486 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
493 | 487 |
494 // Get the BrowserAccessibilityManager for the root of the frame tree, | 488 // Get the BrowserAccessibilityManager for the root of the frame tree, |
495 // or create it if it doesn't already exist. | 489 // or create it if it doesn't already exist. |
496 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); | 490 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); |
497 | 491 |
498 void RejectMouseLockOrUnlockIfNecessary(); | 492 void RejectMouseLockOrUnlockIfNecessary(); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, | 676 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, |
683 InputEventAckState ack_result) override; | 677 InputEventAckState ack_result) override; |
684 void OnUnexpectedEventAck(UnexpectedEventAckType type) override; | 678 void OnUnexpectedEventAck(UnexpectedEventAckType type) override; |
685 | 679 |
686 void OnSyntheticGestureCompleted(SyntheticGesture::Result result); | 680 void OnSyntheticGestureCompleted(SyntheticGesture::Result result); |
687 | 681 |
688 // Called when there is a new auto resize (using a post to avoid a stack | 682 // Called when there is a new auto resize (using a post to avoid a stack |
689 // which may get in recursive loops). | 683 // which may get in recursive loops). |
690 void DelayedAutoResized(); | 684 void DelayedAutoResized(); |
691 | 685 |
692 void WindowOldSnapshotReachedScreen(int snapshot_id); | |
693 | |
694 void WindowSnapshotReachedScreen(int snapshot_id); | 686 void WindowSnapshotReachedScreen(int snapshot_id); |
695 | 687 |
696 void OnSnapshotDataReceived(int snapshot_id, | 688 void OnSnapshotDataReceived(int snapshot_id, |
697 const unsigned char* png, | 689 const unsigned char* png, |
698 size_t size); | 690 size_t size); |
699 | 691 |
700 void OnSnapshotDataReceivedAsync( | 692 void OnSnapshotDataReceivedAsync( |
701 int snapshot_id, | 693 int snapshot_id, |
702 scoped_refptr<base::RefCountedBytes> png_data); | 694 scoped_refptr<base::RefCountedBytes> png_data); |
703 | 695 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 bool is_focused_; | 847 bool is_focused_; |
856 | 848 |
857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
858 | 850 |
859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
860 }; | 852 }; |
861 | 853 |
862 } // namespace content | 854 } // namespace content |
863 | 855 |
864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |