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

Unified Diff: content/shell/renderer/test_runner/web_test_delegate.h

Issue 1142463002: Plumb dependencies on content from test plugin through the delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/test_runner/test_plugin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/web_test_delegate.h
diff --git a/content/shell/renderer/test_runner/web_test_delegate.h b/content/shell/renderer/test_runner/web_test_delegate.h
index e847d44ed39093bf1f872699b32d1f7f0ce24003..3ede99d31e5f4af71a4c4f7ad20239ca9cfc72ad 100644
--- a/content/shell/renderer/test_runner/web_test_delegate.h
+++ b/content/shell/renderer/test_runner/web_test_delegate.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/memory/ref_counted.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
@@ -22,11 +23,17 @@ class WebFrame;
class WebGamepad;
class WebGamepads;
class WebHistoryItem;
+class WebLayer;
struct WebRect;
struct WebSize;
struct WebURLError;
}
+namespace cc {
+class TextureLayer;
+class SharedBitmapManager;
+}
+
namespace content {
class DeviceLightData;
@@ -204,6 +211,12 @@ class WebTestDelegate {
// Clear all the permissions set via SetPermission().
virtual void ResetPermissions() = 0;
+
+ // Instantiates WebLayerImpl for TestPlugin.
+ virtual blink::WebLayer* InstantiateWebLayer(
+ scoped_refptr<cc::TextureLayer> layer) = 0;
+
+ virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
};
} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/test_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698