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

Side by Side Diff: components/view_manager/public/cpp/view_tree_connection.h

Issue 1317713006: Changes around how embed roots are set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/view_manager/public/cpp/types.h" 10 #include "components/view_manager/public/cpp/types.h"
(...skipping 23 matching lines...) Expand all
34 virtual View* GetViewById(Id id) = 0; 34 virtual View* GetViewById(Id id) = 0;
35 35
36 // Returns the focused view; null if focus is not yet known or another app is 36 // Returns the focused view; null if focus is not yet known or another app is
37 // focused. 37 // focused.
38 virtual View* GetFocusedView() = 0; 38 virtual View* GetFocusedView() = 0;
39 39
40 // Creates and returns a new View (which is owned by the ViewManager). Views 40 // Creates and returns a new View (which is owned by the ViewManager). Views
41 // are initially hidden, use SetVisible(true) to show. 41 // are initially hidden, use SetVisible(true) to show.
42 virtual View* CreateView() = 0; 42 virtual View* CreateView() = 0;
43 43
44 // Set view_tree.mojom for details. 44 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified.
45 virtual void SetEmbedRoot() = 0; 45 virtual bool IsEmbedRoot() = 0;
46 }; 46 };
47 47
48 } // namespace mojo 48 } // namespace mojo
49 49
50 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_ 50 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_
OLDNEW
« no previous file with comments | « components/view_manager/public/cpp/view.h ('k') | components/view_manager/public/interfaces/view_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698