mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibWeb: Rename Web::HtmlView => Web::PageView
This widget doesn't just view HTML, it views a web page. :^)
This commit is contained in:
parent
5f8cbe6a1b
commit
42243d2e06
24 changed files with 133 additions and 133 deletions
|
@ -37,11 +37,11 @@
|
|||
namespace Web {
|
||||
|
||||
class Document;
|
||||
class HtmlView;
|
||||
class PageView;
|
||||
|
||||
class Frame : public TreeNode<Frame> {
|
||||
public:
|
||||
static NonnullRefPtr<Frame> create(HtmlView& html_view) { return adopt(*new Frame(html_view)); }
|
||||
static NonnullRefPtr<Frame> create(PageView& page_view) { return adopt(*new Frame(page_view)); }
|
||||
~Frame();
|
||||
|
||||
const Document* document() const { return m_document; }
|
||||
|
@ -49,8 +49,8 @@ public:
|
|||
|
||||
void set_document(Document*);
|
||||
|
||||
HtmlView* html_view() { return m_html_view; }
|
||||
const HtmlView* html_view() const { return m_html_view; }
|
||||
PageView* page_view() { return m_page_view; }
|
||||
const PageView* page_view() const { return m_page_view; }
|
||||
|
||||
const Gfx::Size& size() const { return m_size; }
|
||||
void set_size(const Gfx::Size&);
|
||||
|
@ -62,9 +62,9 @@ public:
|
|||
Gfx::Rect viewport_rect() const { return m_viewport_rect; }
|
||||
|
||||
private:
|
||||
explicit Frame(HtmlView&);
|
||||
explicit Frame(PageView&);
|
||||
|
||||
WeakPtr<HtmlView> m_html_view;
|
||||
WeakPtr<PageView> m_page_view;
|
||||
RefPtr<Document> m_document;
|
||||
Gfx::Size m_size;
|
||||
Gfx::Rect m_viewport_rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue