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

Side by Side Diff: components/web_view/frame_tree.h

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « components/web_view/frame_apptest.cc ('k') | components/web_view/frame_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_WEB_VIEW_FRAME_TREE_H_ 5 #ifndef COMPONENTS_WEB_VIEW_FRAME_TREE_H_
6 #define COMPONENTS_WEB_VIEW_FRAME_TREE_H_ 6 #define COMPONENTS_WEB_VIEW_FRAME_TREE_H_
7 7
8 #include "components/mus/public/interfaces/view_tree.mojom.h" 8 #include "components/mus/public/interfaces/view_tree.mojom.h"
9 #include "components/web_view/frame.h" 9 #include "components/web_view/frame.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
(...skipping 14 matching lines...) Expand all
25 // deleted. This happens if the creator of the view deletes it (say an iframe is 25 // deleted. This happens if the creator of the view deletes it (say an iframe is
26 // destroyed). 26 // destroyed).
27 class FrameTree { 27 class FrameTree {
28 public: 28 public:
29 // |view| is the view to do the initial embedding in. It is assumed |view| 29 // |view| is the view to do the initial embedding in. It is assumed |view|
30 // outlives FrameTree. 30 // outlives FrameTree.
31 // |client_properties| is the client properties for the root frame. 31 // |client_properties| is the client properties for the root frame.
32 // |root_app_id| is a unique identifier of the app providing |root_client|. 32 // |root_app_id| is a unique identifier of the app providing |root_client|.
33 // See Frame for details on app id's. 33 // See Frame for details on app id's.
34 FrameTree(uint32_t root_app_id, 34 FrameTree(uint32_t root_app_id,
35 mojo::View* view, 35 mus::View* view,
36 mojo::ViewTreeClientPtr view_tree_client, 36 mojo::ViewTreeClientPtr view_tree_client,
37 FrameTreeDelegate* delegate, 37 FrameTreeDelegate* delegate,
38 FrameTreeClient* root_client, 38 FrameTreeClient* root_client,
39 scoped_ptr<FrameUserData> user_data, 39 scoped_ptr<FrameUserData> user_data,
40 const Frame::ClientPropertyMap& client_properties); 40 const Frame::ClientPropertyMap& client_properties);
41 ~FrameTree(); 41 ~FrameTree();
42 42
43 const Frame* root() const { return root_; } 43 const Frame* root() const { return root_; }
44 Frame* root() { return root_; } 44 Frame* root() { return root_; }
45 uint32_t change_id() const { return change_id_; } 45 uint32_t change_id() const { return change_id_; }
(...skipping 12 matching lines...) Expand all
58 58
59 // Increments the change id, returning the new value. 59 // Increments the change id, returning the new value.
60 uint32_t AdvanceChangeID(); 60 uint32_t AdvanceChangeID();
61 61
62 void LoadingStateChanged(); 62 void LoadingStateChanged();
63 void TitleChanged(const mojo::String& title); 63 void TitleChanged(const mojo::String& title);
64 void ClientPropertyChanged(const Frame* source, 64 void ClientPropertyChanged(const Frame* source,
65 const mojo::String& name, 65 const mojo::String& name,
66 const mojo::Array<uint8_t>& value); 66 const mojo::Array<uint8_t>& value);
67 67
68 mojo::View* view_; 68 mus::View* view_;
69 69
70 FrameTreeDelegate* delegate_; 70 FrameTreeDelegate* delegate_;
71 71
72 // |root_| is owned by this, but a raw pointer as during destruction we still 72 // |root_| is owned by this, but a raw pointer as during destruction we still
73 // want access to it. 73 // want access to it.
74 Frame* root_; 74 Frame* root_;
75 75
76 double progress_; 76 double progress_;
77 77
78 uint32_t change_id_; 78 uint32_t change_id_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(FrameTree); 80 DISALLOW_COPY_AND_ASSIGN(FrameTree);
81 }; 81 };
82 82
83 } // namespace web_view 83 } // namespace web_view
84 84
85 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_H_ 85 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_H_
OLDNEW
« no previous file with comments | « components/web_view/frame_apptest.cc ('k') | components/web_view/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698