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

Unified Diff: mandoline/tab/frame.h

Issue 1270313006: Connects PostMessage() for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 4 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
« no previous file with comments | « components/html_viewer/html_frame_apptest.cc ('k') | mandoline/tab/frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/tab/frame.h
diff --git a/mandoline/tab/frame.h b/mandoline/tab/frame.h
index 8d051fefe3bfd7b53b16bd70c1541e3b22fc1635..7848767498fdd07a81d675c43d2b8cd51a08ac78 100644
--- a/mandoline/tab/frame.h
+++ b/mandoline/tab/frame.h
@@ -103,6 +103,10 @@ class Frame : public mojo::ViewObserver, public FrameTreeServer {
void SetView(mojo::View* view);
+ // Returns the first ancestor (starting at |this|) that has a
+ // FrameTreeClient.
+ Frame* GetAncestorWithFrameTreeClient();
+
// Adds this to |frames| and recurses through the children calling the
// same function.
void BuildFrameTree(std::vector<const Frame*>* frames) const;
@@ -138,8 +142,9 @@ class Frame : public mojo::ViewObserver, public FrameTreeServer {
void OnViewDestroying(mojo::View* view) override;
// FrameTreeServer:
- void PostMessageEventToFrame(uint32_t frame_id,
- MessageEventPtr event) override;
+ void PostMessageEventToFrame(uint32_t source_frame_id,
+ uint32_t target_frame_id,
+ HTMLMessageEventPtr event) override;
void LoadingStarted(uint32_t frame_id) override;
void LoadingStopped(uint32_t frame_id) override;
void ProgressChanged(uint32_t frame_id, double progress) override;
« no previous file with comments | « components/html_viewer/html_frame_apptest.cc ('k') | mandoline/tab/frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698