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

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

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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: mojo/services/native_viewport/platform_viewport_headless.cc
diff --git a/mojo/services/native_viewport/platform_viewport_headless.cc b/mojo/services/native_viewport/platform_viewport_headless.cc
deleted file mode 100644
index 1c347115d567e0e11834466c0c6dac343801b766..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/platform_viewport_headless.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 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.
-
-#include "mojo/services/native_viewport/platform_viewport_headless.h"
-
-namespace mojo {
-
-PlatformViewportHeadless::PlatformViewportHeadless(Delegate* delegate)
- : delegate_(delegate) {
-}
-
-PlatformViewportHeadless::~PlatformViewportHeadless() {
-}
-
-void PlatformViewportHeadless::Init(const gfx::Rect& bounds) {
- bounds_ = bounds;
-}
-
-void PlatformViewportHeadless::Show() {
-}
-
-void PlatformViewportHeadless::Hide() {
-}
-
-void PlatformViewportHeadless::Close() {
- delegate_->OnDestroyed();
-}
-
-gfx::Size PlatformViewportHeadless::GetSize() {
- return bounds_.size();
-}
-
-void PlatformViewportHeadless::SetBounds(const gfx::Rect& bounds) {
- bounds_ = bounds;
- delegate_->OnBoundsChanged(bounds_);
-}
-
-void PlatformViewportHeadless::SetCapture() {
-}
-
-void PlatformViewportHeadless::ReleaseCapture() {
-}
-
-// static
-scoped_ptr<PlatformViewport> PlatformViewportHeadless::Create(
- Delegate* delegate) {
- return scoped_ptr<PlatformViewport>(
- new PlatformViewportHeadless(delegate)).Pass();
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/native_viewport/platform_viewport_headless.h ('k') | mojo/services/native_viewport/platform_viewport_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698