summaryrefslogtreecommitdiffstats
path: root/ui/views/views_delegate.h
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 19:42:18 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 19:42:18 +0000
commit24af497c4c0881693cc47516ac3845f283bf07bc (patch)
tree50594b19ab8f40b4c7b0b74d2134220c622593b1 /ui/views/views_delegate.h
parentf1dc1b19c71b94689eb0fc6309993ec591600da0 (diff)
downloadchromium_src-24af497c4c0881693cc47516ac3845f283bf07bc.zip
chromium_src-24af497c4c0881693cc47516ac3845f283bf07bc.tar.gz
chromium_src-24af497c4c0881693cc47516ac3845f283bf07bc.tar.bz2
Re-implement the screensaver to use WebView instead of ExtensionDialogHost.
Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/views_delegate.h')
-rw-r--r--ui/views/views_delegate.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index d1fc739..11e38f5 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -17,6 +17,12 @@
#include "ui/base/ui_base_types.h"
#include "ui/views/views_export.h"
+namespace content {
+class WebContents;
+class BrowserContext;
+class SiteInstance;
+}
+
namespace gfx {
class Rect;
}
@@ -108,6 +114,11 @@ class VIEWS_EXPORT ViewsDelegate {
virtual NativeWidgetHelperAura* CreateNativeWidgetHelper(
NativeWidgetAura* native_widget) = 0;
#endif
+
+ // Creates a web contents. This will return NULL unless overriden.
+ virtual content::WebContents* CreateWebContents(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* site_instance) = 0;
};
} // namespace views