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

Side by Side Diff: chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc

Issue 2478863003: Fix the Web Bluetooth chooser when it is used on Chrome apps on non-Mac (Closed)
Patch Set: initialize pointer to be nullptr Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/chooser_dialog_view_unittest.cc ('k') | ui/views/window/dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698