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

Unified Diff: ui/app_list/views/app_list_item_view.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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
« no previous file with comments | « ui/app_list/views/app_list_folder_view.cc ('k') | ui/app_list/views/app_list_main_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_item_view.cc
diff --git a/ui/app_list/views/app_list_item_view.cc b/ui/app_list/views/app_list_item_view.cc
index 2364a79502342f7a3e1c3792ed51fb873b4a7c11..9c8256b048b878fe03df5c24653d6021be654c37 100644
--- a/ui/app_list/views/app_list_item_view.cc
+++ b/ui/app_list/views/app_list_item_view.cc
@@ -170,6 +170,10 @@ void AppListItemView::SetUIState(UIState state) {
case UI_STATE_DROPPING_IN_FOLDER:
break;
}
+ SchedulePaint();
+ if (!layer())
+ return;
+
#if !defined(OS_WIN)
ui::ScopedLayerAnimationSettings settings(layer()->GetAnimator());
switch (ui_state_) {
@@ -187,8 +191,6 @@ void AppListItemView::SetUIState(UIState state) {
break;
}
#endif // !OS_WIN
-
- SchedulePaint();
}
void AppListItemView::SetTouchDragging(bool touch_dragging) {
@@ -333,6 +335,7 @@ void AppListItemView::SchedulePaintInRect(const gfx::Rect& r) {
}
void AppListItemView::OnPaint(gfx::Canvas* canvas) {
+ DLOG(INFO) << "painty;";
if (apps_grid_view_->IsDraggedView(this))
return;
« no previous file with comments | « ui/app_list/views/app_list_folder_view.cc ('k') | ui/app_list/views/app_list_main_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698