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

Unified Diff: sky/viewer/internals.h

Issue 837283002: Mojo JS Bindings: merge Application, Shell, ServiceProvider with Sky (Closed) Base URL: https://github.com/domokit/mojo.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 side-by-side diff with in-line comments
Download patch
Index: sky/viewer/internals.h
diff --git a/sky/viewer/internals.h b/sky/viewer/internals.h
index 22ca4c3cb5432345c6c46a6d282b891b7a793e9f..93c0ed8a12d45599ae1ee7e1637d1edf90e2beeb 100644
--- a/sky/viewer/internals.h
+++ b/sky/viewer/internals.h
@@ -13,8 +13,10 @@
namespace sky {
class DocumentView;
+class JSShellProxy;
class Internals : public gin::Wrappable<Internals> {
+ friend class JSShellProxy;
abarth-chromium 2015/01/07 22:52:01 Why friend?
hansmuller1 2015/01/07 23:33:04 I'm referring to the document_view_ weak pointer f
public:
static gin::WrapperInfo kWrapperInfo;
static gin::Handle<Internals> Create(v8::Isolate*, DocumentView*);
@@ -27,6 +29,7 @@ class Internals : public gin::Wrappable<Internals> {
private:
explicit Internals(DocumentView* document_view);
+ mojo::Handle ShellProxyHandle();
std::string RenderTreeAsText();
std::string ContentAsText();
void NotifyTestComplete(const std::string& test_result);
@@ -37,6 +40,7 @@ class Internals : public gin::Wrappable<Internals> {
void pauseAnimations(double pauseTime);
base::WeakPtr<DocumentView> document_view_;
+ std::vector<JSShellProxy*> js_shell_proxies_;
TestHarnessPtr test_harness_;
MOJO_DISALLOW_COPY_AND_ASSIGN(Internals);

Powered by Google App Engine
This is Rietveld 408576698