chore: enable check raw ptr fields (#38167)
This commit is contained in:
parent
141175c723
commit
3dbc0a365f
120 changed files with 298 additions and 185 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue