| 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_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/browser_view_renderer.h" | 8 #include "android_webview/browser/browser_view_renderer.h" |
| 9 #include "android_webview/browser/renderer_host/view_renderer_host.h" | 9 #include "android_webview/browser/renderer_host/view_renderer_host.h" |
| 10 #include "content/public/browser/android/compositor.h" | 10 #include "content/public/browser/android/compositor.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void OnDetachedFromWindow() OVERRIDE; | 59 virtual void OnDetachedFromWindow() OVERRIDE; |
| 60 virtual bool IsAttachedToWindow() OVERRIDE; | 60 virtual bool IsAttachedToWindow() OVERRIDE; |
| 61 virtual bool IsViewVisible() OVERRIDE; | 61 virtual bool IsViewVisible() OVERRIDE; |
| 62 virtual gfx::Rect GetScreenRect() OVERRIDE; | 62 virtual gfx::Rect GetScreenRect() OVERRIDE; |
| 63 | 63 |
| 64 // content::Compositor::Client implementation. | 64 // content::Compositor::Client implementation. |
| 65 virtual void ScheduleComposite() OVERRIDE; | 65 virtual void ScheduleComposite() OVERRIDE; |
| 66 | 66 |
| 67 // ViewRendererHost::Client implementation. | 67 // ViewRendererHost::Client implementation. |
| 68 virtual void OnPictureUpdated(int process_id, int render_view_id) OVERRIDE; | 68 virtual void OnPictureUpdated(int process_id, int render_view_id) OVERRIDE; |
| 69 virtual void OnPageScaleFactorChanged(int process_id, |
| 70 int render_view_id, |
| 71 float page_scale_factor) OVERRIDE; |
| 69 | 72 |
| 70 protected: | 73 protected: |
| 71 BrowserViewRendererImpl(BrowserViewRenderer::Client* client, | 74 BrowserViewRendererImpl(BrowserViewRenderer::Client* client, |
| 72 JavaHelper* java_helper); | 75 JavaHelper* java_helper); |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 class UserData; | 78 class UserData; |
| 76 friend class UserData; | 79 friend class UserData; |
| 77 | 80 |
| 78 // Returns the latest locally available picture if any. | 81 // Returns the latest locally available picture if any. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 135 |
| 133 // Used to observe frame metadata updates. | 136 // Used to observe frame metadata updates. |
| 134 content::ContentViewCore::UpdateFrameInfoCallback update_frame_info_callback_; | 137 content::ContentViewCore::UpdateFrameInfoCallback update_frame_info_callback_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(BrowserViewRendererImpl); | 139 DISALLOW_COPY_AND_ASSIGN(BrowserViewRendererImpl); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace android_webview | 142 } // namespace android_webview |
| 140 | 143 |
| 141 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ | 144 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_IMPL_H_ |
| OLD | NEW |