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

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

Issue 10800019: Refactor ContentShell to remove ContentViewClient dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/shell/android/shell_view.h ('k') | content/shell/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/shell_view.cc
diff --git a/content/shell/android/shell_view.cc b/content/shell/android/shell_view.cc
deleted file mode 100644
index 63f8fdcaa000158ca0ead6e35bb034418a95d1ac..0000000000000000000000000000000000000000
--- a/content/shell/android/shell_view.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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.
-
-#include "content/shell/android/shell_view.h"
-
-#include "base/android/jni_android.h"
-#include "jni/shell_view_jni.h"
-
-namespace content {
-
-ShellView::ShellView(JNIEnv* env, jobject obj)
- : weak_java_shell_view_(env, obj) {
-}
-
-ShellView::~ShellView() {
-}
-
-void ShellView::InitFromTabContents(WebContents* tab_contents) {
- JNIEnv* env = base::android::AttachCurrentThread();
- Java_ShellView_initFromNativeTabContents(
- env, weak_java_shell_view_.get(env).obj(),
- reinterpret_cast<jint>(tab_contents));
-}
-
-// static
-bool ShellView::Register(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-static jint Init(JNIEnv* env, jobject obj) {
- return reinterpret_cast<jint>(new ShellView(env, obj));
-}
-
-} // namespace content
« no previous file with comments | « content/shell/android/shell_view.h ('k') | content/shell/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698