| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/website_settings/chooser_bubble_ui_view.h" | 5 #include "chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 ui::DialogButton button) const { | 113 ui::DialogButton button) const { |
| 114 return chooser_content_view_->GetDialogButtonLabel(button); | 114 return chooser_content_view_->GetDialogButtonLabel(button); |
| 115 } | 115 } |
| 116 | 116 |
| 117 bool ChooserBubbleUiViewDelegate::IsDialogButtonEnabled( | 117 bool ChooserBubbleUiViewDelegate::IsDialogButtonEnabled( |
| 118 ui::DialogButton button) const { | 118 ui::DialogButton button) const { |
| 119 return chooser_content_view_->IsDialogButtonEnabled(button); | 119 return chooser_content_view_->IsDialogButtonEnabled(button); |
| 120 } | 120 } |
| 121 | 121 |
| 122 views::View* ChooserBubbleUiViewDelegate::CreateFootnoteView() { | 122 views::View* ChooserBubbleUiViewDelegate::CreateFootnoteView() { |
| 123 return chooser_content_view_->CreateFootnoteView(); | 123 return chooser_content_view_->footnote_link(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool ChooserBubbleUiViewDelegate::Accept() { | 126 bool ChooserBubbleUiViewDelegate::Accept() { |
| 127 chooser_content_view_->Accept(); | 127 chooser_content_view_->Accept(); |
| 128 if (bubble_reference_) | 128 if (bubble_reference_) |
| 129 bubble_reference_->CloseBubble(BUBBLE_CLOSE_ACCEPTED); | 129 bubble_reference_->CloseBubble(BUBBLE_CLOSE_ACCEPTED); |
| 130 return true; | 130 return true; |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool ChooserBubbleUiViewDelegate::Cancel() { | 133 bool ChooserBubbleUiViewDelegate::Cancel() { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 return browser_view->exclusive_access_bubble()->GetView(); | 228 return browser_view->exclusive_access_bubble()->GetView(); |
| 229 | 229 |
| 230 return browser_view->top_container(); | 230 return browser_view->top_container(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 views::BubbleBorder::Arrow ChooserBubbleUiView::GetAnchorArrow() { | 233 views::BubbleBorder::Arrow ChooserBubbleUiView::GetAnchorArrow() { |
| 234 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) | 234 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) |
| 235 return views::BubbleBorder::TOP_LEFT; | 235 return views::BubbleBorder::TOP_LEFT; |
| 236 return views::BubbleBorder::NONE; | 236 return views::BubbleBorder::NONE; |
| 237 } | 237 } |
| OLD | NEW |