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

Unified Diff: ui/views/bubble/bubble_frame_view.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: fix cros build 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
Index: ui/views/bubble/bubble_frame_view.h
diff --git a/ui/views/bubble/bubble_frame_view.h b/ui/views/bubble/bubble_frame_view.h
index cd918a3841c3704b4e230fb1348e97c7daf8ffd9..482be2595c10038feb9f88d3da2d9ae3f11c3d66 100644
--- a/ui/views/bubble/bubble_frame_view.h
+++ b/ui/views/bubble/bubble_frame_view.h
@@ -9,7 +9,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "ui/gfx/geometry/insets.h"
-#include "ui/views/controls/button/vector_icon_button_delegate.h"
+#include "ui/views/controls/button/image_button.h"
#include "ui/views/window/non_client_view.h"
namespace gfx {
@@ -25,7 +25,7 @@ class ImageView;
// The non-client frame view of bubble-styled widgets.
class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
- public VectorIconButtonDelegate {
+ public ImageButtonDelegate {
public:
// Internal class name.
static const char kViewClassName[];
@@ -35,9 +35,9 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
~BubbleFrameView() override;
// Creates a close button used in the corner of the dialog.
- static Button* CreateCloseButton(VectorIconButtonDelegate* delegate);
+ static Button* CreateCloseButton(ImageButtonDelegate* delegate);
- // NonClientFrameView overrides:
+ // NonClientFrameView:
gfx::Rect GetBoundsForClientView() const override;
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override;
@@ -53,7 +53,7 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
// Caller must arrange to update the layout to have the call take effect.
void SetTitleFontList(const gfx::FontList& font_list);
- // View overrides:
+ // View:
const char* GetClassName() const override;
gfx::Insets GetInsets() const override;
gfx::Size GetPreferredSize() const override;
@@ -65,7 +65,7 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
void OnThemeChanged() override;
void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
- // Overridden from VectorIconButtonDelegate:
+ // ImageButtonDelegate:
void ButtonPressed(Button* sender, const ui::Event& event) override;
// Use bubble_border() and SetBubbleBorder(), not border() and SetBorder().

Powered by Google App Engine
This is Rietveld 408576698