 Chromium Code Reviews
 Chromium Code Reviews Issue 1002013003:
  Unit Test for WebView animating in and out of screen  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1002013003:
  Unit Test for WebView animating in and out of screen  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: android_webview/browser/test/fake_window.h | 
| diff --git a/android_webview/browser/test/fake_window.h b/android_webview/browser/test/fake_window.h | 
| index 18b0cf4cf9661f2373864b1349b4ec0a8bc0794b..5ef2afc71be5a9ad0bf5aa3695f868e111880844 100644 | 
| --- a/android_webview/browser/test/fake_window.h | 
| +++ b/android_webview/browser/test/fake_window.h | 
| @@ -7,6 +7,7 @@ | 
| #include <map> | 
| +#include "android_webview/public/browser/draw_gl.h" | 
| #include "base/memory/weak_ptr.h" | 
| #include "base/sequence_checker.h" | 
| #include "base/single_thread_task_runner.h" | 
| @@ -35,8 +36,10 @@ class WindowHooks { | 
| virtual void DidSyncOnRT(SharedRendererState* functor) = 0; | 
| virtual void WillProcessOnRT(SharedRendererState* functor) = 0; | 
| virtual void DidProcessOnRT(SharedRendererState* functor) = 0; | 
| - virtual void WillDrawOnRT(SharedRendererState* functor) = 0; | 
| + virtual void SetParentDrawConstraints(AwDrawGLInfo& draw_info) = 0; | 
| 
boliu
2015/03/13 23:51:55
I'd much rather have SetSurfaceRect, SetTransform
 
hush (inactive)
2015/03/16 18:19:21
Putting it into fake window make it hard for the r
 
boliu
2015/03/16 20:25:08
Merge it into WillDrawOnRT?
 
hush (inactive)
2015/03/17 18:26:45
Done.
 | 
| + virtual bool WillDrawOnRT(SharedRendererState* functor) = 0; | 
| virtual void DidDrawOnRT(SharedRendererState* functor) = 0; | 
| + virtual bool WillWaitForModeDrawToFinish() = 0; | 
| 
boliu
2015/03/13 23:51:55
This can be a setter too.
 
hush (inactive)
2015/03/16 18:19:21
This bool will be read by both RT and UI in the ne
 
boliu
2015/03/16 20:25:08
Ok for now I guess.
The other option is make the
 
hush (inactive)
2015/03/17 18:26:45
I just removed this flag..
 | 
| }; | 
| class FakeWindow { | 
| @@ -51,6 +54,7 @@ class FakeWindow { | 
| // BrowserViewRendererClient methods. | 
| void RequestDrawGL(bool wait_for_completion); | 
| void PostInvalidate(); | 
| + const gfx::Size& surface_size() { return surface_size_; } | 
| private: | 
| class ScopedMakeCurrent; |