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

Unified Diff: ui/views/view_model.h

Issue 10068027: ash: Fix launcher icon overlaps with status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use last_visible_index_ part from 9808026 and add tests Created 8 years, 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698