|
12 | 12 | #include "chrome/app/vector_icons/vector_icons.h"
|
13 | 13 | #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h"
|
14 | 14 | #include "chrome/browser/feature_engagement/tracker_factory.h"
|
15 |
| -#include "chrome/browser/themes/theme_properties.h" |
16 | 15 | #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
|
17 | 16 | #include "chrome/browser/ui/browser.h"
|
18 | 17 | #include "chrome/browser/ui/read_later/reading_list_model_factory.h"
|
|
27 | 26 | #include "components/feature_engagement/public/feature_constants.h"
|
28 | 27 | #include "components/feature_engagement/public/tracker.h"
|
29 | 28 | #include "ui/base/l10n/l10n_util.h"
|
30 |
| -#include "ui/color/color_id.h" |
31 |
| -#include "ui/color/color_provider.h" |
32 | 29 | #include "ui/views/accessibility/view_accessibility.h"
|
33 |
| -#include "ui/views/cascading_property.h" |
34 | 30 | #include "ui/views/controls/button/button_controller.h"
|
35 | 31 | #include "ui/views/controls/dot_indicator.h"
|
36 | 32 | #include "ui/views/controls/menu/menu_runner.h"
|
@@ -62,9 +58,6 @@ class ReadLaterSidePanelWebView : public views::WebView,
|
62 | 58 | SetWebContents(contents_wrapper_->web_contents());
|
63 | 59 | set_allow_accelerators(true);
|
64 | 60 |
|
65 |
| - views::SetCascadingColorProviderColor( |
66 |
| - this, views::kCascadingBackgroundColor, ui::kColorBubbleBackground); |
67 |
| - |
68 | 61 | if (base::FeatureList::IsEnabled(features::kSidePanelDragAndDrop)) {
|
69 | 62 | extensions::BookmarkManagerPrivateDragEventRouter::CreateForWebContents(
|
70 | 63 | contents_wrapper_->web_contents());
|
@@ -125,16 +118,6 @@ class ReadLaterSidePanelWebView : public views::WebView,
|
125 | 118 | if (context_menu_runner_)
|
126 | 119 | context_menu_runner_->Cancel();
|
127 | 120 | }
|
128 |
| - SkColor GetColorProviderColor(ui::ColorId id) override { |
129 |
| - switch (id) { |
130 |
| - case ui::kColorDialogBackground: |
131 |
| - return GetCascadingBackgroundColor(this); |
132 |
| - case ui::kColorFocusableBorderFocused: |
133 |
| - return GetCascadingAccentColor(this); |
134 |
| - default: |
135 |
| - return GetColorProvider()->GetColor(id); |
136 |
| - } |
137 |
| - } |
138 | 121 | bool HandleKeyboardEvent(
|
139 | 122 | content::WebContents* source,
|
140 | 123 | const content::NativeWebKeyboardEvent& event) override {
|
|
0 commit comments