1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibWeb: Add PageClient::palette() for view-agnostic palette access

This commit is contained in:
Andreas Kling 2020-06-17 20:26:59 +02:00
parent e58a13e3f6
commit 2ad1c2d959
4 changed files with 5 additions and 3 deletions

View file

@ -32,7 +32,7 @@ namespace WebContent {
class ClientConnection;
class PageHost : public Web::PageClient {
class PageHost final : public Web::PageClient {
AK_MAKE_NONCOPYABLE(PageHost);
AK_MAKE_NONMOVABLE(PageHost);
@ -50,11 +50,11 @@ public:
private:
// ^PageHost
virtual Gfx::Palette palette() const override;
virtual void page_did_invalidate(const Gfx::IntRect&) override;
explicit PageHost(ClientConnection&);
Gfx::Palette palette() const;
void setup_palette();
ClientConnection& m_client;