Index: chrome/browser/ui/android/snackbars/translate_snackbar.h |
diff --git a/chrome/browser/ui/android/snackbars/translate_snackbar.h b/chrome/browser/ui/android/snackbars/translate_snackbar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..00f62a2f7263d4e68a7bc19eb6b2cea20a095c4a |
--- /dev/null |
+++ b/chrome/browser/ui/android/snackbars/translate_snackbar.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2017 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. |
+ |
+#ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H_ |
+#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H_ |
+ |
+#include <stddef.h> |
+ |
+#include "base/android/jni_android.h" |
+#include "base/android/scoped_java_ref.h" |
+#include "base/macros.h" |
+ |
+class TranslateSnackbar { |
+ public: |
+ explicit TranslateSnackbar(int snackbar_type); |
+ |
+ void ToggleTranslateOption(JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj); |
+ |
+ private: |
+ int type; |
gone
2017/04/26 17:19:51
member fields end with _.
https://google.github.io
ramyasharma
2017/04/27 08:01:42
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(TranslateSnackbar); |
+}; |
+ |
+// Registers the native methods through JNI. |
+bool RegisterTranslateSnackbar(JNIEnv* env); |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_TRANSLATE_SNACKBAR_H |