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