Chromium Code Reviews| 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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 namespace webkit_media { | 55 namespace webkit_media { |
| 56 class WebMediaPlayerDelegate; | 56 class WebMediaPlayerDelegate; |
| 57 class WebMediaPlayerImpl; | 57 class WebMediaPlayerImpl; |
| 58 class WebMediaPlayerParams; | 58 class WebMediaPlayerParams; |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace content { | 61 namespace content { |
| 62 | 62 |
| 63 class RenderView; | 63 class RenderView; |
| 64 class SynchronousCompositor; | 64 class SynchronousCompositor; |
| 65 class SynchronousInputEventHandler; | |
| 65 | 66 |
| 66 // Embedder API for participating in renderer logic. | 67 // Embedder API for participating in renderer logic. |
| 67 class CONTENT_EXPORT ContentRendererClient { | 68 class CONTENT_EXPORT ContentRendererClient { |
| 68 public: | 69 public: |
| 69 virtual ~ContentRendererClient() {} | 70 virtual ~ContentRendererClient() {} |
| 70 | 71 |
| 71 // Notifies us that the RenderThread has been created. | 72 // Notifies us that the RenderThread has been created. |
| 72 virtual void RenderThreadStarted() {} | 73 virtual void RenderThreadStarted() {} |
| 73 | 74 |
| 74 // Notifies that a new RenderView has been created. | 75 // Notifies that a new RenderView has been created. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; | 244 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; |
| 244 | 245 |
| 245 // Called when a render view's compositor instance is created, when the | 246 // Called when a render view's compositor instance is created, when the |
| 246 // kEnableSynchronousRendererCompositor flag is used. | 247 // kEnableSynchronousRendererCompositor flag is used. |
| 247 // NOTE this is called on the Compositor thread: the embedder must | 248 // NOTE this is called on the Compositor thread: the embedder must |
| 248 // implement OverrideCompositorMessageLoop() when using this interface. | 249 // implement OverrideCompositorMessageLoop() when using this interface. |
| 249 virtual void DidCreateSynchronousCompositor( | 250 virtual void DidCreateSynchronousCompositor( |
| 250 int render_view_id, | 251 int render_view_id, |
| 251 SynchronousCompositor* compositor) {} | 252 SynchronousCompositor* compositor) {} |
| 252 | 253 |
| 253 // Allow the embedder to disable input event filtering by the compositor. | 254 // Called during render thread creation when both kEnableThreadedCompositing |
| 254 virtual bool ShouldCreateCompositorInputHandler() const; | 255 // and kEnableSynchronousRendererCompositor are set. |
|
joth
2013/05/30 01:15:02
note I'm blitzing the three webview-y methods here
| |
| 256 virtual void DidCreateSynchronousInputEventHandler( | |
| 257 SynchronousInputEventHandler* input_event_handler) {} | |
| 255 }; | 258 }; |
| 256 | 259 |
| 257 } // namespace content | 260 } // namespace content |
| 258 | 261 |
| 259 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 262 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |