| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversion_utils.h" | 9 #include "base/strings/utf_string_conversion_utils.h" |
| 10 #include "components/pdf/renderer/pdf_accessibility_tree.h" | 10 #include "components/pdf/renderer/pdf_accessibility_tree.h" |
| 11 #include "components/strings/grit/components_strings.h" |
| 11 #include "content/public/renderer/render_accessibility.h" | 12 #include "content/public/renderer/render_accessibility.h" |
| 12 #include "content/public/renderer/render_frame.h" | 13 #include "content/public/renderer/render_frame.h" |
| 13 #include "content/public/renderer/render_view.h" | 14 #include "content/public/renderer/render_view.h" |
| 14 #include "content/public/renderer/renderer_ppapi_host.h" | 15 #include "content/public/renderer/renderer_ppapi_host.h" |
| 15 #include "grit/components_strings.h" | |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/gfx/geometry/rect_conversions.h" | 17 #include "ui/gfx/geometry/rect_conversions.h" |
| 18 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
| 19 | 19 |
| 20 namespace pdf { | 20 namespace pdf { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Don't try to apply font size thresholds to automatically identify headings | 24 // Don't try to apply font size thresholds to automatically identify headings |
| 25 // if the median font size is not at least this many points. | 25 // if the median font size is not at least this many points. |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 const ui::AXNode* PdfAccessibilityTree::GetNull() const { | 352 const ui::AXNode* PdfAccessibilityTree::GetNull() const { |
| 353 return nullptr; | 353 return nullptr; |
| 354 } | 354 } |
| 355 | 355 |
| 356 void PdfAccessibilityTree::SerializeNode( | 356 void PdfAccessibilityTree::SerializeNode( |
| 357 const ui::AXNode* node, ui::AXNodeData* out_data) const { | 357 const ui::AXNode* node, ui::AXNodeData* out_data) const { |
| 358 *out_data = node->data(); | 358 *out_data = node->data(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace pdf | 361 } // namespace pdf |
| OLD | NEW |