Chromium Code Reviews| 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_RV_H_ | |
| 6 #define ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_RV_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 ViewRendererRV : public content::RenderViewObserver { | |
|
joth
2013/01/21 22:54:24
The RV in the name is non-obvious.
But BrowserView
Leandro GraciĆ” Gil
2013/01/22 08:18:46
Using ViewRenderer & ViewRendererHost + BrowserVie
| |
| 15 public: | |
| 16 static void RenderViewCreated(content::RenderView* render_view); | |
| 17 | |
| 18 // Required to be public by IPC_MESSAGE_HANDLER_DELAY_REPLY. | |
| 19 using content::RenderViewObserver::Send; | |
| 20 | |
| 21 private: | |
| 22 ViewRendererRV(content::RenderView* render_view); | |
| 23 virtual ~ViewRendererRV(); | |
| 24 | |
| 25 // content::RenderViewObserver implementation. | |
| 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 27 virtual void DidCommit() OVERRIDE; | |
| 28 | |
| 29 void OnEnableCapturePictureCallback(bool enable); | |
| 30 void OnCapturePictureSync(IPC::Message* reply_msg); | |
| 31 | |
| 32 bool capture_picture_enabled_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(ViewRendererRV); | |
| 35 }; | |
| 36 | |
| 37 } // namespace android_webview | |
| 38 | |
| 39 #endif // ANDROID_WEBVIEW_RENDERER_VIEW_RENDERER_RV_H_ | |
| OLD | NEW |