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

Unified Diff: components/framelet/browser/framelet_guest.h

Issue 1529653002: Prototype FrameletGuest/Container Class stubs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/framelet/browser/BUILD.gn ('k') | components/framelet/browser/framelet_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/framelet/browser/framelet_guest.h
diff --git a/components/framelet/browser/framelet_guest.h b/components/framelet/browser/framelet_guest.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb407b8b0a04b1cc17e1dd6000533e49221729e2
--- /dev/null
+++ b/components/framelet/browser/framelet_guest.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 COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_
+#define COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_
+
+#include "components/guest_view/browser/guest_view.h"
+
+namespace guest_view {
+
+class FrameletGuest : public guest_view::GuestView<FrameletGuest> {
+ public:
+ static const char Type[];
+
+ static GuestViewBase* Create(content::WebContents* owner_web_contents);
+
+ // content::WebContentsDelegate implementation.
+ bool HandleContextMenu(const content::ContextMenuParams& params) override;
+
+ // GuestViewBase implementation.
+ const char* GetAPINamespace() const override;
+ int GetTaskPrefix() const override;
+ void CreateWebContents(
+ const base::DictionaryValue& create_params,
+ const GuestViewBase::WebContentsCreatedCallback& callback) override;
+ void DidAttachToEmbedder() override;
+
+ private:
+ FrameletGuest(content::WebContents* owner_web_contents);
+ ~FrameletGuest() override;
+
+ GURL url_;
+
+ DISALLOW_COPY_AND_ASSIGN(FrameletGuest);
+};
+
+} // namespace guest_view
+#endif // COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_
« no previous file with comments | « components/framelet/browser/BUILD.gn ('k') | components/framelet/browser/framelet_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698