text: // Copyright 2021 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.
  
  import {AcceleratorConfig, AcceleratorInfo, AcceleratorKeys, AcceleratorSource, AcceleratorState, AcceleratorType, LayoutInfoList, LayoutStyle, Modifier} from './shortcut_types.js'
  
  /* @type {!Map<number, string>} */
  export const fakeActionNames = new Map([
    [0, 'Snap Window Left'],
    [1, 'Snap Window Right'],
    [2, 'New Desk'],
    [3, 'Remove Desk'],
    [1001, 'New Tab'],
  ]);
  
  /* @type {!Map<number, string>} */
  export const fakeCategories = new Map([
    [0, 'Chrome OS'],
    [1, 'Browser'],
  ]);
  
  /* @type {!Map<number, string>} */
  export const fakeSubCategories = new Map([
    [0, 'Window Management'],
    [1, 'Virtual Desks'],
    [2, 'Tabs'],
  ]);
  
  /* @type {!AcceleratorConfig} */
  export const fakeAcceleratorConfig = new Map([
    [
      AcceleratorSource.kAsh, new Map([
        // Snap Window Left
        [
          0, [{
            type: AcceleratorType.kDefault,
            state: AcceleratorState.kEnabled,
            locked: true,
            accelerator: {
              modifiers: Modifier.ALT,
              key: 219,
              key_display: '[',
            }
          }]
        ],
        // Snap Window Right
        [
          1, [{
            type: AcceleratorType.kDefault,
            state: AcceleratorState.kEnabled,
            locked: false,
            accelerator: {
              modifiers: Modifier.ALT,
              key: 221,
              key_display: ']',
            }
          }]
        ],
        // New Desk
        [
          2, [{
            type: AcceleratorType.kDefault,
            state: AcceleratorState.kEnabled,
            locked: false,
            accelerator: {
              modifiers: Modifier.COMMAND | Modifier.SHIFT,
              key: 187,
              key_display: '+',
            }
          }]
        ],
        // Remove Desk
        [
          3, [{
            type: AcceleratorType.kDefault,
            state: AcceleratorState.kEnabled,
            locked: false,
            accelerator: {
              modifiers: Modifier.COMMAND | Modifier.SHIFT,
              key: 189,
              key_display: '-',
            }
          }]
        ],
      ])
    ],
    [
      AcceleratorSource.kBrowser, new Map([
        // New Tab
        [
          1001, [{
            type: AcceleratorType.kDefault,
            state: AcceleratorState.kEnabled,
            locked: true,
            accelerator: {
              modifiers: Modifier.CONTROL,
              key: 84,
              key_display: 't',
            }
          }]
        ],
      ])
    ],
  ]);
  
  /* @type {!LayoutInfoList} */
  export const fakeLayoutInfo = [
    {
      category: 0,      // Chrome OS.
      sub_category: 0,  // Window Management.
      description: 0,   // Snap Window Left.
      layout_style: LayoutStyle.kDefault,
      source: AcceleratorSource.kAsh,
      action: 0,
    },
    {
      category: 0,      // Chrome OS.
      sub_category: 0,  // Window Management.
      description: 1,   // Snap Window Right.
      layout_style: LayoutStyle.kDefault,
      source: AcceleratorSource.kAsh,
      action: 1,
    },
    {
      category: 0,      // Chrome OS.
      sub_category: 1,  // Virtual Desks.
      description: 2,   // Create Desk.
      layout_style: LayoutStyle.kDefault,
      source: AcceleratorSource.kAsh,
      action: 2,
    },
    {
      category: 0,      // Chrome OS.
      sub_category: 1,  // Virtual Desks.
      description: 3,   // Remove Desk.
      layout_style: LayoutStyle.kDefault,
      source: AcceleratorSource.kAsh,
      action: 3,
    },
    {
      category: 1,        // Browser.
      sub_category: 2,    // Tabs.
      description: 1001,  // New tab.
      layout_style: LayoutStyle.kDefault,
      source: AcceleratorSource.kBrowser,
      action: 1001,
    },
  ];
  