Index: third_party/WebKit/Source/web/FrameletClientImpl.h |
diff --git a/third_party/WebKit/Source/web/FrameletClientImpl.h b/third_party/WebKit/Source/web/FrameletClientImpl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2fd112de09a0b8911fc8c8f08c72682e3f851d1f |
--- /dev/null |
+++ b/third_party/WebKit/Source/web/FrameletClientImpl.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2015 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 FrameletClientImpl_h |
+#define FrameletClientImpl_h |
+ |
+#include "core/frame/FrameletClient.h" |
+ |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+class WebFrameletImpl; |
+ |
+class FrameletClientImpl final : public FrameletClient { |
+public: |
+ static PassOwnPtrWillBeRawPtr<FrameletClientImpl> create(WebFrameletImpl*); |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+ // FrameletClient overrides: |
+ void didAttach() override; |
+ void didDetach() override; |
+ void forwardInputEvent(Event*) override; |
+ void frameRectsChanged(const IntRect& frameRect) override; |
+ void updateFocus(bool, WebFocusType) override; |
+ void updateVisibility(bool) override; |
+ |
+ WebFrameletImpl* webFramelet() const { return m_webFramelet; } |
+ |
+private: |
+ explicit FrameletClientImpl(WebFrameletImpl*); |
+ |
+ RawPtrWillBeMember<WebFrameletImpl> m_webFramelet; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // FrameletClientImpl_h |