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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
571 | 571 |
572 // Called by |new_content_rendering_timeout_| if a renderer has loaded new | 572 // Called by |new_content_rendering_timeout_| if a renderer has loaded new |
573 // content but failed to produce a compositor frame in a defined time. | 573 // content but failed to produce a compositor frame in a defined time. |
574 void ClearDisplayedGraphics(); | 574 void ClearDisplayedGraphics(); |
575 | 575 |
576 // Called if we know the renderer is responsive. When we currently think the | 576 // Called if we know the renderer is responsive. When we currently think the |
577 // renderer is unresponsive, this will clear that state and call | 577 // renderer is unresponsive, this will clear that state and call |
578 // NotifyRendererResponsive. | 578 // NotifyRendererResponsive. |
579 void RendererIsResponsive(); | 579 void RendererIsResponsive(); |
580 | 580 |
581 // Notification that the user has made some kind of direct input with the | |
582 // page. Direct input includes 1) any mouse down event; 2) any raw key down | |
583 // event; and 3) any gesture tap event (which includes taps and scrolls). | |
nasko
2015/10/28 17:36:12
If this is again doing extra work during scrolling
dominickn
2015/10/29 00:03:19
GestureTapDown fires once at the beginning of a sc
nasko
2015/10/29 00:07:26
Awesome! Thanks for the context.
| |
584 virtual void OnUserInteraction(const blink::WebInputEvent::Type type); | |
585 | |
581 // Routines used to send the RenderWidget its screen color profile. | 586 // Routines used to send the RenderWidget its screen color profile. |
582 void DispatchColorProfile(); | 587 void DispatchColorProfile(); |
583 void SendColorProfile(); | 588 void SendColorProfile(); |
584 | 589 |
585 // IPC message handlers | 590 // IPC message handlers |
586 void OnRenderProcessGone(int status, int error_code); | 591 void OnRenderProcessGone(int status, int error_code); |
587 void OnClose(); | 592 void OnClose(); |
588 void OnUpdateScreenRectsAck(); | 593 void OnUpdateScreenRectsAck(); |
589 void OnRequestMove(const gfx::Rect& pos); | 594 void OnRequestMove(const gfx::Rect& pos); |
590 void OnSetTooltipText(const base::string16& tooltip_text, | 595 void OnSetTooltipText(const base::string16& tooltip_text, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
844 base::TimeDelta new_content_rendering_delay_; | 849 base::TimeDelta new_content_rendering_delay_; |
845 | 850 |
846 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 851 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
847 | 852 |
848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 853 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
849 }; | 854 }; |
850 | 855 |
851 } // namespace content | 856 } // namespace content |
852 | 857 |
853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 858 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |