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

Unified Diff: mojo/services/view_manager/view_manager_service_impl.h

Issue 557573002: Changes view manager to report visibility and drawn state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 6 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: mojo/services/view_manager/view_manager_service_impl.h
diff --git a/mojo/services/view_manager/view_manager_service_impl.h b/mojo/services/view_manager/view_manager_service_impl.h
index f505622c2d5a770a98ebb21ac7d7402fb1491910..3e2952809167fc3ff9807a3f330aaf965c15b851 100644
--- a/mojo/services/view_manager/view_manager_service_impl.h
+++ b/mojo/services/view_manager/view_manager_service_impl.h
@@ -77,6 +77,10 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds,
bool originated_change);
+ void ProcessWillChangeViewHierarchy(const ServerView* view,
+ const ServerView* new_parent,
+ const ServerView* old_parent,
+ bool originated_change);
void ProcessViewHierarchyChanged(const ServerView* view,
const ServerView* new_parent,
const ServerView* old_parent,
@@ -86,6 +90,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
OrderDirection direction,
bool originated_change);
void ProcessViewDeleted(const ViewId& view, bool originated_change);
+ void ProcessWillChangeViewVisibility(const ServerView* view,
+ bool originated_change);
// TODO(sky): move this to private section (currently can't because of
// bindings).
@@ -136,6 +142,10 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
void GetViewTreeImpl(const ServerView* view,
std::vector<const ServerView*>* views) const;
+ // Notify the client if the drawn state of any of the roots changes.
+ // |view| is the view that is changing to the drawn state |new_drawn_value|.
+ void NotifyDrawnStateChanged(const ServerView* view, bool new_drawn_value);
+
// ViewManagerService:
virtual void CreateView(Id transport_view_id,
const Callback<void(ErrorCode)>& callback) OVERRIDE;
« no previous file with comments | « mojo/services/view_manager/test_change_tracker.cc ('k') | mojo/services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698