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

Unified Diff: public/web/WebLocalFrame.h

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 years, 7 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
« no previous file with comments | « public/web/WebFrameClient.h ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebLocalFrame.h
diff --git a/public/web/WebLocalFrame.h b/public/web/WebLocalFrame.h
index 6b13bc15b19f1fcb57a3c730b23f6707cbb42427..1079e9133c45f444b6a8bcd4e324ba207ea3fb80 100644
--- a/public/web/WebLocalFrame.h
+++ b/public/web/WebLocalFrame.h
@@ -11,6 +11,7 @@ namespace blink {
enum class WebAppBannerPromptReply;
enum class WebSandboxFlags;
+enum class WebTreeScopeType;
class WebAutofillClient;
class WebContentSettingsClient;
class WebDevToolsAgent;
@@ -28,6 +29,8 @@ class WebLocalFrame : public WebFrame {
public:
// Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
// It is valid to pass a null client pointer.
+ BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*);
+ // TODO(dcheng): Remove this deprecated overload.
BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*);
// Returns the WebFrame associated with the current V8 context. This
@@ -142,6 +145,9 @@ public:
// If the provided node is an image, reload the image bypassing the cache.
virtual void reloadImage(const WebNode&) = 0;
+
+protected:
+ explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
};
} // namespace blink
« no previous file with comments | « public/web/WebFrameClient.h ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698