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

Side by Side Diff: chrome/browser/ui/android/snackbars/translate_snackbar.h

Issue 2840933003: Shows snackbar in translate infobar, after certain user actions. (Closed)
Patch Set: Created 3 years, 7 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698