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

Unified Diff: components/view_manager/public/cpp/lib/view.cc

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 side-by-side diff with in-line comments
Download patch
Index: components/view_manager/public/cpp/lib/view.cc
diff --git a/components/view_manager/public/cpp/lib/view.cc b/components/view_manager/public/cpp/lib/view.cc
index a0e1eea030747c1e90fd065857cd9f0f77717fae..8de46f18ccd9e480a0dd43c6ea3e0e3310759afd 100644
--- a/components/view_manager/public/cpp/lib/view.cc
+++ b/components/view_manager/public/cpp/lib/view.cc
@@ -280,6 +280,13 @@ bool View::IsDrawn() const {
return parent_ ? parent_->IsDrawn() : drawn_;
}
+void View::SetAccessPolicy(uint32_t policy_bitmask) {
+ if (connection_) {
+ static_cast<ViewTreeClientImpl*>(connection_)
+ ->SetAccessPolicy(id_, policy_bitmask);
+ }
+}
+
void View::AddObserver(ViewObserver* observer) {
observers_.AddObserver(observer);
}
« no previous file with comments | « components/view_manager/default_access_policy.cc ('k') | components/view_manager/public/cpp/lib/view_tree_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698