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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "ash/audio/sounds.h" 10 #include "ash/audio/sounds.h"
8 #include "ash/autoclick/autoclick_controller.h" 11 #include "ash/autoclick/autoclick_controller.h"
9 #include "ash/high_contrast/high_contrast_controller.h" 12 #include "ash/high_contrast/high_contrast_controller.h"
10 #include "ash/metrics/user_metrics_recorder.h" 13 #include "ash/metrics/user_metrics_recorder.h"
11 #include "ash/session/session_state_delegate.h" 14 #include "ash/session/session_state_delegate.h"
12 #include "ash/shelf/shelf_layout_manager.h" 15 #include "ash/shelf/shelf_layout_manager.h"
13 #include "ash/shell.h" 16 #include "ash/shell.h"
14 #include "ash/sticky_keys/sticky_keys_controller.h" 17 #include "ash/sticky_keys/sticky_keys_controller.h"
15 #include "ash/system/tray/system_tray_notifier.h" 18 #include "ash/system/tray/system_tray_notifier.h"
16 #include "base/callback.h" 19 #include "base/callback.h"
17 #include "base/callback_helpers.h" 20 #include "base/callback_helpers.h"
18 #include "base/command_line.h" 21 #include "base/command_line.h"
22 #include "base/macros.h"
19 #include "base/memory/scoped_ptr.h" 23 #include "base/memory/scoped_ptr.h"
20 #include "base/memory/singleton.h" 24 #include "base/memory/singleton.h"
21 #include "base/metrics/histogram.h" 25 #include "base/metrics/histogram.h"
22 #include "base/path_service.h" 26 #include "base/path_service.h"
23 #include "base/prefs/pref_member.h" 27 #include "base/prefs/pref_member.h"
24 #include "base/prefs/pref_service.h" 28 #include "base/prefs/pref_service.h"
25 #include "base/strings/string_split.h" 29 #include "base/strings/string_split.h"
26 #include "base/strings/string_util.h" 30 #include "base/strings/string_util.h"
27 #include "base/time/time.h" 31 #include "base/time/time.h"
28 #include "base/values.h" 32 #include "base/values.h"
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1045
1042 void AccessibilityManager::UpdateChromeOSAccessibilityHistograms() { 1046 void AccessibilityManager::UpdateChromeOSAccessibilityHistograms() {
1043 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosSpokenFeedback", 1047 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosSpokenFeedback",
1044 IsSpokenFeedbackEnabled()); 1048 IsSpokenFeedbackEnabled());
1045 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosHighContrast", 1049 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosHighContrast",
1046 IsHighContrastEnabled()); 1050 IsHighContrastEnabled());
1047 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosVirtualKeyboard", 1051 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosVirtualKeyboard",
1048 IsVirtualKeyboardEnabled()); 1052 IsVirtualKeyboardEnabled());
1049 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosStickyKeys", IsStickyKeysEnabled()); 1053 UMA_HISTOGRAM_BOOLEAN("Accessibility.CrosStickyKeys", IsStickyKeysEnabled());
1050 if (MagnificationManager::Get()) { 1054 if (MagnificationManager::Get()) {
1051 uint32 type = MagnificationManager::Get()->IsMagnifierEnabled() ? 1055 uint32_t type = MagnificationManager::Get()->IsMagnifierEnabled()
1052 MagnificationManager::Get()->GetMagnifierType() : 0; 1056 ? MagnificationManager::Get()->GetMagnifierType()
1057 : 0;
1053 // '0' means magnifier is disabled. 1058 // '0' means magnifier is disabled.
1054 UMA_HISTOGRAM_ENUMERATION("Accessibility.CrosScreenMagnifier", 1059 UMA_HISTOGRAM_ENUMERATION("Accessibility.CrosScreenMagnifier",
1055 type, 1060 type,
1056 ui::kMaxMagnifierType + 1); 1061 ui::kMaxMagnifierType + 1);
1057 } 1062 }
1058 if (profile_) { 1063 if (profile_) {
1059 const PrefService* const prefs = profile_->GetPrefs(); 1064 const PrefService* const prefs = profile_->GetPrefs();
1060 UMA_HISTOGRAM_BOOLEAN( 1065 UMA_HISTOGRAM_BOOLEAN(
1061 "Accessibility.CrosLargeCursor", 1066 "Accessibility.CrosLargeCursor",
1062 prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); 1067 prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled));
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 chromevox_panel_ = nullptr; 1204 chromevox_panel_ = nullptr;
1200 ash::ShelfLayoutManager::ForShelf(root_window)->SetChromeVoxPanelHeight(0); 1205 ash::ShelfLayoutManager::ForShelf(root_window)->SetChromeVoxPanelHeight(0);
1201 } 1206 }
1202 1207
1203 void AccessibilityManager::OnChromeVoxPanelDestroying() { 1208 void AccessibilityManager::OnChromeVoxPanelDestroying() {
1204 chromevox_panel_widget_observer_.reset(nullptr); 1209 chromevox_panel_widget_observer_.reset(nullptr);
1205 chromevox_panel_ = nullptr; 1210 chromevox_panel_ = nullptr;
1206 } 1211 }
1207 1212
1208 } // namespace chromeos 1213 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698