| Index: mojo/services/view_manager/server_view.h
|
| diff --git a/mojo/services/view_manager/server_view.h b/mojo/services/view_manager/server_view.h
|
| index 1895ee9a595c58571860eab73f70fb89ce0d6a04..b812afccb3597eac78d6412a6132f65d79e13dfc 100644
|
| --- a/mojo/services/view_manager/server_view.h
|
| +++ b/mojo/services/view_manager/server_view.h
|
| @@ -53,6 +53,7 @@ class MOJO_VIEW_MANAGER_EXPORT ServerView {
|
| std::vector<const ServerView*> GetChildren() const;
|
| std::vector<ServerView*> GetChildren();
|
|
|
| + // Returns true if this contains |view| or is |view|.
|
| bool Contains(const ServerView* view) const;
|
|
|
| // Returns true if the window is visible. This does not consider visibility
|
| @@ -60,6 +61,10 @@ class MOJO_VIEW_MANAGER_EXPORT ServerView {
|
| bool visible() const { return visible_; }
|
| void SetVisible(bool value);
|
|
|
| + // Returns true if this view is attached to |root| and all ancestors are
|
| + // visible.
|
| + bool IsDrawn(const ServerView* root) const;
|
| +
|
| void SetBitmap(const SkBitmap& contents);
|
| const SkBitmap& bitmap() const { return bitmap_; }
|
|
|
|
|