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

Unified Diff: sky/viewer/internals.h

Issue 1235093002: Move sky_viewer into services/sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: again Created 5 years, 5 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 | « sky/viewer/document_view.cc ('k') | sky/viewer/internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/internals.h
diff --git a/sky/viewer/internals.h b/sky/viewer/internals.h
deleted file mode 100644
index dc1a61de2f603af7f3ddda95886fa7058b75e5e1..0000000000000000000000000000000000000000
--- a/sky/viewer/internals.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKY_VIEWER_INTERNALS_H_
-#define SKY_VIEWER_INTERNALS_H_
-
-#include "base/memory/weak_ptr.h"
-#include "base/supports_user_data.h"
-#include "dart/runtime/include/dart_api.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/interfaces/application/shell.mojom.h"
-#include "sky/services/testing/test_harness.mojom.h"
-
-namespace sky {
-class DocumentView;
-
-class Internals : public base::SupportsUserData::Data,
- public mojo::Shell {
- public:
- ~Internals() override;
-
- static void Create(Dart_Isolate isolate, DocumentView* document_view);
-
- // mojo::Shell method:
- void ConnectToApplication(
- const mojo::String& application_url,
- mojo::InterfaceRequest<mojo::ServiceProvider> services,
- mojo::ServiceProviderPtr exposed_services) override;
-
- void NotifyTestComplete(const std::string& test_result);
-
- mojo::Handle TakeShellProxyHandle();
- mojo::Handle TakeServicesProvidedToEmbedder();
- mojo::Handle TakeServicesProvidedByEmbedder();
- mojo::Handle TakeServiceRegistry();
-
- private:
- explicit Internals(DocumentView* document_view);
-
- base::WeakPtr<DocumentView> document_view_;
- mojo::Binding<mojo::Shell> shell_binding_;
- TestHarnessPtr test_harness_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(Internals);
-};
-
-} // namespace sky
-
-#endif // SKY_VIEWER_INTERNALS_H_
« no previous file with comments | « sky/viewer/document_view.cc ('k') | sky/viewer/internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698