1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MANDOLINE_TAB_FRAME_TREE_H_
6 #define MANDOLINE_TAB_FRAME_TREE_H_
8 #include "mandoline/tab/frame.h"
12 // FrameTree manages the set of Frames that comprise a single url. FrameTree
13 // owns the root Frame and each Frames owns its children. Frames are
14 // automatically deleted and removed from the tree if the corresponding view is
15 // deleted. This happens if the creator of the view deletes it (say an iframe is
19 // |view| is the view to do the initial embedding in. It is assumed |view|
20 // outlives FrameTree.
21 explicit FrameTree(mojo::View
* view
);
24 Frame
* root() { return &root_
; }
31 DISALLOW_COPY_AND_ASSIGN(FrameTree
);
34 } // namespace mandoline
36 #endif // MANDOLINE_TAB_FRAME_TREE_H_