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

Side by Side Diff: ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h

Issue 177123016: Add a11y virtual keyboard icon when a11y VK is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new png resources and new button size Created 6 years, 9 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_
6 #define ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_
7
8 #include "ash/system/tray/tray_background_view.h"
9 #include "ash/system/tray_accessibility.h"
10 #include "ash/system/user/login_status.h"
11 #include "base/basictypes.h"
12 #include "ui/views/controls/button/button.h"
13
14 namespace views {
15 class ImageButton;
16 }
17
18 namespace ash {
19 namespace internal {
20
21 class StatusAreaWidget;
22
23 class VirtualKeyboardTray : public TrayBackgroundView,
24 public views::ButtonListener,
25 public AccessibilityObserver {
26 public:
27 explicit VirtualKeyboardTray(StatusAreaWidget* status_area_widget);
28 virtual ~VirtualKeyboardTray();
29
30 // TrayBackgroundView:
31 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
32 virtual base::string16 GetAccessibleNameForTray() OVERRIDE;
33 virtual void HideBubbleWithView(
34 const views::TrayBubbleView* bubble_view) OVERRIDE;
35 virtual bool ClickedOutsideBubble() OVERRIDE;
36 virtual bool PerformAction(const ui::Event& event) OVERRIDE;
37
38 // views::ButtonListener:
39 virtual void ButtonPressed(views::Button* sender,
40 const ui::Event& event) OVERRIDE;
41
42 // AccessibilityObserver:
43 virtual void OnAccessibilityModeChanged(
44 AccessibilityNotificationVisibility notify) OVERRIDE;
45
46 private:
47 views::ImageButton* button_; // Not owned.
48
49 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardTray);
50 };
51
52 } // namespace internal
53 } // namespace ash
54
55 #endif // ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698