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

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

Issue 9693022: views: Rename MenuButtonDelegate::RunMenu to something more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: menu_button_listener.h Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/status_area_button.h" 5 #include "chrome/browser/chromeos/status/status_area_button.h"
6 6
7 #include "grit/theme_resources.h" 7 #include "grit/theme_resources.h"
8 #include "ui/base/resource/resource_bundle.h" 8 #include "ui/base/resource/resource_bundle.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/skbitmap_operations.h" 10 #include "ui/gfx/skbitmap_operations.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Pad for status icons. 27 // Pad for status icons.
28 const int kIconHorizontalPad = 2; 28 const int kIconHorizontalPad = 2;
29 29
30 } 30 }
31 31
32 //////////////////////////////////////////////////////////////////////////////// 32 ////////////////////////////////////////////////////////////////////////////////
33 // StatusAreaButton 33 // StatusAreaButton
34 34
35 StatusAreaButton::StatusAreaButton(Delegate* button_delegate, 35 StatusAreaButton::StatusAreaButton(Delegate* button_delegate,
36 views::MenuButtonDelegate* menu_delegate) 36 views::MenuButtonListener* listener)
37 : MenuButton(NULL, string16(), menu_delegate, false), 37 : MenuButton(NULL, string16(), listener, false),
38 menu_active_(true), 38 menu_active_(true),
39 delegate_(button_delegate) { 39 delegate_(button_delegate) {
40 set_border(NULL); 40 set_border(NULL);
41 41
42 light_font_ = 42 light_font_ =
43 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont). 43 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont).
44 DeriveFont(kFontSizeDelta); 44 DeriveFont(kFontSizeDelta);
45 bold_font_ = light_font_.DeriveFont(0, gfx::Font::BOLD); 45 bold_font_ = light_font_.DeriveFont(0, gfx::Font::BOLD);
46 46
47 SetShowMultipleIconStates(false); 47 SetShowMultipleIconStates(false);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 return 24; 162 return 24;
163 } 163 }
164 164
165 int StatusAreaButton::icon_width() { 165 int StatusAreaButton::icon_width() {
166 return 23; 166 return 23;
167 } 167 }
168 168
169 int StatusAreaButton::horizontal_padding() { 169 int StatusAreaButton::horizontal_padding() {
170 return 1; 170 return 1;
171 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/status_area_button.h ('k') | chrome/browser/chromeos/status/volume_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698