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

Unified Diff: content/shell/android/shell_view.h

Issue 10035034: Implement the skeleton of an android content shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed drawable png as it was checked in separately. Created 8 years, 8 months 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: content/shell/android/shell_view.h
diff --git a/content/shell/android/shell_view.h b/content/shell/android/shell_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..38feef0115d0296370ec7fbabd234bcaad868419
--- /dev/null
+++ b/content/shell/android/shell_view.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 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 CONTENT_SHELL_ANDROID_SHELL_VIEW_H_
+#define CONTENT_SHELL_ANDROID_SHELL_VIEW_H_
+
+#include <jni.h>
+
+#include "base/basictypes.h"
+#include "base/android/scoped_java_ref.h"
+#include "base/android/jni_helper.h"
+#include "content/public/browser/web_contents.h"
+
+class TabContents;
+
+namespace content {
+
+// Native representation of the java ShellView. Handles JNI communication
+// between the two instances.
+class ShellView {
+ public:
+ ShellView(JNIEnv* env, jobject obj);
+ virtual ~ShellView();
+
+ // Initializes the java components based on the tab contents.
+ void InitFromTabContents(WebContents* tab_contents);
+
+ // Registers the ShellView native methods.
+ static bool Register(JNIEnv* env);
+
+ private:
+ JavaObjectWeakGlobalRef weak_java_shell_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellView);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_ANDROID_SHELL_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698