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

Unified Diff: ui/platform_window/android/platform_window_android.h

Issue 1455793005: Adding a way to associate Android Activities with PlatformWindowAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_native_widget
Patch Set: Making the new property "owned" property. Created 5 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
« no previous file with comments | « ui/aura/window_tree_host_platform.cc ('k') | ui/platform_window/android/platform_window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/android/platform_window_android.h
diff --git a/ui/platform_window/android/platform_window_android.h b/ui/platform_window/android/platform_window_android.h
index c8c646ebcdd265a6dff943fe57701d06c74e687c..21ce7eed92753ac95a3f1139a000ff265957080f 100644
--- a/ui/platform_window/android/platform_window_android.h
+++ b/ui/platform_window/android/platform_window_android.h
@@ -23,10 +23,14 @@ namespace ui {
class ANDROID_WINDOW_EXPORT PlatformWindowAndroid : public PlatformWindow {
public:
static bool Register(JNIEnv* env);
+ static PlatformWindowAndroid* From(PlatformWindow* platform_window);
explicit PlatformWindowAndroid(PlatformWindowDelegate* delegate);
~PlatformWindowAndroid() override;
+ void AttachToActivity(JNIEnv* env,
+ const base::android::JavaRef<jobject>& activity);
+ bool IsAttachedToActivity() const;
void Destroy(JNIEnv* env, jobject obj);
void SurfaceCreated(JNIEnv* env,
jobject obj,
« no previous file with comments | « ui/aura/window_tree_host_platform.cc ('k') | ui/platform_window/android/platform_window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698