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

Unified Diff: sky/viewer/document_view.h

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: cleanup Created 6 years 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
Index: sky/viewer/document_view.h
diff --git a/sky/viewer/document_view.h b/sky/viewer/document_view.h
index b580c5f49cb0e22a7e65c531db0997fd11161ac9..adaeeac7927044a59e3cdf065a2ab5728c702e3c 100644
--- a/sky/viewer/document_view.h
+++ b/sky/viewer/document_view.h
@@ -49,7 +49,8 @@ class DocumentView : public blink::ServiceProvider,
public:
DocumentView(mojo::ServiceProviderPtr provider,
mojo::URLResponsePtr response,
- mojo::Shell* shell);
+ mojo::Shell* shell,
+ bool is_testing);
virtual ~DocumentView();
base::WeakPtr<DocumentView> GetWeakPtr();
@@ -70,6 +71,8 @@ class DocumentView : public blink::ServiceProvider,
void StartDebuggerInspectorBackend();
+ std::string GetPixelsForTesting();
+
private:
// WebWidgetClient methods:
void initializeLayerTreeView() override;
@@ -129,9 +132,10 @@ class DocumentView : public blink::ServiceProvider,
scoped_ptr<ScriptRunner> script_runner_;
scoped_ptr<InspectorHostImpl> inspector_host_;
scoped_ptr<inspector::InspectorBackendMojo> inspector_backend_;
+ base::WeakPtrFactory<DocumentView> weak_factory_;
int debugger_id_;
+ bool is_testing_;
- base::WeakPtrFactory<DocumentView> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DocumentView);
};

Powered by Google App Engine
This is Rietveld 408576698