chromium/chrome/browser/ui/views/download/bubble/download_bubble_primary_view.cc

// 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.

#include "chrome/browser/ui/views/download/bubble/download_bubble_primary_view.h"

#include <string_view>

#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "chrome/browser/download/bubble/download_bubble_prefs.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/download/download_bubble_info.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/download/bubble/download_bubble_row_list_view.h"
#include "chrome/browser/ui/views/download/bubble/download_bubble_row_view.h"
#include "chrome/grit/generated_resources.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_provider.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/layout_types.h"
#include "ui/views/vector_icons.h"

namespace {

// 7.5 rows * 60 px per row = 450;
constexpr int kMaxHeightForRowList =;

bool IsOtrInfoRowEnabled(Browser* browser) {}

}  // namespace

DownloadBubblePrimaryView::DownloadBubblePrimaryView()
    :{}

DownloadBubblePrimaryView::~DownloadBubblePrimaryView() = default;

void DownloadBubblePrimaryView::LogVisibleTimeMetrics() const {}

void DownloadBubblePrimaryView::BuildAndAddScrollView(
    base::WeakPtr<Browser> browser,
    base::WeakPtr<DownloadBubbleUIController> bubble_controller,
    base::WeakPtr<DownloadBubbleNavigationHandler> navigation_handler,
    const DownloadBubbleRowListViewInfo& info,
    int fixed_width) {}

void DownloadBubblePrimaryView::MaybeAddOtrInfoRow(Browser* browser) {}

int DownloadBubblePrimaryView::DefaultPreferredWidth() const {}

DownloadBubbleRowView* DownloadBubblePrimaryView::GetRow(
    const offline_items_collection::ContentId& id) {}

views::View* DownloadBubblePrimaryView::GetInitiallyFocusedView() {}

DownloadBubbleRowView* DownloadBubblePrimaryView::GetRowForTesting(
    size_t index) {}

BEGIN_METADATA()