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

Side by Side Diff: chrome/browser/chromeos/status/network_menu.cc

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu_button.cc ('k') | chrome/browser/chromeos/status/network_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698