
This change introduces a metric to see what percentage of PDFs opened by accessibility users are tagged. Bug: none Test: cq. Manually verified with a tagged PDF, untagged/inaccessible PDF Change-Id: I1037950f4b2af469ff92d07e6552eb4499d65816 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5448476 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1289583}
27 lines
720 B
C++
27 lines
720 B
C++
// Copyright 2022 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef PDF_METRICS_HANDLER_H_
|
|
#define PDF_METRICS_HANDLER_H_
|
|
|
|
namespace chrome_pdf {
|
|
|
|
struct DocumentMetadata;
|
|
|
|
// Handles various UMA metrics. Note that action metrics are handled separately.
|
|
class MetricsHandler {
|
|
public:
|
|
MetricsHandler();
|
|
MetricsHandler(const MetricsHandler& other) = delete;
|
|
MetricsHandler& operator=(const MetricsHandler& other) = delete;
|
|
~MetricsHandler();
|
|
|
|
void RecordDocumentMetrics(const DocumentMetadata& metadata);
|
|
void RecordAccessibilityIsDocTagged(bool is_tagged);
|
|
};
|
|
|
|
} // namespace chrome_pdf
|
|
|
|
#endif // PDF_METRICS_HANDLER_H_
|