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

Side by Side Diff: chrome/browser/ui/android/infobars/translate_infobar.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/infobars/translate_infobar.h" 5 #include "chrome/browser/ui/android/infobars/translate_infobar.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/jni_array.h" 12 #include "base/android/jni_array.h"
13 #include "base/android/jni_string.h" 13 #include "base/android/jni_string.h"
14 #include "base/android/jni_weak_ref.h" 14 #include "base/android/jni_weak_ref.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "chrome/browser/translate/chrome_translate_client.h" 16 #include "chrome/browser/translate/chrome_translate_client.h"
17 #include "components/translate/core/browser/translate_infobar_delegate.h" 17 #include "components/translate/core/browser/translate_infobar_delegate.h"
18 #include "jni/TranslateInfoBar_jni.h" 18 #include "jni/TranslateInfoBar_jni.h"
19 19
20 using base::android::JavaParamRef;
21 using base::android::ScopedJavaLocalRef;
22
20 // ChromeTranslateClient 23 // ChromeTranslateClient
21 // ---------------------------------------------------------- 24 // ----------------------------------------------------------
22 25
23 std::unique_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar( 26 std::unique_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar(
24 std::unique_ptr<translate::TranslateInfoBarDelegate> delegate) const { 27 std::unique_ptr<translate::TranslateInfoBarDelegate> delegate) const {
25 return base::WrapUnique(new TranslateInfoBar(std::move(delegate))); 28 return base::WrapUnique(new TranslateInfoBar(std::move(delegate)));
26 } 29 }
27 30
28 31
29 // TranslateInfoBar ----------------------------------------------------------- 32 // TranslateInfoBar -----------------------------------------------------------
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 translate::TranslateInfoBarDelegate* TranslateInfoBar::GetDelegate() { 153 translate::TranslateInfoBarDelegate* TranslateInfoBar::GetDelegate() {
151 return delegate()->AsTranslateInfoBarDelegate(); 154 return delegate()->AsTranslateInfoBarDelegate();
152 } 155 }
153 156
154 157
155 // Native JNI methods --------------------------------------------------------- 158 // Native JNI methods ---------------------------------------------------------
156 159
157 bool RegisterTranslateInfoBarDelegate(JNIEnv* env) { 160 bool RegisterTranslateInfoBarDelegate(JNIEnv* env) {
158 return RegisterNativesImpl(env); 161 return RegisterNativesImpl(env);
159 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698