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

Unified Diff: chrome/browser/ui/views/device_chooser_content_view.cc

Issue 2627483003: Centering turn on Bluetooth message on the chooser (Closed)
Patch Set: centering turn on Bluetooth message on the chooser Created 3 years, 11 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: chrome/browser/ui/views/device_chooser_content_view.cc
diff --git a/chrome/browser/ui/views/device_chooser_content_view.cc b/chrome/browser/ui/views/device_chooser_content_view.cc
index ea0e5684e80ab112a7cc46243c7e7e08e6a72329..5bc4b26749a16ddfa6581d128fee53290a66e733 100644
--- a/chrome/browser/ui/views/device_chooser_content_view.cc
+++ b/chrome/browser/ui/views/device_chooser_content_view.cc
@@ -107,7 +107,8 @@ void DeviceChooserContentView::Layout() {
(rect.height() - kThrobberDiameter) / 2,
kThrobberDiameter, kThrobberDiameter);
turn_adapter_off_help_->SetPosition(
- gfx::Point(kAdapterOffHelpLinkPadding, kAdapterOffHelpLinkPadding));
+ gfx::Point((rect.width() - turn_adapter_off_help_->width()) / 2,
+ (rect.height() - turn_adapter_off_help_->height()) / 2));
sky 2017/01/10 23:48:31 Might this be on top of the throbber?
juncai 2017/01/11 00:12:50 No. The adapter off message will only be shown whe
sky 2017/01/11 00:36:14 Ok, thanks. Could you add a comment here to that e
juncai 2017/01/11 18:13:43 Done.
turn_adapter_off_help_->SizeToFit(rect.width() -
2 * kAdapterOffHelpLinkPadding);
views::View::Layout();

Powered by Google App Engine
This is Rietveld 408576698