summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc6
-rw-r--r--chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc
index 4637ebc..ba08bea 100644
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc
@@ -95,6 +95,12 @@ void WebIntentInlineDispositionDelegate::RenderViewCreated(
render_view_host->EnableAutoResize(
picker_->GetMinInlineDispositionSize(),
picker_->GetMaxInlineDispositionSize());
+ render_view_host_ = render_view_host;
+}
+
+void WebIntentInlineDispositionDelegate::DocumentAvailableInMainFrame() {
+ std::string css = "body { min-width:400px; }";
+ render_view_host_->InsertCSS(string16(), css);
}
content::WebContents* WebIntentInlineDispositionDelegate::
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
index f118aba..08a8be6 100644
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
@@ -53,6 +53,7 @@ class WebIntentInlineDispositionDelegate
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void RenderViewCreated(
content::RenderViewHost* render_view_host) OVERRIDE;
+ virtual void DocumentAvailableInMainFrame() OVERRIDE;
// ExtensionFunctionDispatcher::Delegate
virtual extensions::WindowController* GetExtensionWindowController()
@@ -70,6 +71,9 @@ class WebIntentInlineDispositionDelegate
Browser* browser_; // Weak pointer.
+ // The RVH responsible for the RenderView. Weak pointer.
+ content::RenderViewHost* render_view_host_;
+
// Dispatch handler for extension APIs.
ExtensionFunctionDispatcher extension_function_dispatcher_;
};