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

Unified Diff: mojo/services/native_viewport/platform_viewport_android.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_android.h
diff --git a/mojo/services/native_viewport/platform_viewport_android.h b/mojo/services/native_viewport/platform_viewport_android.h
deleted file mode 100644
index 31b03121ee86e3d039bcea9bde13dd42e8a42c69..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/platform_viewport_android.h
+++ /dev/null
@@ -1,66 +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_ANDROID_H_
-#define MOJO_SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_
-
-#include "base/android/jni_weak_ref.h"
-#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/services/native_viewport/platform_viewport.h"
-#include "ui/events/event_constants.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/sequential_id_generator.h"
-#include "ui/gfx/size.h"
-
-namespace gpu {
-class GLInProcessContext;
-}
-
-struct ANativeWindow;
-
-namespace mojo {
-
-class PlatformViewportAndroid : public PlatformViewport {
- public:
- static bool Register(JNIEnv* env);
-
- explicit PlatformViewportAndroid(Delegate* delegate);
- virtual ~PlatformViewportAndroid();
-
- void Destroy(JNIEnv* env, jobject obj);
- void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
- void SurfaceDestroyed(JNIEnv* env, jobject obj);
- void SurfaceSetSize(JNIEnv* env, jobject obj, jint width, jint height);
- bool TouchEvent(JNIEnv* env, jobject obj, jint pointer_id, jint action,
- jfloat x, jfloat y, jlong time_ms);
-
- private:
- // Overridden from PlatformViewport:
- virtual void Init(const gfx::Rect& bounds) override;
- virtual void Show() override;
- virtual void Hide() override;
- virtual void Close() override;
- virtual gfx::Size GetSize() override;
- virtual void SetBounds(const gfx::Rect& bounds) override;
- virtual void SetCapture() override;
- virtual void ReleaseCapture() override;
-
- void ReleaseWindow();
-
- Delegate* delegate_;
- ANativeWindow* window_;
- gfx::Rect bounds_;
- ui::SequentialIDGenerator id_generator_;
-
- base::WeakPtrFactory<PlatformViewportAndroid> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(PlatformViewportAndroid);
-};
-
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_
« no previous file with comments | « mojo/services/native_viewport/platform_viewport.h ('k') | mojo/services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698