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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // its delegate. | 487 // its delegate. |
488 | 488 |
489 // Called when a mousewheel event was not processed by the renderer. | 489 // Called when a mousewheel event was not processed by the renderer. |
490 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) {} | 490 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) {} |
491 | 491 |
492 // Notification that the user has made some kind of input that could | 492 // Notification that the user has made some kind of input that could |
493 // perform an action. The gestures that count are 1) any mouse down | 493 // perform an action. The gestures that count are 1) any mouse down |
494 // event and 2) enter or space key presses. | 494 // event and 2) enter or space key presses. |
495 virtual void OnUserGesture() {} | 495 virtual void OnUserGesture() {} |
496 | 496 |
| 497 // Notification that the user has made some kind of direct input with the |
| 498 // page. Direct input includes 1) any mouse down event; 2) any mouse wheel |
| 499 // event; 3) any raw key down event; and 4) any gesture tap event. |
| 500 virtual void OnUserInput(const blink::WebInputEvent::Type type) {} |
| 501 |
497 // Callbacks for notification when the renderer becomes unresponsive to user | 502 // Callbacks for notification when the renderer becomes unresponsive to user |
498 // input events, and subsequently responsive again. | 503 // input events, and subsequently responsive again. |
499 virtual void NotifyRendererUnresponsive() {} | 504 virtual void NotifyRendererUnresponsive() {} |
500 virtual void NotifyRendererResponsive() {} | 505 virtual void NotifyRendererResponsive() {} |
501 | 506 |
502 // Callback for notification that we failed to receive any rendered graphics | 507 // Callback for notification that we failed to receive any rendered graphics |
503 // from a newly loaded page. Used for testing. | 508 // from a newly loaded page. Used for testing. |
504 virtual void NotifyNewContentRenderingTimeoutForTesting() {} | 509 virtual void NotifyNewContentRenderingTimeoutForTesting() {} |
505 | 510 |
506 // Called when auto-resize resulted in the renderer size changing. | 511 // Called when auto-resize resulted in the renderer size changing. |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 bool is_focused_; | 850 bool is_focused_; |
846 | 851 |
847 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 852 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
848 | 853 |
849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 854 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
850 }; | 855 }; |
851 | 856 |
852 } // namespace content | 857 } // namespace content |
853 | 858 |
854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 859 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |