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

Unified Diff: components/dom_distiller/webui/dom_distiller_handler.h

Issue 396503003: DomDistiller: fix 0 document width (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/webui/dom_distiller_handler.h
diff --git a/components/dom_distiller/webui/dom_distiller_handler.h b/components/dom_distiller/webui/dom_distiller_handler.h
index 09d39da1df8650022959fdbada8068427b236229..f127f47cf6faff20eb5242d0e7e41725875adb91 100644
--- a/components/dom_distiller/webui/dom_distiller_handler.h
+++ b/components/dom_distiller/webui/dom_distiller_handler.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "content/public/browser/web_ui_message_handler.h"
+#include "ui/gfx/size.h"
namespace dom_distiller {
@@ -19,7 +20,8 @@ class DomDistillerService;
class DomDistillerHandler : public content::WebUIMessageHandler {
public:
// The lifetime of |service| has to outlive this handler.
- DomDistillerHandler(DomDistillerService* service, const std::string& scheme);
+ DomDistillerHandler(DomDistillerService* service, const std::string& scheme,
+ const gfx::Size& render_view_size);
virtual ~DomDistillerHandler();
// content::WebUIMessageHandler implementation.
@@ -53,6 +55,9 @@ class DomDistillerHandler : public content::WebUIMessageHandler {
// The scheme for DOM distiller articles.
std::string article_scheme_;
+ // The size to use for the RenderView created for the new WebContents.
+ gfx::Size render_view_size_;
+
// Factory for the creating refs in callbacks.
base::WeakPtrFactory<DomDistillerHandler> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698