| 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 | 
|  | 11 namespace content { | 
|  | 12 // Native side of the ContentView.java, the primary FrameLayout of | 
|  | 13 // Chromium on Android.  This is a public interface used by native | 
|  | 14 // code outside of the content module. | 
|  | 15 // | 
|  | 16 // TODO(jrg): this is a shell.  Upstream the rest. | 
|  | 17 // | 
|  | 18 // TODO(jrg): downstream, this class derives from | 
|  | 19 // base::SupportsWeakPtr<ContentView>.  Issues raised in | 
|  | 20 // http://codereview.chromium.org/10536066/ make us want to rethink | 
|  | 21 // ownership issues. | 
|  | 22 // FOR THE MERGE (downstream), re-add derivation from | 
|  | 23 // base::SupportsWeakPtr<ContentView> to keep everything else working | 
|  | 24 // until this issue is resolved. | 
|  | 25 // http://b/6666045 | 
|  | 26 class ContentView { | 
|  | 27  public: | 
|  | 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() {}; | 
|  | 35 }; | 
|  | 36 | 
|  | 37 };  // namespace content | 
|  | 38 | 
|  | 39 #endif  // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_H_ | 
| OLD | NEW | 
|---|