| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ |
| 7 | 7 |
| 8 #include "content/public/renderer/render_view_observer.h" | 8 #include "content/public/renderer/render_view_observer.h" |
| 9 | 9 |
| 10 namespace android_webview { | 10 namespace android_webview { |
| 11 | 11 |
| 12 // Render-process side of ViewRendererHost. | 12 // Render-process side of ViewRendererHost. |
| 13 // Implements required interaction with content::RenderView. | 13 // Implements required interaction with content::RenderView. |
| 14 class ViewRenderer : public content::RenderViewObserver { | 14 class ViewRenderer : public content::RenderViewObserver { |
| 15 public: | 15 public: |
| 16 static void RenderViewCreated(content::RenderView* render_view); | 16 static void RenderViewCreated(content::RenderView* render_view); |
| 17 | 17 |
| 18 // Required to be public by IPC_MESSAGE_HANDLER. | 18 // Required to be public by IPC_MESSAGE_HANDLER. |
| 19 using content::RenderViewObserver::Send; | 19 using content::RenderViewObserver::Send; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 ViewRenderer(content::RenderView* render_view); | 22 ViewRenderer(content::RenderView* render_view); |
| 23 virtual ~ViewRenderer(); | 23 virtual ~ViewRenderer(); |
| 24 | 24 |
| 25 // content::RenderViewObserver implementation. | 25 // content::RenderViewObserver implementation. |
| 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 27 virtual void DidActivateCompositor(int input_handler_identifier) OVERRIDE; | |
| 28 virtual void DidCommitCompositorFrame() OVERRIDE; | 27 virtual void DidCommitCompositorFrame() OVERRIDE; |
| 29 | 28 |
| 30 void OnEnableCapturePictureCallback(bool enable); | 29 void OnEnableCapturePictureCallback(bool enable); |
| 31 void OnCapturePictureSync(); | 30 void OnCapturePictureSync(); |
| 32 | 31 |
| 33 bool capture_picture_enabled_; | 32 bool capture_picture_enabled_; |
| 34 | 33 |
| 35 DISALLOW_COPY_AND_ASSIGN(ViewRenderer); | 34 DISALLOW_COPY_AND_ASSIGN(ViewRenderer); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace android_webview | 37 } // namespace android_webview |
| 39 | 38 |
| 40 #endif // ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ | 39 #endif // ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_H_ |
| OLD | NEW |