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

Unified Diff: chrome/browser/android/dom_distiller/distiller_ui_handle_android.h

Issue 1386043002: Open distiller UI setting through JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment nits Created 5 years, 2 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/android/dom_distiller/distiller_ui_handle_android.h
diff --git a/chrome/browser/android/dom_distiller/external_feedback_reporter_android.h b/chrome/browser/android/dom_distiller/distiller_ui_handle_android.h
similarity index 51%
rename from chrome/browser/android/dom_distiller/external_feedback_reporter_android.h
rename to chrome/browser/android/dom_distiller/distiller_ui_handle_android.h
index a88d8260d609db03ffd23e0fe8979473e07ed0f6..7941155f97dbeb4f3dd7ea040cd766c22d981d13 100644
--- a/chrome/browser/android/dom_distiller/external_feedback_reporter_android.h
+++ b/chrome/browser/android/dom_distiller/distiller_ui_handle_android.h
@@ -2,35 +2,37 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_
-#define CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_
+#ifndef CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
+#define CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
-#include "components/dom_distiller/content/browser/external_feedback_reporter.h"
+#include "components/dom_distiller/content/browser/distiller_ui_handle.h"
#include "content/public/browser/web_contents.h"
namespace dom_distiller {
namespace android {
-class ExternalFeedbackReporterAndroid : public ExternalFeedbackReporter {
+class DistillerUIHandleAndroid : public DistillerUIHandle {
public:
- ExternalFeedbackReporterAndroid() {}
- ~ExternalFeedbackReporterAndroid() override {}
+ DistillerUIHandleAndroid() {}
+ ~DistillerUIHandleAndroid() override {}
// ExternalFeedbackReporter implementation.
void ReportExternalFeedback(content::WebContents* web_contents,
const GURL& url,
const bool good) override;
+ void OpenSettings(content::WebContents* web_contents) override;
+
private:
- DISALLOW_COPY_AND_ASSIGN(ExternalFeedbackReporterAndroid);
+ DISALLOW_COPY_AND_ASSIGN(DistillerUIHandleAndroid);
};
// Registers the FeedbackReporter's native methods through JNI.
-bool RegisterFeedbackReporter(JNIEnv* env);
+bool RegisterUIHandle(JNIEnv* env);
} // namespace android
} // namespace dom_distiller
-#endif // CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_
+#endif // CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/dom_distiller/distiller_ui_handle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698