OLD | NEW |
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 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const base::string16& new_option_name, | 51 const base::string16& new_option_name, |
52 int new_signal_strengh_level, | 52 int new_signal_strengh_level, |
53 int new_connected_paired_status); | 53 int new_connected_paired_status); |
54 | 54 |
55 static const int kNoSignalStrengthLevelImage; | 55 static const int kNoSignalStrengthLevelImage; |
56 static const int kSignalStrengthLevel0Bar; | 56 static const int kSignalStrengthLevel0Bar; |
57 static const int kSignalStrengthLevel1Bar; | 57 static const int kSignalStrengthLevel1Bar; |
58 static const int kSignalStrengthLevel2Bar; | 58 static const int kSignalStrengthLevel2Bar; |
59 static const int kSignalStrengthLevel3Bar; | 59 static const int kSignalStrengthLevel3Bar; |
60 static const int kSignalStrengthLevel4Bar; | 60 static const int kSignalStrengthLevel4Bar; |
61 static const int kImageColorUnselected; | |
62 static const int kImageColorSelected; | |
63 | 61 |
64 private: | 62 private: |
65 void ClearAllOptions(); | 63 void ClearAllOptions(); |
66 | 64 |
67 struct OptionInfo { | 65 struct OptionInfo { |
68 base::string16 name; | 66 base::string16 name; |
69 int signal_strength_level; | 67 int signal_strength_level; |
70 // This value is the '|' of ConnectedPairedStatus values. | 68 // This value is the '|' of ConnectedPairedStatus values. |
71 int connected_paired_status; | 69 int connected_paired_status; |
72 }; | 70 }; |
73 | 71 |
74 std::vector<OptionInfo> options_; | 72 std::vector<OptionInfo> options_; |
75 base::string16 no_options_text_; | 73 base::string16 no_options_text_; |
76 base::string16 status_text_; | 74 base::string16 status_text_; |
77 | 75 |
78 DISALLOW_COPY_AND_ASSIGN(MockChooserController); | 76 DISALLOW_COPY_AND_ASSIGN(MockChooserController); |
79 }; | 77 }; |
80 | 78 |
81 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ | 79 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_MOCK_CHOOSER_CONTROLLER_H_ |
OLD | NEW |