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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/snackbars/translate_snackbar.cc
diff --git a/chrome/browser/ui/android/snackbars/translate_snackbar.cc b/chrome/browser/ui/android/snackbars/translate_snackbar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c72dc6d6e90149a9f82165701c903f830ff58ab4
--- /dev/null
+++ b/chrome/browser/ui/android/snackbars/translate_snackbar.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "chrome/browser/ui/android/snackbars/translate_snackbar.h"
+
+#include "base/memory/ptr_util.h"
+#include "jni/TranslateSnackbarController_jni.h"
+
+TranslateSnackbar::TranslateSnackbar(int snackbar_type) {
+ type = snackbar_type;
+}
+
+void TranslateSnackbar::ToggleTranslateOption(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ // 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
+}
+
+// Native JNI methods -------------------------------------------------------
+
+// static
+bool RegisterTranslateSnackbar(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}

Powered by Google App Engine
This is Rietveld 408576698