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

Unified Diff: mojo/services/native_viewport/platform_viewport.h

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.h
diff --git a/mojo/services/native_viewport/platform_viewport.h b/mojo/services/native_viewport/platform_viewport.h
deleted file mode 100644
index a3ba3dcc10dacc453b0f19c78aa95b5d7e38a35c..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/platform_viewport.h
+++ /dev/null
@@ -1,53 +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.
-
-#ifndef MOJO_SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
-#define MOJO_SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/size.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-class Event;
-}
-
-namespace mojo {
-
-// Encapsulation of platform-specific Viewport.
-class PlatformViewport {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- virtual void OnBoundsChanged(const gfx::Rect& rect) = 0;
- virtual void OnAcceleratedWidgetAvailable(
- gfx::AcceleratedWidget widget) = 0;
- virtual bool OnEvent(ui::Event* ui_event) = 0;
- virtual void OnDestroyed() = 0;
- };
-
- virtual ~PlatformViewport() {}
-
- virtual void Init(const gfx::Rect& bounds) = 0;
- virtual void Show() = 0;
- virtual void Hide() = 0;
- virtual void Close() = 0;
- virtual gfx::Size GetSize() = 0;
- virtual void SetBounds(const gfx::Rect& bounds) = 0;
-
- virtual void SetCapture() = 0;
- virtual void ReleaseCapture() = 0;
-
- static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
« no previous file with comments | « mojo/services/native_viewport/native_viewport_impl.cc ('k') | mojo/services/native_viewport/platform_viewport_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698