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

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

Issue 10079006: ash: Disable some entries in the network tray-popup instead of removing them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/network/tray_network.cc ('k') | ash/system/tray/tray_views.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 (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 #ifndef ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_VIEWS_H_
6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/font.h" 9 #include "ui/gfx/font.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void set_default_color(SkColor color) { default_color_ = color; } 89 void set_default_color(SkColor color) { default_color_ = color; }
90 90
91 private: 91 private:
92 // Overridden from ActionableView. 92 // Overridden from ActionableView.
93 virtual bool PerformAction(const views::Event& event) OVERRIDE; 93 virtual bool PerformAction(const views::Event& event) OVERRIDE;
94 94
95 // Overridden from views::View. 95 // Overridden from views::View.
96 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; 96 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE;
97 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 97 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
99 virtual void OnEnabledChanged() OVERRIDE;
99 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 100 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
100 101
101 ViewClickListener* listener_; 102 ViewClickListener* listener_;
102 string16 accessible_name_; 103 string16 accessible_name_;
103 SkColor highlight_color_; 104 SkColor highlight_color_;
104 SkColor default_color_; 105 SkColor default_color_;
105 bool hover_; 106 bool hover_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 108 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
108 }; 109 };
(...skipping 26 matching lines...) Expand all
135 views::View* CreateDetailedHeaderEntry(int string_id, 136 views::View* CreateDetailedHeaderEntry(int string_id,
136 ViewClickListener* listener); 137 ViewClickListener* listener);
137 138
138 // Sets up a Label properly for the tray (sets color, font etc.). 139 // Sets up a Label properly for the tray (sets color, font etc.).
139 void SetupLabelForTray(views::Label* label); 140 void SetupLabelForTray(views::Label* label);
140 141
141 } // namespace internal 142 } // namespace internal
142 } // namespace ash 143 } // namespace ash
143 144
144 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ 145 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_
OLDNEW
« no previous file with comments | « ash/system/network/tray_network.cc ('k') | ash/system/tray/tray_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698