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

Side by Side Diff: chrome/browser/chooser_controller/chooser_controller.cc

Issue 2245603003: Add signal strength indicator icon to WebBluetooth chooser on non-Mac desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address more comments Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chooser_controller/chooser_controller.h" 5 #include "chrome/browser/chooser_controller/chooser_controller.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/url_formatter/elide_url.h" 8 #include "components/url_formatter/elide_url.h"
9 #include "content/public/browser/render_frame_host.h" 9 #include "content/public/browser/render_frame_host.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 base::UTF8ToUTF16(extension->name())); 43 base::UTF8ToUTF16(extension->name()));
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 return l10n_util::GetStringFUTF16( 48 return l10n_util::GetStringFUTF16(
49 title_string_id_origin_, 49 title_string_id_origin_,
50 url_formatter::FormatOriginForSecurityDisplay( 50 url_formatter::FormatOriginForSecurityDisplay(
51 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC)); 51 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC));
52 } 52 }
53
54 bool ChooserController::ShouldShowIconBeforeText() const {
55 return false;
56 }
57
58 int ChooserController::GetSignalStrengthLevel(size_t index) const {
59 return -1;
60 }
OLDNEW
« no previous file with comments | « chrome/browser/chooser_controller/chooser_controller.h ('k') | chrome/browser/ui/android/bluetooth_chooser_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698