// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_ACTIONS_CHROME_ACTION_ID_H_ #define CHROME_BROWSER_UI_ACTIONS_CHROME_ACTION_ID_H_ #include "chrome/app/chrome_command_ids.h" #include "ui/actions/action_id.h" // The references to the IDC_XXXX command ids is intended purely for // documentation purposes in order to maintain the correlation between the new // action id and the legacy command id. NOTE: The ordinal values will *not* be // the same. Eventually, these references may be removed once the transition to // pure ActionItems is complete. // clang-format off #define CHROME_COMMON_ACTION_IDS … #if BUILDFLAG(IS_CHROMEOS) #define CHROME_PLATFORM_SPECIFIC_ACTION_IDS … #elif BUILDFLAG(IS_CHROMEOS_ASH) #define CHROME_PLATFORM_SPECIFIC_ACTION_IDS … #elif BUILDFLAG(IS_LINUX) #define CHROME_PLATFORM_SPECIFIC_ACTION_IDS … // TODO(crbug.com/40118868): Revisit the macro expression once build flag switch // of lacros-chrome is complete. #elif BUILDFLAG(IS_CHROMEOS_LACROS) #define CHROME_PLATFORM_SPECIFIC_ACTION_IDS … #else #define CHROME_PLATFORM_SPECIFIC_ACTION_IDS #endif // BUILDFLAG(IS_CHROMEOS_LACROS) #if BUILDFLAG(GOOGLE_CHROME_BRANDING) #define CHROME_GOOGLE_BRANDED_ACTION_IDS … #else #define CHROME_GOOGLE_BRANDED_ACTION_IDS #endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) // TODO(crbug.com/40285337): Adding temporarily to unblock the side panel team. // Should be reinserted into CHROME_COMMON_ACTION_IDS when general solution to // add action id mappings is implemented. #define SIDE_PANEL_ACTION_IDS … \ #define TOOLBAR_PINNABLE_ACTION_IDS … \ #define CHROME_ACTION_IDS … #include "ui/actions/action_id_macros.inc" enum ChromeActionIds : actions::ActionId { … }; // Note that this second include is not redundant. The second inclusion of the // .inc file serves to undefine the macros the first inclusion defined. #include "ui/actions/action_id_macros.inc" // clang-format on #endif // CHROME_BROWSER_UI_ACTIONS_CHROME_ACTION_ID_H_