OLD | NEW |
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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 // On Mac, GetViewsShowDialogCallback is defined in Cocoa code. | |
775 #if !defined(OS_MACOSX) | |
776 // static | 774 // static |
777 ExtensionInstallPrompt::ShowDialogCallback | 775 ExtensionInstallPrompt::ShowDialogCallback |
778 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { | 776 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { |
779 return base::Bind(&ShowExtensionInstallDialogImpl); | 777 return base::Bind(&ShowExtensionInstallDialogImpl); |
780 } | 778 } |
781 #endif | |
782 | |
783 #if defined(OS_MACOSX) | |
784 // static | |
785 ExtensionInstallPrompt::ShowDialogCallback | |
786 ExtensionInstallPrompt::GetViewsShowDialogCallback() { | |
787 return base::Bind(&ShowExtensionInstallDialogImpl); | |
788 } | |
789 #endif | |
OLD | NEW |