| 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 module dom_distiller.mojom; | 5 module dom_distiller.mojom; |
| 6 | 6 |
| 7 // This service is implemented by the browser process and is used by the | 7 // This service is implemented by the browser process and is used by the |
| 8 // renderer when a distiller JavaScript function is called. | 8 // renderer when a distiller JavaScript function is called. |
| 9 interface DistillerJavaScriptService { | 9 interface DistillerJavaScriptService { |
| 10 // Handle the "distiller.sendFeedback" function. | |
| 11 HandleDistillerFeedbackCall(bool good); | |
| 12 | |
| 13 // Handle closing the overlay panel that contains Reader Mode; the | 10 // Handle closing the overlay panel that contains Reader Mode; the |
| 14 // "distiller.close" function. | 11 // "distiller.close" function. |
| 15 HandleDistillerClosePanelCall(bool animate); | 12 HandleDistillerClosePanelCall(bool animate); |
| 16 | 13 |
| 17 // Open the Android view containing settings for Reader Mode; the | 14 // Open the Android view containing settings for Reader Mode; the |
| 18 // "distiller.openSettings" function. | 15 // "distiller.openSettings" function. |
| 19 HandleDistillerOpenSettingsCall(); | 16 HandleDistillerOpenSettingsCall(); |
| 20 }; | 17 }; |
| OLD | NEW |