chromium/chrome/browser/ui/views/send_tab_to_self/send_tab_to_self_device_picker_bubble_view.cc

// Copyright 2019 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/send_tab_to_self/send_tab_to_self_device_picker_bubble_view.h"

#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/browser/ui/views/send_tab_to_self/manage_account_devices_link_view.h"
#include "chrome/browser/ui/views/send_tab_to_self/send_tab_to_self_bubble_controller.h"
#include "chrome/browser/ui/views/send_tab_to_self/send_tab_to_self_bubble_device_button.h"
#include "chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_util.h"
#include "chrome/grit/generated_resources.h"
#include "components/send_tab_to_self/features.h"
#include "components/send_tab_to_self/target_device_info.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/ui_base_types.h"
#include "ui/color/color_id.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/separator.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/style/typography.h"
#include "ui/views/view_class_properties.h"

namespace send_tab_to_self {

namespace {

// The valid device button height.
constexpr int kDeviceButtonHeight =;
// Maximum number of buttons that are shown without scroll. If the device
// number is larger than kMaximumButtons, the bubble content will be
// scrollable.
constexpr int kMaximumButtons =;

// Used to group the device buttons together, which makes moving between them
// with arrow keys possible.
constexpr int kDeviceButtonGroup =;

}  // namespace

SendTabToSelfDevicePickerBubbleView::SendTabToSelfDevicePickerBubbleView(
    views::View* anchor_view,
    content::WebContents* web_contents)
    :{}

SendTabToSelfDevicePickerBubbleView::~SendTabToSelfDevicePickerBubbleView() =
    default;

void SendTabToSelfDevicePickerBubbleView::Hide() {}

bool SendTabToSelfDevicePickerBubbleView::ShouldShowCloseButton() const {}

std::u16string SendTabToSelfDevicePickerBubbleView::GetWindowTitle() const {}

void SendTabToSelfDevicePickerBubbleView::WindowClosing() {}

void SendTabToSelfDevicePickerBubbleView::BackButtonPressed() {}

void SendTabToSelfDevicePickerBubbleView::DeviceButtonPressed(
    SendTabToSelfBubbleDeviceButton* device_button) {}

const views::View*
SendTabToSelfDevicePickerBubbleView::GetButtonContainerForTesting() const {}

void SendTabToSelfDevicePickerBubbleView::Init() {}

void SendTabToSelfDevicePickerBubbleView::AddedToWidget() {}

void SendTabToSelfDevicePickerBubbleView::CreateHintTextLabel() {}

void SendTabToSelfDevicePickerBubbleView::CreateDevicesScrollView() {}

BEGIN_METADATA()

}  // namespace send_tab_to_self