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 <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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 ContentsChanged(); | 766 ContentsChanged(); |
767 } else { | 767 } else { |
768 ToggleInlineExplanations(); | 768 ToggleInlineExplanations(); |
769 } | 769 } |
770 show_details_link_->SetVisible(false); | 770 show_details_link_->SetVisible(false); |
771 } else { | 771 } else { |
772 GURL store_url(extension_urls::GetWebstoreItemDetailURLPrefix() + | 772 GURL store_url(extension_urls::GetWebstoreItemDetailURLPrefix() + |
773 prompt_->extension()->id()); | 773 prompt_->extension()->id()); |
774 OpenURLParams params( | 774 OpenURLParams params( |
775 store_url, Referrer(), NEW_FOREGROUND_TAB, | 775 store_url, Referrer(), NEW_FOREGROUND_TAB, |
776 content::PAGE_TRANSITION_LINK, | 776 ui::PAGE_TRANSITION_LINK, |
777 false); | 777 false); |
778 navigator_->OpenURL(params); | 778 navigator_->OpenURL(params); |
779 GetWidget()->Close(); | 779 GetWidget()->Close(); |
780 } | 780 } |
781 } | 781 } |
782 | 782 |
783 void ExtensionInstallDialogView::ToggleInlineExplanations() { | 783 void ExtensionInstallDialogView::ToggleInlineExplanations() { |
784 for (InlineExplanations::iterator it = inline_explanations_.begin(); | 784 for (InlineExplanations::iterator it = inline_explanations_.begin(); |
785 it != inline_explanations_.end(); ++it) | 785 it != inline_explanations_.end(); ++it) |
786 (*it)->ToggleDetailLevel(); | 786 (*it)->ToggleDetailLevel(); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 void ExpandableContainerView::ExpandWithoutAnimation() { | 1078 void ExpandableContainerView::ExpandWithoutAnimation() { |
1079 expanded_ = true; | 1079 expanded_ = true; |
1080 details_view_->AnimateToState(1.0); | 1080 details_view_->AnimateToState(1.0); |
1081 } | 1081 } |
1082 | 1082 |
1083 // static | 1083 // static |
1084 ExtensionInstallPrompt::ShowDialogCallback | 1084 ExtensionInstallPrompt::ShowDialogCallback |
1085 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { | 1085 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { |
1086 return base::Bind(&ShowExtensionInstallDialogImpl); | 1086 return base::Bind(&ShowExtensionInstallDialogImpl); |
1087 } | 1087 } |
OLD | NEW |