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

Unified Diff: ash/common/system/tray_accessibility.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/view_click_listener.h ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray_accessibility.h
diff --git a/ash/common/system/tray_accessibility.h b/ash/common/system/tray_accessibility.h
deleted file mode 100644
index 472ab0f944006c7895a6e73cd3aa4315bfe59b3d..0000000000000000000000000000000000000000
--- a/ash/common/system/tray_accessibility.h
+++ /dev/null
@@ -1,151 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_
-#define ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_
-
-#include <stdint.h>
-
-#include "ash/common/accessibility_delegate.h"
-#include "ash/common/shell_observer.h"
-#include "ash/common/system/accessibility_observer.h"
-#include "ash/common/system/tray/tray_details_view.h"
-#include "ash/common/system/tray/tray_image_item.h"
-#include "ash/common/system/tray/tray_notification_view.h"
-#include "base/macros.h"
-#include "ui/gfx/font.h"
-#include "ui/views/controls/button/button.h"
-
-namespace chromeos {
-class TrayAccessibilityTest;
-}
-
-namespace gfx {
-struct VectorIcon;
-}
-
-namespace views {
-class Button;
-class CustomButton;
-class Label;
-class View;
-}
-
-namespace ash {
-class HoverHighlightView;
-class SystemTrayItem;
-
-namespace tray {
-
-class AccessibilityPopupView : public TrayNotificationView {
- public:
- explicit AccessibilityPopupView(uint32_t enabled_state_bits);
-
- const views::Label* label_for_test() const { return label_; }
-
- private:
- views::Label* CreateLabel(uint32_t enabled_state_bits);
-
- views::Label* label_;
-
- DISALLOW_COPY_AND_ASSIGN(AccessibilityPopupView);
-};
-
-// Create the detailed view of accessibility tray.
-class AccessibilityDetailedView : public TrayDetailsView,
- public ShellObserver {
- public:
- AccessibilityDetailedView(SystemTrayItem* owner, LoginStatus login);
- ~AccessibilityDetailedView() override {}
-
- private:
- // TrayDetailsView:
- void HandleViewClicked(views::View* view) override;
- void HandleButtonPressed(views::Button* sender,
- const ui::Event& event) override;
- void CreateExtraTitleRowButtons() override;
-
- // Launches the WebUI settings in a browser and closes the system menu.
- void ShowSettings();
-
- // Launches the a11y help article in a browser and closes the system menu.
- void ShowHelp();
-
- // Add the accessibility feature list.
- void AppendAccessibilityList();
-
- // Helper function to create entries in the detailed accessibility view.
- HoverHighlightView* AddScrollListItem(const base::string16& text,
- bool highlight,
- bool checked,
- const gfx::VectorIcon& icon);
-
- views::View* spoken_feedback_view_;
- views::View* high_contrast_view_;
- views::View* screen_magnifier_view_;
- views::View* large_cursor_view_;
- views::CustomButton* help_view_;
- views::CustomButton* settings_view_;
- views::View* autoclick_view_;
- views::View* virtual_keyboard_view_;
-
- bool spoken_feedback_enabled_;
- bool high_contrast_enabled_;
- bool screen_magnifier_enabled_;
- bool large_cursor_enabled_;
- bool autoclick_enabled_;
- bool virtual_keyboard_enabled_;
- LoginStatus login_;
-
- friend class chromeos::TrayAccessibilityTest;
- DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView);
-};
-
-} // namespace tray
-
-class TrayAccessibility : public TrayImageItem, public AccessibilityObserver {
- public:
- explicit TrayAccessibility(SystemTray* system_tray);
- ~TrayAccessibility() override;
-
- private:
- void SetTrayIconVisible(bool visible);
- tray::AccessibilityDetailedView* CreateDetailedMenu();
-
- // Overridden from TrayImageItem.
- bool GetInitialVisibility() override;
- views::View* CreateDefaultView(LoginStatus status) override;
- views::View* CreateDetailedView(LoginStatus status) override;
- void DestroyDefaultView() override;
- void DestroyDetailedView() override;
- void UpdateAfterLoginStatusChange(LoginStatus status) override;
-
- // Overridden from AccessibilityObserver.
- void OnAccessibilityModeChanged(
- AccessibilityNotificationVisibility notify) override;
-
- views::View* default_;
- tray::AccessibilityPopupView* detailed_popup_;
- tray::AccessibilityDetailedView* detailed_menu_;
-
- // Bitmap of fvalues from AccessibilityState. Can contain any or
- // both of A11Y_SPOKEN_FEEDBACK A11Y_BRAILLE_DISPLAY_CONNECTED.
- uint32_t request_popup_view_state_;
-
- bool tray_icon_visible_;
- LoginStatus login_;
-
- // Bitmap of values from AccessibilityState enum.
- uint32_t previous_accessibility_state_;
-
- // A11y feature status on just entering the lock screen.
- bool show_a11y_menu_on_lock_screen_;
-
- friend class chromeos::TrayAccessibilityTest;
- DISALLOW_COPY_AND_ASSIGN(TrayAccessibility);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_
« no previous file with comments | « ash/common/system/tray/view_click_listener.h ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698