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

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

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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
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
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameletClient.h ('k') | third_party/WebKit/Source/core/frame/FrameletView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698