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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 1406613002: For some vector icons, get the size from the vector definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/extensions/extension_install_dialog_view.h" 5 #include "chrome/browser/ui/views/extensions/extension_install_dialog_view.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 760
761 if (slide_animation_.IsShowing()) 761 if (slide_animation_.IsShowing())
762 slide_animation_.Hide(); 762 slide_animation_.Hide();
763 else 763 else
764 slide_animation_.Show(); 764 slide_animation_.Show();
765 } 765 }
766 766
767 void ExpandableContainerView::UpdateArrowToggle(bool expanded) { 767 void ExpandableContainerView::UpdateArrowToggle(bool expanded) {
768 gfx::ImageSkia icon = gfx::CreateVectorIcon( 768 gfx::ImageSkia icon = gfx::CreateVectorIcon(
769 expanded ? gfx::VectorIconId::FIND_PREV : gfx::VectorIconId::FIND_NEXT, 769 expanded ? gfx::VectorIconId::FIND_PREV : gfx::VectorIconId::FIND_NEXT,
770 16, gfx::kChromeIconGrey); 770 gfx::kChromeIconGrey);
771 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon); 771 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon);
772 } 772 }
773 773
774 // static 774 // static
775 ExtensionInstallPrompt::ShowDialogCallback 775 ExtensionInstallPrompt::ShowDialogCallback
776 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { 776 ExtensionInstallPrompt::GetDefaultShowDialogCallback() {
777 return base::Bind(&ShowExtensionInstallDialogImpl); 777 return base::Bind(&ShowExtensionInstallDialogImpl);
778 } 778 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698