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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 477 |
478 // Called when we receive a notification indicating that the renderer | 478 // Called when we receive a notification indicating that the renderer |
479 // process has gone. This will reset our state so that our state will be | 479 // process has gone. This will reset our state so that our state will be |
480 // consistent if a new renderer is created. | 480 // consistent if a new renderer is created. |
481 void RendererExited(base::TerminationStatus status, int exit_code); | 481 void RendererExited(base::TerminationStatus status, int exit_code); |
482 | 482 |
483 // Retrieves an id the renderer can use to refer to its view. | 483 // Retrieves an id the renderer can use to refer to its view. |
484 // This is used for various IPC messages, including plugins. | 484 // This is used for various IPC messages, including plugins. |
485 gfx::NativeViewId GetNativeViewId() const; | 485 gfx::NativeViewId GetNativeViewId() const; |
486 | 486 |
487 // Retrieves an id for the surface that the renderer can draw to | |
488 // when accelerated compositing is enabled. | |
489 gfx::GLSurfaceHandle GetCompositingSurface(); | |
490 | |
491 // --------------------------------------------------------------------------- | 487 // --------------------------------------------------------------------------- |
492 // The following methods are overridden by RenderViewHost to send upwards to | 488 // The following methods are overridden by RenderViewHost to send upwards to |
493 // its delegate. | 489 // its delegate. |
494 | 490 |
495 // Called when a mousewheel event was not processed by the renderer. | 491 // Called when a mousewheel event was not processed by the renderer. |
496 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) {} | 492 virtual void UnhandledWheelEvent(const blink::WebMouseWheelEvent& event) {} |
497 | 493 |
498 // Notification that the user has made some kind of input that could | 494 // Notification that the user has made some kind of input that could |
499 // perform an action. The gestures that count are 1) any mouse down | 495 // perform an action. The gestures that count are 1) any mouse down |
500 // event and 2) enter or space key presses. | 496 // event and 2) enter or space key presses. |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 bool is_focused_; | 834 bool is_focused_; |
839 | 835 |
840 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 836 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
841 | 837 |
842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 838 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
843 }; | 839 }; |
844 | 840 |
845 } // namespace content | 841 } // namespace content |
846 | 842 |
847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 843 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |