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

Unified Diff: chrome/browser/chromeos/login/wizard_accessibility_helper.h

Issue 6312160: Map Views to Profiles directly from their window, eliminating the need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/chromeos/login/wizard_accessibility_helper.h
===================================================================
--- chrome/browser/chromeos/login/wizard_accessibility_helper.h (revision 74020)
+++ chrome/browser/chromeos/login/wizard_accessibility_helper.h (working copy)
@@ -6,13 +6,9 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HELPER_H_
#pragma once
-#include <map>
-#include <vector>
-
#include "base/scoped_ptr.h"
#include "base/singleton.h"
#include "chrome/browser/chromeos/login/wizard_accessibility_handler.h"
-#include "chrome/browser/ui/views/accessible_view_helper.h"
#include "chrome/common/notification_registrar.h"
#include "ui/base/keycodes/keyboard_codes.h"
@@ -34,17 +30,6 @@
// Get accelerator for enabling accessibility.
static views::Accelerator GetAccelerator();
- // Enables Accessibility by setting the accessibility pref and registers
- // all views in the view buffer to raise accessibility notifications,
- // including the specified |view_tree|.
- void EnableAccessibilityForView(views::View* view_tree);
-
- // Enables accessibility for the specified |view_tree| if the
- // accessibility pref is already set. Otherwise the |view_tree| is
- // added to a view buffer so that accessibility can be enabled for it
- // later when requested.
- void MaybeEnableAccessibility(views::View* view_tree);
-
// Speak the given text if the accessibility pref is already set. |queue|
// specifies whether this utterance will be queued or spoken immediately.
// |interruptible| specified whether this utterance can be flushed by a
@@ -55,10 +40,8 @@
// Unregisters all accessibility notifications
void UnregisterNotifications();
- // Toggles accessibility support. If |view_tree| is null, only the
- // access preference setting is toggled. |view_tree| has no effect while
- // disabling accessibility.
- void ToggleAccessibility(views::View* view_tree);
+ // Toggles accessibility support.
+ void ToggleAccessibility();
private:
friend struct DefaultSingletonTraits<WizardAccessibilityHelper>;
@@ -75,12 +58,6 @@
static scoped_ptr<views::Accelerator> accelerator_;
- void AddViewToBuffer(views::View* view_tree);
-
- std::map<views::View*, bool> views_buffer_;
-
- std::vector<AccessibleViewHelper*> accessible_view_helpers_;
-
scoped_ptr<WizardAccessibilityHandler> accessibility_handler_;
Profile* profile_;
« no previous file with comments | « chrome/browser/chromeos/login/user_image_view.cc ('k') | chrome/browser/chromeos/login/wizard_accessibility_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698