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

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

Issue 1953613002: Make touch accessibility gestures work with ChromeVox Next (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 (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 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "ash/accelerators/magnifier_key_scroller.h" 9 #include "ash/accelerators/magnifier_key_scroller.h"
10 #include "ash/accelerators/spoken_feedback_toggler.h" 10 #include "ash/accelerators/spoken_feedback_toggler.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 void PlayEarcon(int sound_key) override { 295 void PlayEarcon(int sound_key) override {
296 DCHECK(chromeos::AccessibilityManager::Get()); 296 DCHECK(chromeos::AccessibilityManager::Get());
297 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); 297 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key);
298 } 298 }
299 299
300 base::TimeDelta PlayShutdownSound() const override { 300 base::TimeDelta PlayShutdownSound() const override {
301 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); 301 return chromeos::AccessibilityManager::Get()->PlayShutdownSound();
302 } 302 }
303 303
304 void HandleAccessibilityGesture(ui::AXGesture gesture) override {
305 chromeos::AccessibilityManager::Get()->HandleAccessibilityGesture(gesture);
306 }
307
304 private: 308 private:
305 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); 309 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl);
306 }; 310 };
307 311
308 } // namespace 312 } // namespace
309 313
310 ChromeShellDelegate::ChromeShellDelegate() 314 ChromeShellDelegate::ChromeShellDelegate()
311 : shelf_delegate_(NULL) { 315 : shelf_delegate_(NULL) {
312 PlatformInit(); 316 PlatformInit();
313 } 317 }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 NOTREACHED() << "Unexpected notification " << type; 559 NOTREACHED() << "Unexpected notification " << type;
556 } 560 }
557 } 561 }
558 562
559 void ChromeShellDelegate::PlatformInit() { 563 void ChromeShellDelegate::PlatformInit() {
560 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 564 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
561 content::NotificationService::AllSources()); 565 content::NotificationService::AllSources());
562 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, 566 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED,
563 content::NotificationService::AllSources()); 567 content::NotificationService::AllSources());
564 } 568 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698