| 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 // Open the UI settings for dom distiller. | 21 // Open the UI settings for dom distiller. |
| 22 virtual void OpenSettings(content::WebContents* web_contents) = 0; | 22 virtual void OpenSettings(content::WebContents* web_contents) = 0; |
| 23 | 23 |
| 24 // Close the Reader Mode panel. | |
| 25 virtual void ClosePanel(bool animate) = 0; | |
| 26 | |
| 27 private: | 24 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandle); | 25 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandle); |
| 29 }; | 26 }; |
| 30 | 27 |
| 31 } // namespace dom_distiller | 28 } // namespace dom_distiller |
| 32 | 29 |
| 33 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ | 30 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_ |
| OLD | NEW |