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

Unified Diff: ui/views/view_model_utils.cc

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
« ash/launcher/launcher_view.cc ('K') | « ui/views/view_model_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_model_utils.cc
diff --git a/ui/views/view_model_utils.cc b/ui/views/view_model_utils.cc
index a49fbcd886d73d6024d32695791470eba5be7516..24e4d0104235cae238982d2d7ee70d3fa0f35167 100644
--- a/ui/views/view_model_utils.cc
+++ b/ui/views/view_model_utils.cc
@@ -18,6 +18,13 @@ void ViewModelUtils::SetViewBoundsToIdealBounds(const ViewModel& model) {
}
// static
+void ViewModelUtils::SetViewVisibilityToIdealVisibility(
+ const ViewModel& model) {
+ for (int i = 0; i < model.view_size(); ++i)
+ model.view_at(i)->SetVisible(model.ideal_visibility(i));
+}
+
+// static
int ViewModelUtils::DetermineMoveIndex(const ViewModel& model,
View* view,
int x) {
« ash/launcher/launcher_view.cc ('K') | « ui/views/view_model_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698