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

Unified Diff: headless/public/headless_web_contents.h

Issue 2226323002: Resize DevTools target frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename, add tests, fix comments/style, add support in shell. Created 4 years, 4 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: headless/public/headless_web_contents.h
diff --git a/headless/public/headless_web_contents.h b/headless/public/headless_web_contents.h
index 0ca6a588bb573334f336d73f1412c4ca8c002d45..c42657eebd29ea35d5c53c5395b65d22b5badedf 100644
--- a/headless/public/headless_web_contents.h
+++ b/headless/public/headless_web_contents.h
@@ -16,6 +16,10 @@
#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
+namespace content {
+class WebContents;
+}
+
namespace headless {
class HeadlessBrowserContextImpl;
class HeadlessBrowserImpl;
@@ -57,6 +61,9 @@ class HEADLESS_EXPORT HeadlessWebContents {
// signaled.
virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0;
+ // Return a pointer to the underlying content::WebContents.
+ virtual content::WebContents* GetWebContents() const = 0;
Sami 2016/08/10 12:11:40 Can we avoid exposing this? We don't want people a
Eric Seckler 2016/08/10 12:33:33 Done.
+
// Close this page. |HeadlessWebContents| object will be destroyed.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698