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

Unified Diff: ash/frame/caption_buttons/frame_size_button_unittest.cc

Issue 1505223004: Do not use assets for Ash window control button backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP for pkasting and estade feedback Created 5 years 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: ash/frame/caption_buttons/frame_size_button_unittest.cc
diff --git a/ash/frame/caption_buttons/frame_size_button_unittest.cc b/ash/frame/caption_buttons/frame_size_button_unittest.cc
index 3c950c1f71ec53536b0fc075893be5c1489d1dce..59f6f6495d091996832ac21da6b87c1bcaf6a047 100644
--- a/ash/frame/caption_buttons/frame_size_button_unittest.cc
+++ b/ash/frame/caption_buttons/frame_size_button_unittest.cc
@@ -57,14 +57,12 @@ class TestWidgetDelegate : public views::WidgetDelegateView {
caption_button_container_ =
new FrameCaptionButtonContainerView(GetWidget());
- // Set arbitrary images for the container's buttons so that the buttons
- // have non-empty sizes.
+ // Set arbitrary images for the button icons and assign a non-empty size.
+ caption_button_container_->SetButtonSize(gfx::Size(32, 33));
for (int icon = 0; icon < CAPTION_BUTTON_ICON_COUNT; ++icon) {
- caption_button_container_->SetButtonImages(
+ caption_button_container_->SetButtonImage(
static_cast<CaptionButtonIcon>(icon),
- IDR_AURA_WINDOW_CONTROL_ICON_CLOSE,
- IDR_AURA_WINDOW_CONTROL_BACKGROUND_H,
- IDR_AURA_WINDOW_CONTROL_BACKGROUND_P);
+ IDR_AURA_WINDOW_CONTROL_ICON_CLOSE);
}
AddChildView(caption_button_container_);

Powered by Google App Engine
This is Rietveld 408576698