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

Unified Diff: ash/wm/workspace/frame_maximize_button.cc

Issue 9837114: Makes the frame maximize button show the multi-state icon on hover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/frame_maximize_button.cc
diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc
index 49e4a611fa5f347677a50cdbd0e13c912a890306..f4572d3684ddd7411b3ef6f96285a47388e1b40d 100644
--- a/ash/wm/workspace/frame_maximize_button.cc
+++ b/ash/wm/workspace/frame_maximize_button.cc
@@ -213,6 +213,9 @@ SkBitmap FrameMaximizeButton::GetImageToPaint() {
}
}
return *ResourceBundle::GetSharedInstance().GetImageNamed(id).ToSkBitmap();
+ } else if (state() == BS_HOT) {
+ return *ResourceBundle::GetSharedInstance().GetImageNamed(
+ IDR_AURA_WINDOW_MAXIMIZED_RESTORE_SNAP_P).ToSkBitmap();
}
return ImageButton::GetImageToPaint();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698