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

Side by Side Diff: chrome/browser/ui/android/infobars/translate_compact_infobar.h

Issue 2838833003: Introduces snackbar enum, & other snackbar classes on android for translate (Closed)
Patch Set: Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/translate/chrome_translate_client.h" 10 #include "chrome/browser/translate/chrome_translate_client.h"
(...skipping 30 matching lines...) Expand all
41 const std::string& translated_lang, 41 const std::string& translated_lang,
42 translate::TranslateErrors::Type error_type) override; 42 translate::TranslateErrors::Type error_type) override;
43 43
44 private: 44 private:
45 // InfoBarAndroid: 45 // InfoBarAndroid:
46 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 46 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
47 JNIEnv* env) override; 47 JNIEnv* env) override;
48 void ProcessButton(int action) override; 48 void ProcessButton(int action) override;
49 void SetJavaInfoBar( 49 void SetJavaInfoBar(
50 const base::android::JavaRef<jobject>& java_info_bar) override; 50 const base::android::JavaRef<jobject>& java_info_bar) override;
51 void CloseJavaInfoBar() override;
51 52
52 translate::TranslateInfoBarDelegate* GetDelegate(); 53 translate::TranslateInfoBarDelegate* GetDelegate();
53 translate::ContentTranslateDriver* translate_driver_; 54 translate::ContentTranslateDriver* translate_driver_;
54 55
56 int snackbar_type;
gone 2017/04/26 17:19:51 C++ member fields always end with _.
ramyasharma 2017/04/27 08:01:42 Done.
57
55 DISALLOW_COPY_AND_ASSIGN(TranslateCompactInfoBar); 58 DISALLOW_COPY_AND_ASSIGN(TranslateCompactInfoBar);
56 }; 59 };
57 60
58 // Registers the native methods through JNI. 61 // Registers the native methods through JNI.
59 bool RegisterTranslateCompactInfoBar(JNIEnv* env); 62 bool RegisterTranslateCompactInfoBar(JNIEnv* env);
60 63
61 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_ 64 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_COMPACT_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698