OLD | NEW |
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 "content/browser/accessibility/browser_accessibility_state_impl.h" | 5 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "build/build_config.h" |
9 #include "content/browser/accessibility/accessibility_mode_helper.h" | 12 #include "content/browser/accessibility/accessibility_mode_helper.h" |
10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 13 #include "content/browser/renderer_host/render_widget_host_impl.h" |
11 #include "content/browser/web_contents/web_contents_impl.h" | 14 #include "content/browser/web_contents/web_contents_impl.h" |
12 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
14 #include "ui/gfx/color_utils.h" | 17 #include "ui/gfx/color_utils.h" |
15 | 18 |
16 namespace content { | 19 namespace content { |
17 | 20 |
18 // Update the accessibility histogram 45 seconds after initialization. | 21 // Update the accessibility histogram 45 seconds after initialization. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 WebContentsImpl::GetAllWebContents(); | 161 WebContentsImpl::GetAllWebContents(); |
159 for (size_t i = 0; i < web_contents_vector.size(); ++i) { | 162 for (size_t i = 0; i < web_contents_vector.size(); ++i) { |
160 if (add) | 163 if (add) |
161 web_contents_vector[i]->AddAccessibilityMode(mode); | 164 web_contents_vector[i]->AddAccessibilityMode(mode); |
162 else | 165 else |
163 web_contents_vector[i]->RemoveAccessibilityMode(mode); | 166 web_contents_vector[i]->RemoveAccessibilityMode(mode); |
164 } | 167 } |
165 } | 168 } |
166 | 169 |
167 } // namespace content | 170 } // namespace content |
OLD | NEW |