// Copyright 2019 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 * as ConsoleModule from './console.js';

self.Console = self.Console || {};
Console = Console || {};

/**
 * @constructor
 */
Console.ConsoleFilter = ConsoleModule.ConsoleFilter.ConsoleFilter;

/**
 * @constructor
 */
Console.ConsolePanel = ConsoleModule.ConsolePanel.ConsolePanel;

/**
 * @constructor
 */
Console.ConsolePanel.WrapperView = ConsoleModule.ConsolePanel.WrapperView;

/**
 * @implements {Common.Revealer}
 */
Console.ConsolePanel.ConsoleRevealer = ConsoleModule.ConsolePanel.ConsoleRevealer;

/**
 * @constructor
 */
Console.ConsolePin = ConsoleModule.ConsolePinPane.ConsolePin;

/**
 * @constructor
 */
Console.ConsolePrompt = ConsoleModule.ConsolePrompt.ConsolePrompt;

/**
 * @constructor
 */
Console.ConsoleSidebar = ConsoleModule.ConsoleSidebar.ConsoleSidebar;

/**
 * @constructor
 */
Console.ConsoleView = ConsoleModule.ConsoleView.ConsoleView;

/** @constructor */
Console.ConsoleViewFilter = ConsoleModule.ConsoleView.ConsoleViewFilter;

/**
 * @implements {UI.ActionDelegate}
 */
Console.ConsoleView.ActionDelegate = ConsoleModule.ConsoleView.ActionDelegate;

/**
 * @constructor
 */
Console.ConsoleGroup = ConsoleModule.ConsoleView.ConsoleGroup;

/**
 * @implements {Console.ConsoleViewportElement}
 * @unrestricted
 * @constructor
 */
Console.ConsoleViewMessage = ConsoleModule.ConsoleViewMessage.ConsoleViewMessage;

/**
 * @type {function(number):void}
 */
Console.ConsoleViewMessage.setMaxTokenizableStringLength =
    ConsoleModule.ConsoleViewMessage.setMaxTokenizableStringLength;

/**
 * @type {function(number):void}
 */
Console.ConsoleViewMessage.setLongStringVisibleLength = ConsoleModule.ConsoleViewMessage.setLongStringVisibleLength;

/**
 * @constructor
 */
Console.ConsoleGroupViewMessage = ConsoleModule.ConsoleViewMessage.ConsoleGroupViewMessage;

Object.defineProperty(Console.ConsoleViewMessage, '_MaxTokenizableStringLength', {
  get: ConsoleModule.ConsoleViewMessage.getMaxTokenizableStringLength,
  set: ConsoleModule.ConsoleViewMessage.setMaxTokenizableStringLength,
});

Object.defineProperty(Console.ConsoleViewMessage, '_LongStringVisibleLength', {
  get: ConsoleModule.ConsoleViewMessage.getLongStringVisibleLength,
  set: ConsoleModule.ConsoleViewMessage.setLongStringVisibleLength,
});

/**
 * @constructor
 */
Console.ConsoleViewport = ConsoleModule.ConsoleViewport.ConsoleViewport;

/**
 * @interface
 */
Console.ConsoleViewportElement = ConsoleModule.ConsoleViewport.ConsoleViewportElement;

@@ -1960,459 +1960,8 @@
 e;%0A%0A
-Object.defineProperty(Console.ConsoleViewMessage, '_MaxTokenizableStringLength', %7B%0A  get: ConsoleModule.ConsoleViewMessage.getMaxTokenizableStringLength,%0A  set: ConsoleModule.ConsoleViewMessage.setMaxTokenizableStringLength,%0A%7D);%0A%0AObject.defineProperty(Console.ConsoleViewMessage, '_LongStringVisibleLength', %7B%0A  get: ConsoleModule.ConsoleViewMessage.getLongStringVisibleLength,%0A  set: ConsoleModule.ConsoleViewMessage.setLongStringVisibleLength,%0A%7D);%0A%0A
 /**%0A

Remove legacy accessors after https://crrev.com/c/2467936