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

Unified Diff: blimp/client/session/tab_control_feature_android.cc

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/session/tab_control_feature_android.cc
diff --git a/blimp/client/session/tab_control_feature_android.cc b/blimp/client/session/tab_control_feature_android.cc
deleted file mode 100644
index ad34e3e9559c66f2af56e80ddbfc55397e539ac5..0000000000000000000000000000000000000000
--- a/blimp/client/session/tab_control_feature_android.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2015 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/session/tab_control_feature_android.h"
-
-#include "blimp/client/session/blimp_client_session_android.h"
-#include "blimp/client/session/tab_control_feature.h"
-#include "jni/TabControlFeature_jni.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace blimp {
-namespace client {
-
-static jlong Init(JNIEnv* env,
- const JavaParamRef<jobject>& jobj,
- const JavaParamRef<jobject>& blimp_client_session) {
- BlimpClientSession* client_session =
- BlimpClientSessionAndroid::FromJavaObject(env,
- blimp_client_session.obj());
-
- return reinterpret_cast<intptr_t>(
- new TabControlFeatureAndroid(env,
- jobj,
- client_session->GetTabControlFeature()));
-}
-
-// static
-bool TabControlFeatureAndroid::RegisterJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-TabControlFeatureAndroid::TabControlFeatureAndroid(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& jobj,
- TabControlFeature* tab_control_feature)
- : tab_control_feature_(tab_control_feature) {
- java_obj_.Reset(env, jobj);
-}
-
-TabControlFeatureAndroid::~TabControlFeatureAndroid() {}
-
-void TabControlFeatureAndroid::Destroy(JNIEnv* env,
- const JavaParamRef<jobject>& jobj) {
- delete this;
-}
-
-void TabControlFeatureAndroid::OnContentAreaSizeChanged(
- JNIEnv* env,
- const JavaParamRef<jobject>& jobj,
- jint width,
- jint height,
- jfloat dp_to_px) {
- tab_control_feature_->SetSizeAndScale(gfx::Size(width, height), dp_to_px);
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/session/tab_control_feature_android.h ('k') | blimp/client/session/tab_control_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698