| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H_ | |
| 6 #define CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include "base/android/jni_android.h" | |
| 11 #include "base/android/scoped_java_ref.h" | |
| 12 #include "base/macros.h" | |
| 13 | |
| 14 class TranslateSnackbar { | |
| 15 public: | |
| 16 explicit TranslateSnackbar(int snackbar_type); | |
| 17 | |
| 18 void ToggleTranslateOption(JNIEnv* env, | |
| 19 const base::android::JavaParamRef<jobject>& obj); | |
| 20 | |
| 21 private: | |
| 22 int type_; | |
| 23 | |
| 24 DISALLOW_COPY_AND_ASSIGN(TranslateSnackbar); | |
| 25 }; | |
| 26 | |
| 27 // Registers the native methods through JNI. | |
| 28 bool RegisterTranslateSnackbar(JNIEnv* env); | |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H_ | |
| OLD | NEW |