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

Unified Diff: blimp/client/core/contents/android/blimp_navigation_controller_impl_android.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/core/contents/android/blimp_navigation_controller_impl_android.cc
diff --git a/blimp/client/core/contents/android/blimp_navigation_controller_impl_android.cc b/blimp/client/core/contents/android/blimp_navigation_controller_impl_android.cc
deleted file mode 100644
index c8344563b5eed60696fb80816e85a9a1e077d747..0000000000000000000000000000000000000000
--- a/blimp/client/core/contents/android/blimp_navigation_controller_impl_android.cc
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright 2016 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 "blimp/client/core/contents/android/blimp_navigation_controller_impl_android.h"
-
-#include <memory>
-
-#include "base/android/jni_android.h"
-#include "base/android/jni_string.h"
-#include "base/android/scoped_java_ref.h"
-#include "base/memory/ptr_util.h"
-#include "jni/BlimpNavigationControllerImpl_jni.h"
-
-namespace blimp {
-namespace client {
-
-// static
-bool BlimpNavigationControllerImplAndroid::RegisterJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-// static
-BlimpNavigationControllerImplAndroid*
-BlimpNavigationControllerImplAndroid::FromJavaObject(
- JNIEnv* env,
- const base::android::JavaRef<jobject>& jobj) {
- return reinterpret_cast<BlimpNavigationControllerImplAndroid*>(
- Java_BlimpNavigationControllerImpl_getNativePtr(env, jobj));
-}
-
-base::android::ScopedJavaLocalRef<jobject>
-BlimpNavigationControllerImplAndroid::GetJavaObject() {
- return base::android::ScopedJavaLocalRef<jobject>(java_obj_);
-}
-
-BlimpNavigationControllerImplAndroid::BlimpNavigationControllerImplAndroid(
- BlimpNavigationControllerImpl* blimp_navigation_controller_impl)
- : blimp_navigation_controller_impl_(blimp_navigation_controller_impl) {
- JNIEnv* env = base::android::AttachCurrentThread();
- java_obj_.Reset(env, Java_BlimpNavigationControllerImpl_create(
- env, reinterpret_cast<intptr_t>(this))
- .obj());
-}
-
-BlimpNavigationControllerImplAndroid::~BlimpNavigationControllerImplAndroid() {
- Java_BlimpNavigationControllerImpl_clearNativePtr(
- base::android::AttachCurrentThread(), java_obj_);
-}
-
-void BlimpNavigationControllerImplAndroid::LoadURL(
- JNIEnv* env,
- jobject jobj,
- const base::android::JavaParamRef<jstring>& jurl) {
- GURL url = GURL(base::android::ConvertJavaStringToUTF8(env, jurl));
- blimp_navigation_controller_impl_->LoadURL(url);
-}
-
-base::android::ScopedJavaLocalRef<jstring>
-BlimpNavigationControllerImplAndroid::GetURL(JNIEnv* env, jobject jobj) {
- GURL url = blimp_navigation_controller_impl_->GetURL();
- return base::android::ConvertUTF8ToJavaString(env, url.spec());
-}
-
-base::android::ScopedJavaLocalRef<jstring>
-BlimpNavigationControllerImplAndroid::GetTitle(JNIEnv* env, jobject jobj) {
- std::string title = blimp_navigation_controller_impl_->GetTitle();
- return base::android::ConvertUTF8ToJavaString(env, title);
-}
-
-jboolean BlimpNavigationControllerImplAndroid::CanGoBack(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) {
- return blimp_navigation_controller_impl_->CanGoBack();
-}
-
-jboolean BlimpNavigationControllerImplAndroid::CanGoForward(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) {
- return blimp_navigation_controller_impl_->CanGoForward();
-}
-
-void BlimpNavigationControllerImplAndroid::GoBack(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) {
- blimp_navigation_controller_impl_->GoBack();
-}
-
-void BlimpNavigationControllerImplAndroid::GoForward(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) {
- blimp_navigation_controller_impl_->GoForward();
-}
-
-void BlimpNavigationControllerImplAndroid::Reload(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) {
- blimp_navigation_controller_impl_->Reload();
-}
-
-} // namespace client
-} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698