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

Unified Diff: mojo/services/native_viewport/platform_viewport_stub.cc

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 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: mojo/services/native_viewport/platform_viewport_stub.cc
diff --git a/third_party/mojo_services/src/view_manager/public/cpp/lib/view_private.cc b/mojo/services/native_viewport/platform_viewport_stub.cc
similarity index 50%
copy from third_party/mojo_services/src/view_manager/public/cpp/lib/view_private.cc
copy to mojo/services/native_viewport/platform_viewport_stub.cc
index 20232e8c01537edfe5d29878cb699ff27f0eaa10..80a7e9467e4ef8054c6f86573539b3e254ed18fe 100644
--- a/third_party/mojo_services/src/view_manager/public/cpp/lib/view_private.cc
+++ b/mojo/services/native_viewport/platform_viewport_stub.cc
@@ -2,21 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "view_manager/public/cpp/lib/view_private.h"
+#include "mojo/services/native_viewport/platform_viewport_headless.h"
namespace mojo {
-ViewPrivate::ViewPrivate(View* view)
- : view_(view) {
- CHECK(view);
-}
-
-ViewPrivate::~ViewPrivate() {
-}
-
// static
-View* ViewPrivate::LocalCreate() {
- return new View;
+scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate) {
+ return PlatformViewportHeadless::Create(delegate);
}
} // namespace mojo
« no previous file with comments | « mojo/services/native_viewport/platform_viewport_headless.cc ('k') | mojo/services/native_viewport/platform_viewport_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698