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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.cc

Issue 67573003: Android: moves chrome/ to use long for JNI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" 5 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "chrome/browser/ui/android/window_android_helper.h" 9 #include "chrome/browser/ui/android/window_android_helper.h"
10 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" 10 #include "chrome/browser/ui/autofill/autofill_popup_controller.h"
(...skipping 12 matching lines...) Expand all
23 AutofillPopupViewAndroid::~AutofillPopupViewAndroid() {} 23 AutofillPopupViewAndroid::~AutofillPopupViewAndroid() {}
24 24
25 void AutofillPopupViewAndroid::Show() { 25 void AutofillPopupViewAndroid::Show() {
26 JNIEnv* env = base::android::AttachCurrentThread(); 26 JNIEnv* env = base::android::AttachCurrentThread();
27 ui::ViewAndroid* view_android = controller_->container_view(); 27 ui::ViewAndroid* view_android = controller_->container_view();
28 28
29 DCHECK(view_android); 29 DCHECK(view_android);
30 30
31 java_object_.Reset(Java_AutofillPopupGlue_create( 31 java_object_.Reset(Java_AutofillPopupGlue_create(
32 env, 32 env,
33 reinterpret_cast<jint>(this), 33 reinterpret_cast<intptr_t>(this),
34 view_android->GetWindowAndroid()->GetJavaObject().obj(), 34 view_android->GetWindowAndroid()->GetJavaObject().obj(),
35 view_android->GetJavaObject().obj())); 35 view_android->GetJavaObject().obj()));
36 36
37 UpdateBoundsAndRedrawPopup(); 37 UpdateBoundsAndRedrawPopup();
38 } 38 }
39 39
40 void AutofillPopupViewAndroid::Hide() { 40 void AutofillPopupViewAndroid::Hide() {
41 JNIEnv* env = base::android::AttachCurrentThread(); 41 JNIEnv* env = base::android::AttachCurrentThread();
42 Java_AutofillPopupGlue_hide(env, java_object_.obj()); 42 Java_AutofillPopupGlue_hide(env, java_object_.obj());
43 delete this; 43 delete this;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return RegisterNativesImpl(env); 93 return RegisterNativesImpl(env);
94 } 94 }
95 95
96 // static 96 // static
97 AutofillPopupView* AutofillPopupView::Create( 97 AutofillPopupView* AutofillPopupView::Create(
98 AutofillPopupController* controller) { 98 AutofillPopupController* controller) {
99 return new AutofillPopupViewAndroid(controller); 99 return new AutofillPopupViewAndroid(controller);
100 } 100 }
101 101
102 } // namespace autofill 102 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698