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

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

Issue 2518933004: Add multiple selection support to chooser on desktops (Closed)
Patch Set: address comments 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 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/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "components/url_formatter/elide_url.h" 9 #include "components/url_formatter/elide_url.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return l10n_util::GetStringFUTF16( 49 return l10n_util::GetStringFUTF16(
50 title_string_id_origin_, 50 title_string_id_origin_,
51 url_formatter::FormatOriginForSecurityDisplay( 51 url_formatter::FormatOriginForSecurityDisplay(
52 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC)); 52 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC));
53 } 53 }
54 54
55 bool ChooserController::ShouldShowIconBeforeText() const { 55 bool ChooserController::ShouldShowIconBeforeText() const {
56 return false; 56 return false;
57 } 57 }
58 58
59 bool ChooserController::AllowMultipleSelection() const {
60 return false;
61 }
62
59 int ChooserController::GetSignalStrengthLevel(size_t index) const { 63 int ChooserController::GetSignalStrengthLevel(size_t index) const {
60 return -1; 64 return -1;
61 } 65 }
62 66
63 bool ChooserController::IsConnected(size_t index) const { 67 bool ChooserController::IsConnected(size_t index) const {
64 return false; 68 return false;
65 } 69 }
66 70
67 bool ChooserController::IsPaired(size_t index) const { 71 bool ChooserController::IsPaired(size_t index) const {
68 return false; 72 return false;
69 } 73 }
70 74
71 void ChooserController::OpenAdapterOffHelpUrl() const { 75 void ChooserController::OpenAdapterOffHelpUrl() const {
72 NOTREACHED(); 76 NOTREACHED();
73 } 77 }
OLDNEW
« no previous file with comments | « chrome/browser/chooser_controller/chooser_controller.h ('k') | chrome/browser/chooser_controller/mock_chooser_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698