Make wxWebViewChromium::OnSize() private
Also make a couple of cosmetic/style fixes. No real changes, just don't leave the event handler public when it doesn't have to be.
This commit is contained in:
parent
966e81bf54
commit
fada5fa044
2 changed files with 3 additions and 3 deletions
|
|
@ -43,8 +43,6 @@ public:
|
|||
|
||||
~wxWebViewChromium();
|
||||
|
||||
void OnSize(wxSizeEvent &event);
|
||||
|
||||
void SetPageSource(const wxString& pageSource);
|
||||
|
||||
void SetPageText(const wxString& pageText);
|
||||
|
|
@ -136,6 +134,8 @@ private:
|
|||
// Common part of all ctors.
|
||||
void Init();
|
||||
|
||||
void OnSize(wxSizeEvent& event);
|
||||
|
||||
// Actually create the browser: this can only be done once the window is
|
||||
// created in wxGTK.
|
||||
bool DoCreateBrowser(const wxString& url);
|
||||
|
|
|
|||
|
|
@ -490,7 +490,7 @@ bool wxWebViewChromium::Create(wxWindow* parent,
|
|||
return false;
|
||||
#endif
|
||||
|
||||
this->Bind(wxEVT_SIZE, &wxWebViewChromium::OnSize, this);
|
||||
Bind(wxEVT_SIZE, &wxWebViewChromium::OnSize, this);
|
||||
|
||||
Bind(wxEVT_IDLE, [](wxIdleEvent&) { CefDoMessageLoopWork(); });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue