| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CORE_VIEWER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "ui/gfx/size.h" |
| 14 | 15 |
| 15 namespace dom_distiller { | 16 namespace dom_distiller { |
| 16 | 17 |
| 17 class DistilledArticleProto; | 18 class DistilledArticleProto; |
| 18 class DistilledPageProto; | 19 class DistilledPageProto; |
| 19 class DomDistillerServiceInterface; | 20 class DomDistillerServiceInterface; |
| 20 class ViewerHandle; | 21 class ViewerHandle; |
| 21 class ViewRequestDelegate; | 22 class ViewRequestDelegate; |
| 22 | 23 |
| 23 namespace viewer { | 24 namespace viewer { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const std::string GetCss(); | 58 const std::string GetCss(); |
| 58 | 59 |
| 59 // Returns the default JS to be used for a viewer. | 60 // Returns the default JS to be used for a viewer. |
| 60 const std::string GetJavaScript(); | 61 const std::string GetJavaScript(); |
| 61 | 62 |
| 62 // Based on the given path, calls into the DomDistillerServiceInterface for | 63 // Based on the given path, calls into the DomDistillerServiceInterface for |
| 63 // viewing distilled content based on the |path|. | 64 // viewing distilled content based on the |path|. |
| 64 scoped_ptr<ViewerHandle> CreateViewRequest( | 65 scoped_ptr<ViewerHandle> CreateViewRequest( |
| 65 DomDistillerServiceInterface* dom_distiller_service, | 66 DomDistillerServiceInterface* dom_distiller_service, |
| 66 const std::string& path, | 67 const std::string& path, |
| 67 ViewRequestDelegate* view_request_delegate); | 68 ViewRequestDelegate* view_request_delegate, |
| 69 const gfx::Size& render_view_size); |
| 68 | 70 |
| 69 } // namespace viewer | 71 } // namespace viewer |
| 70 | 72 |
| 71 } // namespace dom_distiller | 73 } // namespace dom_distiller |
| 72 | 74 |
| 73 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ | 75 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ |
| OLD | NEW |