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

Side by Side Diff: ash/launcher/app_launcher_button.h

Issue 9121050: Add accessible names to the launcher buttons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update DEPS file Created 8 years, 10 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 #ifndef ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ 5 #ifndef ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_
6 #define ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ 6 #define ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/controls/button/image_button.h" 9 #include "ui/views/controls/button/image_button.h"
10 10
(...skipping 13 matching lines...) Expand all
24 // Sets the image to display for this entry. 24 // Sets the image to display for this entry.
25 void SetAppImage(const SkBitmap& image); 25 void SetAppImage(const SkBitmap& image);
26 26
27 protected: 27 protected:
28 // View overrides: 28 // View overrides:
29 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 29 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
30 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 30 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
31 virtual void OnMouseCaptureLost() OVERRIDE; 31 virtual void OnMouseCaptureLost() OVERRIDE;
32 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 32 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
33 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 33 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
34 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
34 35
35 private: 36 private:
36 LauncherButtonHost* host_; 37 LauncherButtonHost* host_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(AppLauncherButton); 39 DISALLOW_COPY_AND_ASSIGN(AppLauncherButton);
39 }; 40 };
40 41
41 } // namespace internal 42 } // namespace internal
42 } // namespace ash 43 } // namespace ash
43 44
44 #endif // ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ 45 #endif // ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698