Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: android_webview/browser/test/fake_window.h

Issue 846323002: aw: Fix clearView implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_FAKE_WINDOW_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 11 matching lines...) Expand all
22 namespace android_webview { 22 namespace android_webview {
23 23
24 class BrowserViewRenderer; 24 class BrowserViewRenderer;
25 class SharedRendererState; 25 class SharedRendererState;
26 26
27 class WindowHooks { 27 class WindowHooks {
28 public: 28 public:
29 virtual ~WindowHooks() {} 29 virtual ~WindowHooks() {}
30 30
31 virtual void WillOnDraw() = 0; 31 virtual void WillOnDraw() = 0;
32 virtual void DidOnDraw() = 0; 32 virtual void DidOnDraw(bool success) = 0;
33 33
34 virtual void WillSyncOnRT(SharedRendererState* functor) = 0; 34 virtual void WillSyncOnRT(SharedRendererState* functor) = 0;
35 virtual void DidSyncOnRT(SharedRendererState* functor) = 0; 35 virtual void DidSyncOnRT(SharedRendererState* functor) = 0;
36 virtual void WillProcessOnRT(SharedRendererState* functor) = 0; 36 virtual void WillProcessOnRT(SharedRendererState* functor) = 0;
37 virtual void DidProcessOnRT(SharedRendererState* functor) = 0; 37 virtual void DidProcessOnRT(SharedRendererState* functor) = 0;
38 virtual void WillDrawOnRT(SharedRendererState* functor) = 0; 38 virtual void WillDrawOnRT(SharedRendererState* functor) = 0;
39 virtual void DidDrawOnRT(SharedRendererState* functor) = 0; 39 virtual void DidDrawOnRT(SharedRendererState* functor) = 0;
40 }; 40 };
41 41
42 class FakeWindow { 42 class FakeWindow {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool context_current_; 85 bool context_current_;
86 86
87 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_; 87 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(FakeWindow); 89 DISALLOW_COPY_AND_ASSIGN(FakeWindow);
90 }; 90 };
91 91
92 } // namespace android_webview 92 } // namespace android_webview
93 93
94 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 94 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698