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

Unified Diff: third_party/WebKit/Source/core/frame/WebLocalFrameBase.h

Issue 2867073005: Provide downcasts for WebLocalFrameBase using DEFINE_TYPE_CASTS macro. (Closed)
Patch Set: Created 3 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 | « no previous file | third_party/WebKit/Source/web/WebDOMFileSystem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/WebLocalFrameBase.h
diff --git a/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h b/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h
index 9679281158e46567848ed60dbc811134572cb6a1..340ad4ff12ca97d6ee82bb5c7efc3d1d2ba72b44 100644
--- a/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h
+++ b/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h
@@ -10,6 +10,7 @@
namespace blink {
+class FrameView;
class LocalFrame;
class Node;
class WebFrameClient;
@@ -34,10 +35,19 @@ class WebLocalFrameBase : public WebLocalFrame {
virtual WebTextCheckClient* TextCheckClient() const = 0;
virtual void SetContextMenuNode(Node*) = 0;
virtual void ClearContextMenuNode() = 0;
+ virtual LocalFrame* GetFrame() const = 0;
+ virtual FrameView* GetFrameView() const = 0;
protected:
explicit WebLocalFrameBase(WebTreeScopeType scope) : WebLocalFrame(scope) {}
};
-}
+
+DEFINE_TYPE_CASTS(WebLocalFrameBase,
+ WebFrame,
+ frame,
+ frame->IsWebLocalFrame(),
+ frame.IsWebLocalFrame());
+
+} // namespace blink
#endif // WebLocalFrameBase_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebDOMFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698