1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef ASH_METRICS_PIP_UMA_H_ 6 #define ASH_METRICS_PIP_UMA_H_ 7 8 #include "ash/public/cpp/ash_public_export.h" 9 10 namespace ash { 11 12 constexpr char kAshPipEventsHistogramName[] = "Ash.Pip.Events"; 13 constexpr char kAshPipFreeResizeInitialAreaHistogramName[] = 14 "Ash.Pip.FreeResizeInitialArea"; 15 constexpr char kAshPipFreeResizeFinishAreaHistogramName[] = 16 "Ash.Pip.FreeResizeFinishArea"; 17 constexpr char kAshPipPositionHistogramName[] = "Ash.Pip.Position"; 18 constexpr char kAshPipAndroidPipUseTimeHistogramName[] = 19 "Ash.Pip.AndroidPipUseTime"; 20 21 // This enum should be kept in sync with the AshPipEvents enum in 22 // src/tools/metrics/histograms/enums.xml. 23 enum class AshPipEvents { 24 PIP_START = 0, 25 PIP_END = 1, 26 ANDROID_PIP_START = 2, 27 ANDROID_PIP_END = 3, 28 CHROME_PIP_START = 4, 29 CHROME_PIP_END = 5, 30 FREE_RESIZE = 6, 31 kMaxValue = FREE_RESIZE 32 }; 33 34 // This enum should be kept in sync with the AshPipPosition enum in 35 // src/tools/metrics/histograms/enums.xml. 36 enum class AshPipPosition { 37 MIDDLE = 0, 38 TOP_MIDDLE = 1, 39 MIDDLE_LEFT = 2, 40 MIDDLE_RIGHT = 3, 41 BOTTOM_MIDDLE = 4, 42 TOP_LEFT = 5, 43 TOP_RIGHT = 6, 44 BOTTOM_LEFT = 7, 45 BOTTOM_RIGHT = 8, 46 kMaxValue = BOTTOM_RIGHT 47 }; 48 49 } // namespace ash 50 51 #endif // ASH_METRICS_PIP_UMA_H_ 52