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

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

Issue 10837067: Add accessible names to buttons in the Uber tray (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/shelf_types.h" 9 #include "ash/wm/shelf_types.h"
10 #include "ui/gfx/font.h" 10 #include "ui/gfx/font.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 211 };
212 212
213 // A ToggleImageButton with fixed size, paddings and hover effects. These 213 // A ToggleImageButton with fixed size, paddings and hover effects. These
214 // buttons are used in the header. 214 // buttons are used in the header.
215 class TrayPopupHeaderButton : public views::ToggleImageButton { 215 class TrayPopupHeaderButton : public views::ToggleImageButton {
216 public: 216 public:
217 TrayPopupHeaderButton(views::ButtonListener* listener, 217 TrayPopupHeaderButton(views::ButtonListener* listener,
218 int enabled_resource_id, 218 int enabled_resource_id,
219 int disabled_resource_id, 219 int disabled_resource_id,
220 int enabled_resource_id_hover, 220 int enabled_resource_id_hover,
221 int disabled_resource_id_hover); 221 int disabled_resource_id_hover,
222 int accessible_name_id);
222 virtual ~TrayPopupHeaderButton(); 223 virtual ~TrayPopupHeaderButton();
223 224
224 private: 225 private:
225 // Overridden from views::View. 226 // Overridden from views::View.
226 virtual gfx::Size GetPreferredSize() OVERRIDE; 227 virtual gfx::Size GetPreferredSize() OVERRIDE;
227 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; 228 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE;
228 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 229 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
229 230
230 // Overridden from views::CustomButton. 231 // Overridden from views::CustomButton.
231 virtual void StateChanged() OVERRIDE; 232 virtual void StateChanged() OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment); 295 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment);
295 // Sets the empty border around a label tray item for adjusting the space 296 // Sets the empty border around a label tray item for adjusting the space
296 // around it. 297 // around it.
297 void SetTrayLabelItemBorder(TrayItemView* tray_view, 298 void SetTrayLabelItemBorder(TrayItemView* tray_view,
298 ShelfAlignment alignment); 299 ShelfAlignment alignment);
299 300
300 } // namespace internal 301 } // namespace internal
301 } // namespace ash 302 } // namespace ash
302 303
303 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ 304 #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