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

Side by Side Diff: ash/launcher/launcher_button_host.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_LAUNCHER_BUTTON_HOST_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h"
10
9 namespace views { 11 namespace views {
10 class MouseEvent; 12 class MouseEvent;
11 class View; 13 class View;
12 } 14 }
13 15
14 namespace ash { 16 namespace ash {
15 namespace internal { 17 namespace internal {
16 18
17 // The launcher buttons communicate back to the host by way of this interface. 19 // The launcher buttons communicate back to the host by way of this interface.
18 // This interface is used to enable reordering the items on the launcher. 20 // This interface is used to enable reordering the items on the launcher.
19 class LauncherButtonHost { 21 class LauncherButtonHost {
20 public: 22 public:
21 // Invoked when the mose is pressed on a view. 23 // Invoked when the mose is pressed on a view.
22 virtual void MousePressedOnButton(views::View* view, 24 virtual void MousePressedOnButton(views::View* view,
23 const views::MouseEvent& event) = 0; 25 const views::MouseEvent& event) = 0;
24 26
25 // Invoked when the mouse is dragged over a view. 27 // Invoked when the mouse is dragged over a view.
26 virtual void MouseDraggedOnButton(views::View* view, 28 virtual void MouseDraggedOnButton(views::View* view,
27 const views::MouseEvent& event) = 0; 29 const views::MouseEvent& event) = 0;
28 30
29 // Invoked either if the mouse is released or mouse capture canceled. 31 // Invoked either if the mouse is released or mouse capture canceled.
30 virtual void MouseReleasedOnButton(views::View* view, 32 virtual void MouseReleasedOnButton(views::View* view,
31 bool canceled) = 0; 33 bool canceled) = 0;
32 34
33 // Invoked when the mouse exits the item. 35 // Invoked when the mouse exits the item.
34 virtual void MouseExitedButton(views::View* view) = 0; 36 virtual void MouseExitedButton(views::View* view) = 0;
35 37
38 // Invoked to get the accessible name of the item.
39 virtual string16 GetAccessibleName(views::View* view) = 0;
40
36 protected: 41 protected:
37 virtual ~LauncherButtonHost() {} 42 virtual ~LauncherButtonHost() {}
38 }; 43 };
39 44
40 } // namespace internal 45 } // namespace internal
41 } // namespace ash 46 } // namespace ash
42 47
43 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 48 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698