[go: nahoru, domu]

[cc] Use more standard enumerator names part #2

Use more standard enumerator names in //cc part #2

https://google.github.io/styleguide/cppguide.html#Enumerator_Names

There are still some non-standard enumerator names in the //cc
directory, which will be modified in subsequent patches.

Bug: 1480233
Change-Id: I3836386341d2be5000ab95aed8390a04aa659279
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4854728
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Reviewed-by: Stefan Zager <szager@chromium.org>
Commit-Queue: Ho Cheung <uioptt24@gmail.com>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1196671}
diff --git a/cc/paint/paint_canvas.h b/cc/paint/paint_canvas.h
index 6c860ec..06cd77e 100644
--- a/cc/paint/paint_canvas.h
+++ b/cc/paint/paint_canvas.h
@@ -212,9 +212,9 @@
 
   // Used for printing
   enum class AnnotationType {
-    URL,
-    NAMED_DESTINATION,
-    LINK_TO_DESTINATION,
+    kUrl,
+    kNameDestination,
+    kLinkToDestination,
   };
   virtual void Annotate(AnnotationType type,
                         const SkRect& rect,