Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
| index 288e586b0a16337f0cf1591d92d4efe47ac38ebb..9e53486405c8ea1c380b5a4055238f5bc68ba1d4 100644 |
| --- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
| @@ -239,6 +239,12 @@ ZoomBubbleView::~ZoomBubbleView() { |
| immersive_mode_controller_->RemoveObserver(this); |
| } |
| +int ZoomBubbleView::GetDialogButtons() const { |
| + // TODO(tapted): The zoom bubble should expose its cancel (reset) button to |
| + // DialogDelegate, but it does not want DialogClientView to create it. |
|
Peter Kasting
2017/05/26 16:29:18
I'm not really sure what this TODO is saying we sh
tapted
2017/05/27 00:18:49
Hm. This would be a consistency thing - exposing r
Peter Kasting
2017/05/27 00:28:45
If we want this button to work like a cancel butto
tapted
2017/05/27 01:09:39
Yeah.. I'll likely want to play with DialogModel s
|
| + return ui::DIALOG_BUTTON_NONE; |
| +} |
| + |
| void ZoomBubbleView::OnGestureEvent(ui::GestureEvent* event) { |
| if (!zoom_bubble_ || !zoom_bubble_->auto_close_ || |
| event->type() != ui::ET_GESTURE_TAP) { |