OLD | NEW |
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 COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace dom_distiller { | 12 namespace dom_distiller { |
13 | 13 |
14 // ExternalFeedbackReporter handles reporting distillation quality through an | 14 // ExternalFeedbackReporter handles reporting distillation quality through an |
15 // external source. | 15 // external source. |
16 class DistillerUIHandle { | 16 class DistillerUIHandle { |
17 public: | 17 public: |
18 DistillerUIHandle() {} | 18 DistillerUIHandle() {} |
19 virtual ~DistillerUIHandle() {} | 19 virtual ~DistillerUIHandle() {} |
20 | 20 |
21 // Start an external form to record user feedback. | |
22 virtual void ReportExternalFeedback(content::WebContents* web_contents, | |
23 const GURL& url, | |
24 const bool good) = 0; | |
25 | |
26 // Open the UI settings for dom distiller. | 21 // Open the UI settings for dom distiller. |
27 virtual void OpenSettings(content::WebContents* web_contents) = 0; | 22 virtual void OpenSettings(content::WebContents* web_contents) = 0; |
28 | 23 |
29 // Close the Reader Mode panel. | 24 // Close the Reader Mode panel. |
30 virtual void ClosePanel(bool animate) = 0; | 25 virtual void ClosePanel(bool animate) = 0; |
31 | 26 |
32 private: | 27 private: |
33 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandle); | 28 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandle); |
34 }; | 29 }; |
35 | 30 |
36 } // namespace dom_distiller | 31 } // namespace dom_distiller |
37 | 32 |
38 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ | 33 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ |
OLD | NEW |