summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h')
-rw-r--r--chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h b/chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h
deleted file mode 100644
index ed116be4fe5..00000000000
--- a/chromium/chrome/browser/ui/webui/side_panel/read_anything/read_anything_toolbar_view.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2022 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.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_TOOLBAR_VIEW_H_
-#define CHROME_BROWSER_UI_WEBUI_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_TOOLBAR_VIEW_H_
-
-#include "base/memory/weak_ptr.h"
-#include "ui/base/models/combobox_model.h"
-#include "ui/views/controls/combobox/combobox.h"
-#include "ui/views/view.h"
-
-// Generic View for the toolbar of the Read Anything side panel.
-class ReadAnythingToolbarView : public views::View {
- public:
- class Delegate {
- public:
- virtual void OnFontChoiceChanged(int new_choice) = 0;
- };
-
- explicit ReadAnythingToolbarView(ReadAnythingToolbarView::Delegate* delegate);
- ReadAnythingToolbarView(const ReadAnythingToolbarView&) = delete;
- ReadAnythingToolbarView& operator=(const ReadAnythingToolbarView&) = delete;
- ~ReadAnythingToolbarView() override;
-
- // View bindings for the font style combobox.
- void SetFontModel(ui::ComboboxModel* model);
-
- private:
- void FontNameChangedCallback();
-
- raw_ptr<views::Combobox> font_combobox_;
- raw_ptr<ReadAnythingToolbarView::Delegate> delegate_;
-
- base::WeakPtrFactory<ReadAnythingToolbarView> weak_pointer_factory_{this};
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_TOOLBAR_VIEW_H_