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 #include "mandoline/tab/frame_tree.h"
7 #include "mandoline/tab/frame_user_data.h"
11 FrameTree::FrameTree(mojo::View
* view
,
12 FrameTreeDelegate
* delegate
,
13 FrameTreeClient
* root_client
,
14 scoped_ptr
<FrameUserData
> user_data
)
19 ViewOwnership::DOESNT_OWN_VIEW
,
25 FrameTree::~FrameTree() {
28 Frame
* FrameTree::CreateAndAddFrame(mojo::View
* view
,
30 FrameTreeClient
* client
,
31 scoped_ptr
<FrameUserData
> user_data
) {
33 new Frame(this, view
, ViewOwnership::OWNS_VIEW
, client
, user_data
.Pass());
38 } // namespace mandoline