Index: third_party/WebKit/Source/core/frame/FrameletView.h |
diff --git a/third_party/WebKit/Source/core/frame/FrameletView.h b/third_party/WebKit/Source/core/frame/FrameletView.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e7928cb0187ff786b05a3e8e7982a0d36d24956 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/frame/FrameletView.h |
@@ -0,0 +1,45 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef FrameletView_h |
+#define FrameletView_h |
+ |
+#include "platform/Widget.h" |
+#include "platform/geometry/IntRect.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class Framelet; |
+ |
+class FrameletView final : public Widget { |
+public: |
+ static PassRefPtrWillBeRawPtr<FrameletView> create(Framelet*); |
+ |
+ ~FrameletView() override; |
+ |
+ // Widget overrides: |
+ void dispose() override; |
+ void frameRectsChanged() override; |
+ void hide() override; |
+ void invalidateRect(const IntRect&) override; |
+ bool isFrameletView() const override { return true; } |
+ void setFocus(bool, WebFocusType) override; |
+ void setFrameRect(const IntRect&) override; |
+ void setParentVisible(bool) override; |
+ void show() override; |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ explicit FrameletView(Framelet*); |
+ |
+ RefPtrWillBeMember<Framelet> m_framelet; |
+}; |
+ |
+DEFINE_TYPE_CASTS(FrameletView, Widget, widget, widget->isFrameletView(), widget.isFrameletView()); |
+ |
+} // namespace blink |
+ |
+#endif // FrameletView_h |