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

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

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
(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.
gone 2017/04/26 17:19:51 You don't actually need to create this object, do
ramyasharma 2017/04/27 08:01:42 That is correct as of now. However, hopefully in t
18 }
19
20 // Native JNI methods -------------------------------------------------------
21
22 // static
23 bool RegisterTranslateSnackbar(JNIEnv* env) {
24 return RegisterNativesImpl(env);
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698