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

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

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 #include "chrome/browser/ui/android/snackbars/translate_snackbar.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "jni/TranslateSnackbarController_jni.h"
9
10 TranslateSnackbar::TranslateSnackbar(int snackbar_type) {
11 type_ = snackbar_type;
12 }
13
14 void TranslateSnackbar::ToggleTranslateOption(
15 JNIEnv* env,
16 const base::android::JavaParamRef<jobject>& obj) {
17 // TODO(ramyasharma): Implement.
18 }
19
20 // Native JNI methods -------------------------------------------------------
21
22 // static
23 bool RegisterTranslateSnackbar(JNIEnv* env) {
24 return RegisterNativesImpl(env);
25 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/snackbars/translate_snackbar.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698