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