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

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

Issue 2342723002: Reland: Update image and text color when row is selected in the chooser on Mac (Closed)
Patch Set: fixed Mac asan test Created 4 years, 2 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/mock_chooser_controller.h" 5 #include "chrome/browser/chooser_controller/mock_chooser_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 view()->OnOptionUpdated(it - options_.begin()); 147 view()->OnOptionUpdated(it - options_.begin());
148 } 148 }
149 } 149 }
150 150
151 const int MockChooserController::kNoSignalStrengthLevelImage = -1; 151 const int MockChooserController::kNoSignalStrengthLevelImage = -1;
152 const int MockChooserController::kSignalStrengthLevel0Bar = 0; 152 const int MockChooserController::kSignalStrengthLevel0Bar = 0;
153 const int MockChooserController::kSignalStrengthLevel1Bar = 1; 153 const int MockChooserController::kSignalStrengthLevel1Bar = 1;
154 const int MockChooserController::kSignalStrengthLevel2Bar = 2; 154 const int MockChooserController::kSignalStrengthLevel2Bar = 2;
155 const int MockChooserController::kSignalStrengthLevel3Bar = 3; 155 const int MockChooserController::kSignalStrengthLevel3Bar = 3;
156 const int MockChooserController::kSignalStrengthLevel4Bar = 4; 156 const int MockChooserController::kSignalStrengthLevel4Bar = 4;
157 const int MockChooserController::kImageColorUnselected = 0;
158 const int MockChooserController::kImageColorSelected = 1;
157 159
158 void MockChooserController::ClearAllOptions() { 160 void MockChooserController::ClearAllOptions() {
159 options_.clear(); 161 options_.clear();
160 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/chooser_controller/mock_chooser_controller.h ('k') | chrome/browser/ui/cocoa/chooser_content_view_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698