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

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: Created 5 years, 2 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 <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 void ExpandableContainerView::ToggleDetailLevel() { 807 void ExpandableContainerView::ToggleDetailLevel() {
808 expanded_ = !expanded_; 808 expanded_ = !expanded_;
809 809
810 if (slide_animation_.IsShowing()) 810 if (slide_animation_.IsShowing())
811 slide_animation_.Hide(); 811 slide_animation_.Hide();
812 else 812 else
813 slide_animation_.Show(); 813 slide_animation_.Show();
814 } 814 }
815 815
816 void ExpandableContainerView::UpdateArrowToggle(bool expanded) { 816 void ExpandableContainerView::UpdateArrowToggle(bool expanded) {
817 gfx::ImageSkia icon = gfx::CreateVectorIcon( 817 gfx::ImageSkia icon = gfx::CreatePrimaryVectorIcon(
818 expanded ? gfx::VectorIconId::FIND_PREV : gfx::VectorIconId::FIND_NEXT, 818 expanded ? gfx::VectorIconId::FIND_PREV : gfx::VectorIconId::FIND_NEXT,
819 16, gfx::kChromeIconGrey); 819 gfx::kChromeIconGrey);
820 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon); 820 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon);
821 } 821 }
822 822
823 // static 823 // static
824 ExtensionInstallPrompt::ShowDialogCallback 824 ExtensionInstallPrompt::ShowDialogCallback
825 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { 825 ExtensionInstallPrompt::GetDefaultShowDialogCallback() {
826 return base::Bind(&ShowExtensionInstallDialogImpl); 826 return base::Bind(&ShowExtensionInstallDialogImpl);
827 } 827 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698