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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc

Issue 213233003: Show a notification when a braille display is connected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Style and const correctness fixes. 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/accelerators/magnifier_key_scroller.h" 7 #include "ash/accelerators/magnifier_key_scroller.h"
8 #include "ash/accelerators/spoken_feedback_toggler.h" 8 #include "ash/accelerators/spoken_feedback_toggler.h"
9 #include "ash/accessibility_delegate.h" 9 #include "ash/accessibility_delegate.h"
10 #include "ash/media_delegate.h" 10 #include "ash/media_delegate.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 DCHECK(chromeos::AccessibilityManager::Get()); 141 DCHECK(chromeos::AccessibilityManager::Get());
142 return chromeos::AccessibilityManager::Get()->IsVirtualKeyboardEnabled(); 142 return chromeos::AccessibilityManager::Get()->IsVirtualKeyboardEnabled();
143 } 143 }
144 144
145 virtual bool ShouldShowAccessibilityMenu() const OVERRIDE { 145 virtual bool ShouldShowAccessibilityMenu() const OVERRIDE {
146 DCHECK(chromeos::AccessibilityManager::Get()); 146 DCHECK(chromeos::AccessibilityManager::Get());
147 return chromeos::AccessibilityManager::Get()-> 147 return chromeos::AccessibilityManager::Get()->
148 ShouldShowAccessibilityMenu(); 148 ShouldShowAccessibilityMenu();
149 } 149 }
150 150
151 virtual bool IsBrailleDisplayConnected() const OVERRIDE {
152 DCHECK(chromeos::AccessibilityManager::Get());
153 return chromeos::AccessibilityManager::Get()->IsBrailleDisplayConnected();
154 }
155
151 virtual void SilenceSpokenFeedback() const OVERRIDE { 156 virtual void SilenceSpokenFeedback() const OVERRIDE {
152 TtsController::GetInstance()->Stop(); 157 TtsController::GetInstance()->Stop();
153 } 158 }
154 159
155 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE { 160 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE {
156 if (chromeos::MagnificationManager::Get()) 161 if (chromeos::MagnificationManager::Get())
157 chromeos::MagnificationManager::Get()->SaveScreenMagnifierScale(scale); 162 chromeos::MagnificationManager::Get()->SaveScreenMagnifierScale(scale);
158 } 163 }
159 164
160 virtual double GetSavedScreenMagnifierScale() OVERRIDE { 165 virtual double GetSavedScreenMagnifierScale() OVERRIDE {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 registrar_.Add(this, 304 registrar_.Add(this,
300 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 305 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
301 content::NotificationService::AllSources()); 306 content::NotificationService::AllSources());
302 registrar_.Add(this, 307 registrar_.Add(this,
303 chrome::NOTIFICATION_SESSION_STARTED, 308 chrome::NOTIFICATION_SESSION_STARTED,
304 content::NotificationService::AllSources()); 309 content::NotificationService::AllSources());
305 registrar_.Add(this, 310 registrar_.Add(this,
306 chrome::NOTIFICATION_APP_TERMINATING, 311 chrome::NOTIFICATION_APP_TERMINATING,
307 content::NotificationService::AllSources()); 312 content::NotificationService::AllSources());
308 } 313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698