Jack Hsieh | d06b101 | 2022-12-13 18:20:14 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/hid/hid_pinned_notification.h" |
| 6 | |
Yuta Hijikata | 761ca45 | 2025-03-06 08:53:17 | [diff] [blame] | 7 | #include "build/build_config.h" |
Juan Garza Sanchez | 852a3109 | 2023-06-20 20:45:18 | [diff] [blame] | 8 | #include "chrome/browser/device_notifications/device_pinned_notification_renderer.h" |
Jack Hsieh | a10d15a | 2023-04-25 22:01:10 | [diff] [blame] | 9 | #include "chrome/grit/generated_resources.h" |
Jack Hsieh | d06b101 | 2022-12-13 18:20:14 | [diff] [blame] | 10 | |
Juan Garza Sanchez | 852a3109 | 2023-06-20 20:45:18 | [diff] [blame] | 11 | HidPinnedNotification::HidPinnedNotification() |
| 12 | : HidSystemTrayIcon(std::make_unique<DevicePinnedNotificationRenderer>( |
| 13 | this, |
| 14 | "chrome://device_indicator/hid/", |
Yuta Hijikata | 761ca45 | 2025-03-06 08:53:17 | [diff] [blame] | 15 | #if BUILDFLAG(IS_CHROMEOS) |
Juan Garza Sanchez | 852a3109 | 2023-06-20 20:45:18 | [diff] [blame] | 16 | ash::NotificationCatalogName::kWebHid, |
| 17 | #endif |
| 18 | IDS_WEBHID_SYSTEM_TRAY_ICON_EXTENSION_LIST)) {} |
Jack Hsieh | d06b101 | 2022-12-13 18:20:14 | [diff] [blame] | 19 | |
| 20 | HidPinnedNotification::~HidPinnedNotification() = default; |