refactor: inline simple getters (#41125)

This commit is contained in:
Charles Kerr 2024-01-29 20:43:28 -06:00 committed by GitHub
parent 4e19321ba8
commit ffec3127d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 93 additions and 192 deletions

View file

@ -210,14 +210,16 @@ class OffScreenRenderWidgetHostView : public content::RenderWidgetHostViewBase,
void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
void SetPainting(bool painting);
bool IsPainting() const;
bool is_painting() const { return painting_; }
void SetFrameRate(int frame_rate);
int GetFrameRate() const;
int frame_rate() const { return frame_rate_; }
ui::Layer* GetRootLayer() const;
ui::Layer* root_layer() const { return root_layer_.get(); }
content::DelegatedFrameHost* GetDelegatedFrameHost() const;
content::DelegatedFrameHost* delegated_frame_host() const {
return delegated_frame_host_.get();
}
void Invalidate();
void InvalidateBounds(const gfx::Rect&);