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

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

Issue 10218002: ash: Make the buttons in the tray-popup headers accessible from keyboard. (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 | « no previous file | 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 public: 184 public:
185 TrayPopupHeaderButton(views::ButtonListener* listener, 185 TrayPopupHeaderButton(views::ButtonListener* listener,
186 int enabled_resource_id, 186 int enabled_resource_id,
187 int disabled_resource_id); 187 int disabled_resource_id);
188 virtual ~TrayPopupHeaderButton(); 188 virtual ~TrayPopupHeaderButton();
189 189
190 private: 190 private:
191 // Overridden from views::View. 191 // Overridden from views::View.
192 virtual gfx::Size GetPreferredSize() OVERRIDE; 192 virtual gfx::Size GetPreferredSize() OVERRIDE;
193 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; 193 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE;
194 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
194 195
195 // Overridden from views::CustomButton. 196 // Overridden from views::CustomButton.
196 virtual void StateChanged() OVERRIDE; 197 virtual void StateChanged() OVERRIDE;
197 198
198 DISALLOW_COPY_AND_ASSIGN(TrayPopupHeaderButton); 199 DISALLOW_COPY_AND_ASSIGN(TrayPopupHeaderButton);
199 }; 200 };
200 201
201 // Creates a container for the various detailed popups. Clicking on the view 202 // Creates a container for the various detailed popups. Clicking on the view
202 // triggers the callback in ViewClickListener. 203 // triggers the callback in ViewClickListener.
203 views::View* CreateDetailedHeaderEntry(int string_id, 204 views::View* CreateDetailedHeaderEntry(int string_id,
204 ViewClickListener* listener); 205 ViewClickListener* listener);
205 206
206 // Sets up a Label properly for the tray (sets color, font etc.). 207 // Sets up a Label properly for the tray (sets color, font etc.).
207 void SetupLabelForTray(views::Label* label); 208 void SetupLabelForTray(views::Label* label);
208 209
209 } // namespace internal 210 } // namespace internal
210 } // namespace ash 211 } // namespace ash
211 212
212 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ 213 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/tray/tray_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698