OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/status/network_menu.h" | 5 #include "chrome/browser/chromeos/status/network_menu.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 IDR_STATUSBAR_NETWORK_BARS3, | 782 IDR_STATUSBAR_NETWORK_BARS3, |
783 IDR_STATUSBAR_NETWORK_BARS4, | 783 IDR_STATUSBAR_NETWORK_BARS4, |
784 }; | 784 }; |
785 // static | 785 // static |
786 const int NetworkMenu::kBarsImagesBlack[kNumBarsImages] = { | 786 const int NetworkMenu::kBarsImagesBlack[kNumBarsImages] = { |
787 IDR_STATUSBAR_NETWORK_BARS1_BLACK, | 787 IDR_STATUSBAR_NETWORK_BARS1_BLACK, |
788 IDR_STATUSBAR_NETWORK_BARS2_BLACK, | 788 IDR_STATUSBAR_NETWORK_BARS2_BLACK, |
789 IDR_STATUSBAR_NETWORK_BARS3_BLACK, | 789 IDR_STATUSBAR_NETWORK_BARS3_BLACK, |
790 IDR_STATUSBAR_NETWORK_BARS4_BLACK, | 790 IDR_STATUSBAR_NETWORK_BARS4_BLACK, |
791 }; | 791 }; |
| 792 |
792 // static | 793 // static |
793 const int NetworkMenu::kBarsImagesOrange[kNumBarsImages] = { | 794 const int NetworkMenu::kBarsImagesOrange[kNumBarsImages] = { |
794 IDR_STATUSBAR_NETWORK_BARS1_ORANGE, | 795 IDR_STATUSBAR_NETWORK_BARS1_ORANGE, |
795 IDR_STATUSBAR_NETWORK_BARS2_ORANGE, | 796 IDR_STATUSBAR_NETWORK_BARS2_ORANGE, |
796 IDR_STATUSBAR_NETWORK_BARS3_ORANGE, | 797 IDR_STATUSBAR_NETWORK_BARS3_ORANGE, |
797 IDR_STATUSBAR_NETWORK_BARS4_ORANGE, | 798 IDR_STATUSBAR_NETWORK_BARS4_ORANGE, |
798 }; | 799 }; |
799 #if 0 | 800 #if 0 |
800 // static | 801 // static |
801 const int NetworkMenu::kBarsImagesVLowData[kNumBarsImages] = { | 802 const int NetworkMenu::kBarsImagesVLowData[kNumBarsImages] = { |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 // logic implemented inside |network_menu_|. | 1066 // logic implemented inside |network_menu_|. |
1066 if (min_width_ != -1) | 1067 if (min_width_ != -1) |
1067 network_menu_->SetMinimumWidth(min_width_); | 1068 network_menu_->SetMinimumWidth(min_width_); |
1068 refreshing_menu_ = false; | 1069 refreshing_menu_ = false; |
1069 network_menu_->RunMenuAt(pt, views::Menu2::ALIGN_TOPRIGHT); | 1070 network_menu_->RunMenuAt(pt, views::Menu2::ALIGN_TOPRIGHT); |
1070 } | 1071 } |
1071 | 1072 |
1072 } // namespace chromeos | 1073 } // namespace chromeos |
1073 | 1074 |
1074 | 1075 |
OLD | NEW |