Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 namespace base { 56 namespace base {
57 class RefCountedBytes; 57 class RefCountedBytes;
58 } 58 }
59 59
60 namespace blink { 60 namespace blink {
61 class WebInputEvent; 61 class WebInputEvent;
62 class WebMouseEvent; 62 class WebMouseEvent;
63 struct WebCompositionUnderline; 63 struct WebCompositionUnderline;
64 } 64 }
65 65
66 namespace cc {
67 struct BeginFrameAck;
68 }
69
66 #if defined(OS_MACOSX) 70 #if defined(OS_MACOSX)
67 namespace device { 71 namespace device {
68 class PowerSaveBlocker; 72 class PowerSaveBlocker;
69 } // namespace device 73 } // namespace device
70 #endif 74 #endif
71 75
72 namespace gfx { 76 namespace gfx {
73 class Range; 77 class Range;
74 } 78 }
75 79
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 void RendererIsResponsive(); 621 void RendererIsResponsive();
618 622
619 // IPC message handlers 623 // IPC message handlers
620 void OnRenderProcessGone(int status, int error_code); 624 void OnRenderProcessGone(int status, int error_code);
621 void OnClose(); 625 void OnClose();
622 void OnUpdateScreenRectsAck(); 626 void OnUpdateScreenRectsAck();
623 void OnRequestMove(const gfx::Rect& pos); 627 void OnRequestMove(const gfx::Rect& pos);
624 void OnSetTooltipText(const base::string16& tooltip_text, 628 void OnSetTooltipText(const base::string16& tooltip_text,
625 blink::WebTextDirection text_direction_hint); 629 blink::WebTextDirection text_direction_hint);
626 bool OnSwapCompositorFrame(const IPC::Message& message); 630 bool OnSwapCompositorFrame(const IPC::Message& message);
631 void OnBeginFrameDidNotDraw(const cc::BeginFrameAck& ack);
627 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 632 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
628 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 633 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
629 void OnSetCursor(const WebCursor& cursor); 634 void OnSetCursor(const WebCursor& cursor);
630 void OnTextInputStateChanged(const TextInputState& params); 635 void OnTextInputStateChanged(const TextInputState& params);
631 636
632 void OnImeCompositionRangeChanged( 637 void OnImeCompositionRangeChanged(
633 const gfx::Range& range, 638 const gfx::Range& range,
634 const std::vector<gfx::Rect>& character_bounds); 639 const std::vector<gfx::Rect>& character_bounds);
635 void OnImeCancelComposition(); 640 void OnImeCancelComposition();
636 void OnLockMouse(bool user_gesture, 641 void OnLockMouse(bool user_gesture,
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 #endif 911 #endif
907 912
908 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 913 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
909 914
910 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 915 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
911 }; 916 };
912 917
913 } // namespace content 918 } // namespace content
914 919
915 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 920 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698