PerfTraceView+Accessibility.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import "../Models/AccessibilityItem.h"
  15. #import "PerfTraceView.h"
  16. NS_ASSUME_NONNULL_BEGIN
  17. @interface PerfTraceView (Accessibility)
  18. /**
  19. * @param traceName Name of the current trace.
  20. * @return An AccessibilityItem for a stage UI element reflecting the current trace name.
  21. */
  22. + (AccessibilityItem *)stageAccessibilityItemWithTraceName:(NSString *)traceName;
  23. /**
  24. * @param traceName Name of the current trace.
  25. * @return An AccessibilityItem for a stop UI element reflecting the current trace name.
  26. */
  27. + (AccessibilityItem *)stopAccessibilityItemWithTraceName:(NSString *)traceName;
  28. /**
  29. * @param traceName Name of the current trace.
  30. * @return An AccessibilityItem for a counter UI element reflecting the current trace name.
  31. */
  32. + (AccessibilityItem *)metricOneAccessibilityItemWithTraceName:(NSString *)traceName;
  33. /**
  34. * @param traceName Name of the current trace.
  35. * @return An AccessibilityItem for a second counter UI element reflecting the current trace name.
  36. */
  37. + (AccessibilityItem *)metricTwoAccessibilityItemWithTraceName:(NSString *)traceName;
  38. /**
  39. * @param traceName Name of the current trace.
  40. * @return An AccessibilityItem for a custom attribute UI element reflecting the current trace name.
  41. */
  42. + (AccessibilityItem *)customAttributeAccessibilityItemWithTraceName:(NSString *)traceName;
  43. @end
  44. NS_ASSUME_NONNULL_END