| 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 23 matching lines...) Expand all Loading... |
| 34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 35 #include "extensions/common/extension.h" | 35 #include "extensions/common/extension.h" |
| 36 #include "extensions/common/extension_urls.h" | 36 #include "extensions/common/extension_urls.h" |
| 37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
| 38 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
| 39 #include "ui/gfx/color_palette.h" | 39 #include "ui/gfx/color_palette.h" |
| 40 #include "ui/gfx/paint_vector_icon.h" | 40 #include "ui/gfx/paint_vector_icon.h" |
| 41 #include "ui/gfx/text_utils.h" | 41 #include "ui/gfx/text_utils.h" |
| 42 #include "ui/native_theme/common_theme.h" | 42 #include "ui/native_theme/common_theme.h" |
| 43 #include "ui/views/border.h" | 43 #include "ui/views/border.h" |
| 44 #include "ui/views/controls/button/image_button.h" | |
| 45 #include "ui/views/controls/image_view.h" | 44 #include "ui/views/controls/image_view.h" |
| 46 #include "ui/views/controls/label.h" | 45 #include "ui/views/controls/label.h" |
| 47 #include "ui/views/controls/link.h" | 46 #include "ui/views/controls/link.h" |
| 48 #include "ui/views/controls/scroll_view.h" | 47 #include "ui/views/controls/scroll_view.h" |
| 49 #include "ui/views/controls/separator.h" | 48 #include "ui/views/controls/separator.h" |
| 50 #include "ui/views/layout/box_layout.h" | 49 #include "ui/views/layout/box_layout.h" |
| 51 #include "ui/views/layout/grid_layout.h" | 50 #include "ui/views/layout/grid_layout.h" |
| 52 #include "ui/views/layout/layout_constants.h" | 51 #include "ui/views/layout/layout_constants.h" |
| 53 #include "ui/views/widget/widget.h" | 52 #include "ui/views/widget/widget.h" |
| 54 | 53 |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 gfx::ImageSkia icon = gfx::CreateVectorIcon( | 739 gfx::ImageSkia icon = gfx::CreateVectorIcon( |
| 741 expanded ? kCaretUpIcon : kCaretDownIcon, gfx::kChromeIconGrey); | 740 expanded ? kCaretUpIcon : kCaretDownIcon, gfx::kChromeIconGrey); |
| 742 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon); | 741 arrow_toggle_->SetImage(views::Button::STATE_NORMAL, &icon); |
| 743 } | 742 } |
| 744 | 743 |
| 745 // static | 744 // static |
| 746 ExtensionInstallPrompt::ShowDialogCallback | 745 ExtensionInstallPrompt::ShowDialogCallback |
| 747 ExtensionInstallPrompt::GetViewsShowDialogCallback() { | 746 ExtensionInstallPrompt::GetViewsShowDialogCallback() { |
| 748 return base::Bind(&ShowExtensionInstallDialogImpl); | 747 return base::Bind(&ShowExtensionInstallDialogImpl); |
| 749 } | 748 } |
| OLD | NEW |