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

Unified Diff: Source/core/frame/Frame.h

Issue 104433003: Attach a WebLayer to a frame element for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved WebLayer back to Frame again. Created 7 years 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 | Source/core/frame/Frame.cpp » ('j') | Source/core/rendering/CompositedLayerMapping.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Frame.h
diff --git a/Source/core/frame/Frame.h b/Source/core/frame/Frame.h
index 6c38bceb8f3e6555c648ff2c2218c8e504961ac8..8148fdd88fd5b082abb80a3b211251e43332a690 100644
--- a/Source/core/frame/Frame.h
+++ b/Source/core/frame/Frame.h
@@ -37,6 +37,10 @@
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
+namespace blink {
+class WebLayer;
+}
+
namespace WebCore {
class AnimationController;
@@ -152,6 +156,9 @@ namespace WebCore {
int64_t frameID() const { return m_frameInit->frameID(); }
+ void setPlatformLayer(blink::WebLayer* platformLayer) { m_platformLayer = platformLayer; }
eseidel 2013/12/11 18:50:01 I would give this a less generic name. setRemoteP
ncarter (slow) 2013/12/11 21:28:11 Is the oilpan comparison apt? I think our design i
+ blink::WebLayer* platformLayer() const { return m_platformLayer; }
+
// ======== All public functions below this point are candidates to move out of Frame into another class. ========
bool inScope(TreeScope*) const;
@@ -236,6 +243,9 @@ namespace WebCore {
#endif
bool m_inViewSourceMode;
+
+ // This layer is for frames whose contents are being rendered in a separate process.
eseidel 2013/12/11 18:50:01 You could just convey that in the member name.
kenrb 2013/12/11 22:44:56 Done.
+ blink::WebLayer* m_platformLayer;
};
inline void Frame::init()
« no previous file with comments | « no previous file | Source/core/frame/Frame.cpp » ('j') | Source/core/rendering/CompositedLayerMapping.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698