| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <jni.h> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/android/jni_helper.h" |
| 13 #include "base/memory/weak_ptr.h" |
| 14 |
| 15 namespace content { |
| 16 class JavaScriptDialogCreator; |
| 17 } |
| 18 |
| 19 namespace content { |
| 20 // Native side of the ContentView.java, the primary FrameLayout of |
| 21 // Chromium on Android. This is a public interface used by native |
| 22 // code outside of the content module. |
| 23 // |
| 24 // TODO(jrg): this is a shell. Upstream the rest. |
| 25 class ContentView : public base::SupportsWeakPtr<ContentView> { |
| 26 public: |
| 27 ContentView(); |
| 28 virtual void Destroy(JNIEnv* env, jobject obj) = 0; |
| 29 |
| 30 static ContentView* Create(JNIEnv* env, jobject obj); |
| 31 static ContentView* GetNativeContentView(JNIEnv* env, jobject obj); |
| 32 |
| 33 protected: |
| 34 virtual ~ContentView() = 0; |
| 35 }; |
| 36 |
| 37 }; // namespace content |
| 38 |
| 39 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_H_ |
| OLD | NEW |