chore: enable check raw ptr fields (#38167)

This commit is contained in:
John Kleinschmidt 2023-05-11 16:07:39 -04:00 committed by GitHub
parent 141175c723
commit 3dbc0a365f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
120 changed files with 298 additions and 185 deletions

View file

@ -9,6 +9,8 @@
#include <memory>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "base/scoped_observation.h"
#include "shell/browser/ui/views/frameless_view.h"
#include "ui/base/ui_base_types.h"
@ -85,7 +87,7 @@ class ClientFrameViewLinux : public FramelessView,
void (views::Widget::*callback)();
int accessibility_id;
int hit_test_id;
views::ImageButton* button{nullptr};
RAW_PTR_EXCLUSION views::ImageButton* button{nullptr};
};
struct ThemeValues {
@ -119,10 +121,10 @@ class ClientFrameViewLinux : public FramelessView,
gfx::Size SizeWithDecorations(gfx::Size size) const;
ui::NativeTheme* theme_;
raw_ptr<ui::NativeTheme> theme_;
ThemeValues theme_values_;
views::Label* title_;
RAW_PTR_EXCLUSION views::Label* title_;
std::unique_ptr<ui::NavButtonProvider> nav_button_provider_;
std::array<NavButton, kNavButtonCount> nav_buttons_;
@ -132,7 +134,7 @@ class ClientFrameViewLinux : public FramelessView,
bool host_supports_client_frame_shadow_ = false;
ui::WindowFrameProvider* frame_provider_;
raw_ptr<ui::WindowFrameProvider> frame_provider_;
base::ScopedObservation<ui::NativeTheme, ui::NativeThemeObserver>
native_theme_observer_{this};