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

Side by Side Diff: ash/system/tray/tray_bar_button_with_title.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « ash/system/tray/tray_background_view.cc ('k') | ash/system/tray/tray_bar_button_with_title.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
11 11
12 namespace views { 12 namespace views {
13 class Label; 13 class Label;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 namespace internal {
18 17
19 // A button with a bar image and title text below the bar image. These buttons 18 // A button with a bar image and title text below the bar image. These buttons
20 // will be used in audio and brightness control UI, which can be toggled with 19 // will be used in audio and brightness control UI, which can be toggled with
21 // on/off states. 20 // on/off states.
22 class TrayBarButtonWithTitle : public views::CustomButton { 21 class TrayBarButtonWithTitle : public views::CustomButton {
23 public: 22 public:
24 TrayBarButtonWithTitle(views::ButtonListener* listener, 23 TrayBarButtonWithTitle(views::ButtonListener* listener,
25 int title_id, 24 int title_id,
26 int width); 25 int width);
27 virtual ~TrayBarButtonWithTitle(); 26 virtual ~TrayBarButtonWithTitle();
28 27
29 void UpdateButton(bool control_on); 28 void UpdateButton(bool control_on);
30 29
31 private: 30 private:
32 class TrayBarButton; 31 class TrayBarButton;
33 32
34 // Overridden from views::CustomButton: 33 // Overridden from views::CustomButton:
35 virtual gfx::Size GetPreferredSize() OVERRIDE; 34 virtual gfx::Size GetPreferredSize() OVERRIDE;
36 virtual void Layout() OVERRIDE; 35 virtual void Layout() OVERRIDE;
37 36
38 TrayBarButton* image_; 37 TrayBarButton* image_;
39 views::Label* title_; 38 views::Label* title_;
40 int width_; 39 int width_;
41 int image_height_; 40 int image_height_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(TrayBarButtonWithTitle); 42 DISALLOW_COPY_AND_ASSIGN(TrayBarButtonWithTitle);
44 }; 43 };
45 44
46 } // namespace internal
47 } // namespace ash 45 } // namespace ash
48 46
49 #endif // ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_ 47 #endif // ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_background_view.cc ('k') | ash/system/tray/tray_bar_button_with_title.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698