Changeset 33957 in webkit
- Timestamp:
- May 20, 2008 10:47:44 PM (16 years ago)
- Location:
- trunk/WebKit/wx
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/wx/ChangeLog
r33932 r33957 1 2008-05-16 Kevin Ollivier <kevino@theolliviers.com> 2 3 Reviewed by Darin Adler. 4 5 Rename wxWebFrame -> wxWebBrowserShell in preparation to introduce a WebFrame 6 counterpart in wx port. (Frame typically means 'top level window' in wx terms.) 7 8 https://bugs.webkit.org/show_bug.cgi?id=19041 9 10 * WebBrowserShell.cpp: Copied from WebKit/wx/WebFrame.cpp. 11 (wxWebBrowserShell::wxWebBrowserShell): 12 (wxWebBrowserShell::~wxWebBrowserShell): 13 (wxWebBrowserShell::ShowDebugMenu): 14 (wxWebBrowserShell::OnQuit): 15 (wxWebBrowserShell::OnAbout): 16 (wxWebBrowserShell::OnLoadFile): 17 (wxWebBrowserShell::OnLoadEvent): 18 (wxWebBrowserShell::OnBeforeLoad): 19 (wxWebBrowserShell::OnAddressBarEnter): 20 (wxWebBrowserShell::OnSearchCtrlEnter): 21 (wxWebBrowserShell::OnBack): 22 (wxWebBrowserShell::OnForward): 23 (wxWebBrowserShell::OnStop): 24 (wxWebBrowserShell::OnReload): 25 (wxWebBrowserShell::OnMakeTextLarger): 26 (wxWebBrowserShell::OnMakeTextSmaller): 27 (wxWebBrowserShell::OnGetSource): 28 (wxWebBrowserShell::OnSetSource): 29 (wxWebBrowserShell::OnBrowse): 30 (wxWebBrowserShell::OnEdit): 31 (wxWebBrowserShell::OnRunScript): 32 * WebBrowserShell.h: Copied from WebKit/wx/WebFrame.h. 33 * WebFrame.cpp: Removed. 34 * WebFrame.h: Removed. 35 * WebKitSupport/ChromeClientWx.cpp: 36 (WebCore::ChromeClientWx::createWindow): 37 * bindings/python/webview.i: 38 * wxwebkit.bkl: 39 1 40 2008-05-20 Kevin Ollivier <kevino@theolliviers.com> 2 41 -
trunk/WebKit/wx/WebBrowserShell.cpp
r33050 r33957 37 37 38 38 #include "WebView.h" 39 #include "Web Frame.h"39 #include "WebBrowserShell.h" 40 40 #include "WebViewPrivate.h" 41 41 … … 67 67 }; 68 68 69 BEGIN_EVENT_TABLE(wxWeb Frame, wxFrame)70 EVT_MENU(wxID_EXIT, wxWeb Frame::OnQuit)71 EVT_MENU(wxID_ABOUT, wxWeb Frame::OnAbout)72 EVT_MENU(ID_LOADFILE, wxWeb Frame::OnLoadFile)73 EVT_TEXT_ENTER(ID_TEXTCTRL, wxWeb Frame::OnAddressBarEnter)74 EVT_TEXT_ENTER(ID_SEARCHCTRL, wxWeb Frame::OnSearchCtrlEnter)75 EVT_WEBVIEW_LOAD(ID_WEBVIEW, wxWeb Frame::OnLoadEvent)76 EVT_WEBVIEW_BEFORE_LOAD(ID_WEBVIEW, wxWeb Frame::OnBeforeLoad)77 EVT_MENU(ID_BACK, wxWeb Frame::OnBack)78 EVT_MENU(ID_FORWARD, wxWeb Frame::OnForward)79 EVT_MENU(ID_STOP, wxWeb Frame::OnStop)80 EVT_MENU(ID_RELOAD, wxWeb Frame::OnReload)81 EVT_MENU(ID_MAKE_TEXT_LARGER, wxWeb Frame::OnMakeTextLarger)82 EVT_MENU(ID_MAKE_TEXT_SMALLER, wxWeb Frame::OnMakeTextSmaller)83 EVT_MENU(ID_GET_SOURCE, wxWeb Frame::OnGetSource)84 EVT_MENU(ID_SET_SOURCE, wxWeb Frame::OnSetSource)85 EVT_MENU(ID_BROWSE, wxWeb Frame::OnBrowse)86 EVT_MENU(ID_EDIT, wxWeb Frame::OnEdit)87 EVT_MENU(ID_RUN_SCRIPT, wxWeb Frame::OnRunScript)69 BEGIN_EVENT_TABLE(wxWebBrowserShell, wxFrame) 70 EVT_MENU(wxID_EXIT, wxWebBrowserShell::OnQuit) 71 EVT_MENU(wxID_ABOUT, wxWebBrowserShell::OnAbout) 72 EVT_MENU(ID_LOADFILE, wxWebBrowserShell::OnLoadFile) 73 EVT_TEXT_ENTER(ID_TEXTCTRL, wxWebBrowserShell::OnAddressBarEnter) 74 EVT_TEXT_ENTER(ID_SEARCHCTRL, wxWebBrowserShell::OnSearchCtrlEnter) 75 EVT_WEBVIEW_LOAD(ID_WEBVIEW, wxWebBrowserShell::OnLoadEvent) 76 EVT_WEBVIEW_BEFORE_LOAD(ID_WEBVIEW, wxWebBrowserShell::OnBeforeLoad) 77 EVT_MENU(ID_BACK, wxWebBrowserShell::OnBack) 78 EVT_MENU(ID_FORWARD, wxWebBrowserShell::OnForward) 79 EVT_MENU(ID_STOP, wxWebBrowserShell::OnStop) 80 EVT_MENU(ID_RELOAD, wxWebBrowserShell::OnReload) 81 EVT_MENU(ID_MAKE_TEXT_LARGER, wxWebBrowserShell::OnMakeTextLarger) 82 EVT_MENU(ID_MAKE_TEXT_SMALLER, wxWebBrowserShell::OnMakeTextSmaller) 83 EVT_MENU(ID_GET_SOURCE, wxWebBrowserShell::OnGetSource) 84 EVT_MENU(ID_SET_SOURCE, wxWebBrowserShell::OnSetSource) 85 EVT_MENU(ID_BROWSE, wxWebBrowserShell::OnBrowse) 86 EVT_MENU(ID_EDIT, wxWebBrowserShell::OnEdit) 87 EVT_MENU(ID_RUN_SCRIPT, wxWebBrowserShell::OnRunScript) 88 88 END_EVENT_TABLE() 89 89 90 90 91 wxWeb Frame::wxWebFrame(const wxString& title) :91 wxWebBrowserShell::wxWebBrowserShell(const wxString& title) : 92 92 wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(600, 500)), 93 93 m_checkBeforeLoad(false) … … 162 162 } 163 163 164 wxWeb Frame::~wxWebFrame()164 wxWebBrowserShell::~wxWebBrowserShell() 165 165 { 166 166 if (m_debugMenu && GetMenuBar()->FindMenu(_("&Debug")) == wxNOT_FOUND) … … 168 168 } 169 169 170 void wxWeb Frame::ShowDebugMenu(bool show)170 void wxWebBrowserShell::ShowDebugMenu(bool show) 171 171 { 172 172 int debugMenu = GetMenuBar()->FindMenu(_("&Debug")); … … 183 183 // event handlers 184 184 185 void wxWeb Frame::OnQuit(wxCommandEvent& WXUNUSED(event))185 void wxWebBrowserShell::OnQuit(wxCommandEvent& WXUNUSED(event)) 186 186 { 187 187 // true is to force the frame to close … … 189 189 } 190 190 191 void wxWeb Frame::OnAbout(wxCommandEvent& WXUNUSED(event))191 void wxWebBrowserShell::OnAbout(wxCommandEvent& WXUNUSED(event)) 192 192 { 193 193 wxString msg; … … 199 199 } 200 200 201 void wxWeb Frame::OnLoadFile(wxCommandEvent& WXUNUSED(event))201 void wxWebBrowserShell::OnLoadFile(wxCommandEvent& WXUNUSED(event)) 202 202 { 203 203 wxFileDialog* dialog = new wxFileDialog(this, wxT("Choose a file")); … … 210 210 } 211 211 212 void wxWeb Frame::OnLoadEvent(wxWebViewLoadEvent& event)212 void wxWebBrowserShell::OnLoadEvent(wxWebViewLoadEvent& event) 213 213 { 214 214 if (GetStatusBar() != NULL){ … … 230 230 } 231 231 232 void wxWeb Frame::OnBeforeLoad(wxWebViewBeforeLoadEvent& myEvent)232 void wxWebBrowserShell::OnBeforeLoad(wxWebViewBeforeLoadEvent& myEvent) 233 233 { 234 234 if (m_checkBeforeLoad) { … … 240 240 } 241 241 242 void wxWeb Frame::OnAddressBarEnter(wxCommandEvent& event)242 void wxWebBrowserShell::OnAddressBarEnter(wxCommandEvent& event) 243 243 { 244 244 if (webview) … … 246 246 } 247 247 248 void wxWeb Frame::OnSearchCtrlEnter(wxCommandEvent& event)248 void wxWebBrowserShell::OnSearchCtrlEnter(wxCommandEvent& event) 249 249 { 250 250 if (webview) { … … 253 253 } 254 254 255 void wxWeb Frame::OnBack(wxCommandEvent& event)255 void wxWebBrowserShell::OnBack(wxCommandEvent& event) 256 256 { 257 257 if (webview) … … 259 259 } 260 260 261 void wxWeb Frame::OnForward(wxCommandEvent& event)261 void wxWebBrowserShell::OnForward(wxCommandEvent& event) 262 262 { 263 263 if (webview) … … 265 265 } 266 266 267 void wxWeb Frame::OnStop(wxCommandEvent& myEvent)267 void wxWebBrowserShell::OnStop(wxCommandEvent& myEvent) 268 268 { 269 269 if (webview) … … 271 271 } 272 272 273 void wxWeb Frame::OnReload(wxCommandEvent& myEvent)273 void wxWebBrowserShell::OnReload(wxCommandEvent& myEvent) 274 274 { 275 275 if (webview) … … 277 277 } 278 278 279 void wxWeb Frame::OnMakeTextLarger(wxCommandEvent& myEvent)279 void wxWebBrowserShell::OnMakeTextLarger(wxCommandEvent& myEvent) 280 280 { 281 281 if (webview) { … … 285 285 } 286 286 287 void wxWeb Frame::OnMakeTextSmaller(wxCommandEvent& myEvent)287 void wxWebBrowserShell::OnMakeTextSmaller(wxCommandEvent& myEvent) 288 288 { 289 289 if (webview) { … … 293 293 } 294 294 295 void wxWeb Frame::OnGetSource(wxCommandEvent& myEvent)296 { 297 if (webview) { 298 wxPageSourceViewFrame* wxWebFrame = new wxPageSourceViewFrame(webview->GetPageSource());299 wxWebFrame->Show();300 } 301 } 302 303 void wxWeb Frame::OnSetSource(wxCommandEvent& event)295 void wxWebBrowserShell::OnGetSource(wxCommandEvent& myEvent) 296 { 297 if (webview) { 298 wxPageSourceViewFrame* pageSourceFrame = new wxPageSourceViewFrame(webview->GetPageSource()); 299 pageSourceFrame->Show(); 300 } 301 } 302 303 void wxWebBrowserShell::OnSetSource(wxCommandEvent& event) 304 304 { 305 305 if (webview) … … 307 307 } 308 308 309 void wxWeb Frame::OnBrowse(wxCommandEvent& event)309 void wxWebBrowserShell::OnBrowse(wxCommandEvent& event) 310 310 { 311 311 if (webview) … … 313 313 } 314 314 315 void wxWeb Frame::OnEdit(wxCommandEvent& event)315 void wxWebBrowserShell::OnEdit(wxCommandEvent& event) 316 316 { 317 317 if (webview) … … 319 319 } 320 320 321 void wxWeb Frame::OnRunScript(wxCommandEvent& myEvent){321 void wxWebBrowserShell::OnRunScript(wxCommandEvent& myEvent){ 322 322 if (webview) { 323 323 wxTextEntryDialog* dialog = new wxTextEntryDialog(this, _("Type in a JavaScript to exectute.")); -
trunk/WebKit/wx/WebBrowserShell.h
r33050 r33957 26 26 */ 27 27 28 #ifndef WXWEB FRAME_H29 #define WXWEB FRAME_H28 #ifndef WXWEBBROWSERSHELL_H 29 #define WXWEBBROWSERSHELL_H 30 30 31 31 #include "wx/wxprec.h" … … 37 37 #include <wx/srchctrl.h> 38 38 39 class WXDLLIMPEXP_WEBKIT wxWeb Frame: public wxFrame39 class WXDLLIMPEXP_WEBKIT wxWebBrowserShell : public wxFrame 40 40 { 41 41 public: 42 42 // ctor(s) 43 43 #if SWIG 44 %pythonAppend wxWeb Frame"self._setOORInfo(self)"44 %pythonAppend wxWebBrowserShell "self._setOORInfo(self)" 45 45 #endif 46 wxWeb Frame(const wxString& title);46 wxWebBrowserShell(const wxString& title); 47 47 48 48 #ifndef SWIG 49 ~wxWeb Frame();49 ~wxWebBrowserShell(); 50 50 #endif 51 51 … … 96 96 }; 97 97 98 #endif // ifndef WXWEB FRAME_H98 #endif // ifndef WXWEBBROWSERSHELL_H -
trunk/WebKit/wx/WebKitSupport/ChromeClientWx.cpp
r29698 r33957 41 41 #include <wx/textdlg.h> 42 42 43 #include "Web Frame.h"43 #include "WebBrowserShell.h" 44 44 #include "WebView.h" 45 45 #include "WebViewPrivate.h" … … 113 113 114 114 Page* myPage = 0; 115 wxWeb Frame* newFrame = new wxWebFrame(wxTheApp->GetAppName());115 wxWebBrowserShell* newFrame = new wxWebBrowserShell(wxTheApp->GetAppName()); 116 116 117 117 if (newFrame->webview) { -
trunk/WebKit/wx/bindings/python/webview.i
r32863 r33957 30 30 #include "wx/wxPython/pyclasses.h" 31 31 #include "WebView.h" 32 #include "Web Frame.h"32 #include "WebBrowserShell.h" 33 33 %} 34 34 … … 39 39 40 40 MustHaveApp(wxWebView); 41 MustHaveApp(wxWeb Frame);41 MustHaveApp(wxWebBrowserShell); 42 42 43 43 %include WebView.h 44 %include Web Frame.h44 %include WebBrowserShell.h 45 45 46 46 %constant wxEventType wxEVT_WEBVIEW_BEFORE_LOAD; -
trunk/WebKit/wx/wxwebkit.bkl
r31091 r33957 76 76 77 77 WebView.cpp 78 Web Frame.cpp78 WebBrowserShell.cpp 79 79 </sources> 80 80 </dll>
Note: See TracChangeset
for help on using the changeset viewer.