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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_ H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_ H_ 6 #define CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
7 7
8 #include "components/dom_distiller/content/browser/external_feedback_reporter.h" 8 #include "components/dom_distiller/content/browser/distiller_ui_handle.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
11 namespace dom_distiller { 11 namespace dom_distiller {
12 12
13 namespace android { 13 namespace android {
14 14
15 class ExternalFeedbackReporterAndroid : public ExternalFeedbackReporter { 15 class DistillerUIHandleAndroid : public DistillerUIHandle {
16 public: 16 public:
17 ExternalFeedbackReporterAndroid() {} 17 DistillerUIHandleAndroid() {}
18 ~ExternalFeedbackReporterAndroid() override {} 18 ~DistillerUIHandleAndroid() override {}
19 19
20 // ExternalFeedbackReporter implementation. 20 // ExternalFeedbackReporter implementation.
21 void ReportExternalFeedback(content::WebContents* web_contents, 21 void ReportExternalFeedback(content::WebContents* web_contents,
22 const GURL& url, 22 const GURL& url,
23 const bool good) override; 23 const bool good) override;
24 24
25 void OpenSettings(content::WebContents* web_contents) override;
26
25 private: 27 private:
26 DISALLOW_COPY_AND_ASSIGN(ExternalFeedbackReporterAndroid); 28 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandleAndroid);
27 }; 29 };
28 30
29 // Registers the FeedbackReporter's native methods through JNI. 31 // Registers the FeedbackReporter's native methods through JNI.
30 bool RegisterFeedbackReporter(JNIEnv* env); 32 bool RegisterUIHandle(JNIEnv* env);
31 33
32 } // namespace android 34 } // namespace android
33 35
34 } // namespace dom_distiller 36 } // namespace dom_distiller
35 37
36 #endif // CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDRO ID_H_ 38 #endif // CHROME_BROWSER_ANDROID_DOM_DISTILLER_DISTILLER_UI_HANDLE_ANDROID_H_
OLDNEW
« 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