| 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 ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| 7 | 7 |
| 8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
| 9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
| 10 #include "third_party/skia/include/core/SkColor.h" | |
| 11 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| 12 | 11 |
| 13 namespace android_webview { | 12 namespace android_webview { |
| 14 | 13 |
| 15 // Render process side of AwRenderViewHostExt, this provides cross-process | 14 // Render process side of AwRenderViewHostExt, this provides cross-process |
| 16 // implementation of miscellaneous WebView functions that we need to poke | 15 // implementation of miscellaneous WebView functions that we need to poke |
| 17 // WebKit directly to implement (and that aren't needed in the chrome app). | 16 // WebKit directly to implement (and that aren't needed in the chrome app). |
| 18 class AwRenderViewExt : public content::RenderViewObserver { | 17 class AwRenderViewExt : public content::RenderViewObserver { |
| 19 public: | 18 public: |
| 20 static void RenderViewCreated(content::RenderView* render_view); | 19 static void RenderViewCreated(content::RenderView* render_view); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 | 31 |
| 33 gfx::Size last_sent_contents_size_; | 32 gfx::Size last_sent_contents_size_; |
| 34 base::OneShotTimer check_contents_size_timer_; | 33 base::OneShotTimer check_contents_size_timer_; |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 35 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace android_webview | 38 } // namespace android_webview |
| 40 | 39 |
| 41 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 40 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| OLD | NEW |