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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: check details Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc
index 281adb4e9c3ad3d57b6d69abf89a1b877e37ac2b..01da26ce0d10dd43905a8eae6826053453b5d29b 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc
@@ -19,8 +19,7 @@
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/bubble/bubble_frame_view.h"
-#include "ui/views/controls/button/vector_icon_button.h"
-#include "ui/views/controls/button/vector_icon_button_delegate.h"
+#include "ui/views/controls/button/button.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/client_view.h"
@@ -129,7 +128,7 @@ class BaseDialogContainer : public views::DialogDelegateView {
// The contents view for an App List Dialog, which covers the entire app list
// and adds a close button.
class AppListDialogContainer : public BaseDialogContainer,
- public views::VectorIconButtonDelegate {
+ public views::ButtonListener {
public:
AppListDialogContainer(views::View* dialog_body,
const base::Closure& close_callback)
@@ -141,7 +140,7 @@ class AppListDialogContainer : public BaseDialogContainer,
~AppListDialogContainer() override {}
private:
- // Overridden from views::View:
+ // views::View:
void Layout() override {
// Margin of the close button from the top right-hand corner of the dialog.
const int kCloseButtonDialogMargin = 10;
@@ -154,13 +153,13 @@ class AppListDialogContainer : public BaseDialogContainer,
views::DialogDelegateView::Layout();
}
- // Overridden from views::WidgetDelegate:
+ // views::WidgetDelegate:
views::NonClientFrameView* CreateNonClientFrameView(
views::Widget* widget) override {
return new views::NativeFrameView(widget);
}
- // Overridden from views::ButtonListener:
+ // views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override {
if (sender == close_button_) {
GetWidget()->Close();
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698