1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Copyright 2022 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef ASH_SYSTEM_NETWORK_NETWORK_UTILS_H_
- #define ASH_SYSTEM_NETWORK_NETWORK_UTILS_H_
- #include "ash/ash_export.h"
- #include "chromeos/services/network_config/public/mojom/cros_network_config.mojom.h"
- namespace ash {
- // This enum is tied directly to a UMA enum |NetworkRowClickedAction| defined in
- // //tools/metrics/histograms/enums.xml, and should always reflect it (do not
- // change one without changing the other).
- enum class NetworkRowClickedAction {
- kConnectToNetwork = 0,
- kOpenNetworkSettingsPage = 1,
- kOpenSimUnlockDialog = 2,
- kMaxValue = kOpenSimUnlockDialog
- };
- // This enum is tied directly to a UMA enum |DetailedViewSection| defined in
- // //tools/metrics/histograms/enums.xml, and should always reflect it (do not
- // change one without changing the other).
- enum class DetailedViewSection {
- kWifiSection = 0,
- kMobileSection = 1,
- kEthernetSection = 2,
- kDetailedSection = 3,
- kMaxValue = kDetailedSection
- };
- ASH_EXPORT void RecordNetworkRowClickedAction(NetworkRowClickedAction action);
- ASH_EXPORT void RecordDetailedViewSection(DetailedViewSection section);
- ASH_EXPORT void RecordNetworkTypeToggled(
- chromeos::network_config::mojom::NetworkType network_type,
- bool new_state);
- } // namespace ash
- #endif // ASH_SYSTEM_NETWORK_NETWORK_UTILS_H_
|