Index: ui/views/view_model.h |
diff --git a/ui/views/view_model.h b/ui/views/view_model.h |
index 6a68fb10f84ee18f51fec327b0a7cb2e128f7726..0ec90a24177f3bfd1bbed379fac6525aa64e8e8b 100644 |
--- a/ui/views/view_model.h |
+++ b/ui/views/view_model.h |
@@ -57,16 +57,25 @@ class VIEWS_EXPORT ViewModel { |
return entries_[index].ideal_bounds; |
} |
+ void set_ideal_visibility(int index, bool visibility) { |
+ entries_[index].ideal_visibility = visibility; |
+ } |
+ |
+ bool ideal_visibility(int index) const { |
+ return entries_[index].ideal_visibility; |
+ } |
+ |
// Returns the index of the specified view, or -1 if the view isn't in the |
// model. |
int GetIndexOfView(const View* view) const; |
private: |
struct Entry { |
- Entry() : view(NULL) {} |
+ Entry() : view(NULL), ideal_visibility(false) {} |
View* view; |
gfx::Rect ideal_bounds; |
+ bool ideal_visibility; |
}; |
typedef std::vector<Entry> Entries; |