Ticket #62: popup.patch
| File popup.patch, 25.1 kB (added by mbensi, 6 months ago) |
|---|
-
BAL/ChangeLogOWB
old new 1 2008-06-18 Mario Bensi <mbensi@pleyo.com> 2 3 Reviewed by NOBODY (OOPS!). 4 add new implementation of Popup and fix Database 5 6 * OWBAL/Concretizations/Facilities/Posix/BCFileSystemPosix.cpp: 7 (OWBAL::fileSystemRepresentation): 8 (OWBAL::homeDirectoryPath): 9 * WKAL/Concretizations/Events/SDL/BCEventLoopSDL.cpp: 10 (WKAL::EventLoop::cycle): 11 * WKAL/Concretizations/Graphics/SDL/BCImageSDL.cpp: 12 (WKAL::BitmapImage::draw): 13 (WKAL::Image::drawPattern): 14 * WKAL/Concretizations/Widgets/SDL/BCPopupMenuSDL.cpp: 15 (WKAL::PopupMenu::show): 16 (WKAL::PopupMenu::setFocusedIndex): 17 (WKAL::PopupMenu::scrollToRevealSelection): 18 (WKAL::PopupMenu::hide): 19 (WKAL::PopupMenu::updateFromElement): 20 (WKAL::PopupMenu::menuItemActivated): 21 (WKAL::PopupMenu::menuUnmapped): 22 (WKAL::PopupMenu::menuPositionFunction): 23 (WKAL::PopupMenu::windowRect): 24 (WKAL::PopupMenu::calculatePositionAndSize): 25 (WKAL::PopupMenu::valueChanged): 26 * WKAL/Concretizations/Widgets/SDL/BCPopupMenuSDL.h: 27 * scripts/patches/FileSystemPosix.patch: 28 * scripts/patches/index.txt: 29 1 30 2008-06-16 Mario Bensi <mbensi@pleyo.com> 2 31 3 32 Reviewed by Jean-Charles Verdie. -
BAL/OWBAL/Concretizations/Facilities/Posix/BCFileSystemPosix.cpp
old new 163 163 return -1; 164 164 } 165 165 166 CString fileSystemRepresentation(const String &)166 CString fileSystemRepresentation(const String &file) 167 167 { 168 return "";168 return file.utf8(); 169 169 } 170 170 171 171 void closeFile(PlatformFileHandle&) … … 179 179 180 180 String homeDirectoryPath() 181 181 { 182 return "";182 return getenv("HOME"); 183 183 } 184 184 185 185 CString openTemporaryFile(const char* prefix, PlatformFileHandle&) -
BAL/WKAL/Concretizations/Events/SDL/BCEventLoopSDL.cpp
old new 26 26 27 27 void EventLoop::cycle() 28 28 { 29 SDL_Event event;30 SDL_WaitEvent(&event);29 //SDL_Event event; 30 //SDL_WaitEvent(&event); 31 31 } 32 32 33 33 } // namespace WebCore -
BAL/WKAL/Concretizations/Graphics/SDL/BCImageSDL.cpp
old new 249 249 else 250 250 srcRect.h = static_cast<Uint16>(src.height()); 251 251 252 dstRect.x = static_cast<Sint16>(dest.x() );253 dstRect.y = static_cast<Sint16>(dest.y() );252 dstRect.x = static_cast<Sint16>(dest.x() + context->origin().width()); 253 dstRect.y = static_cast<Sint16>(dest.y() + context->origin().height()); 254 254 dstRect.w = static_cast<Sint16>(dest.width()); 255 255 dstRect.h = static_cast<Sint16>(dest.height()); 256 256 … … 273 273 for (int y = static_cast<int>(phase.y()); y <= yMax; y += image->h) { 274 274 dest.setLocation(IntPoint(x, y) + context->origin()); 275 275 276 dstRect.x = static_cast<Sint16>(dest.x() );277 dstRect.y = static_cast<Sint16>(dest.y() );276 dstRect.x = static_cast<Sint16>(dest.x() + context->origin().width()); 277 dstRect.y = static_cast<Sint16>(dest.y() + context->origin().height()); 278 278 dstRect.w = static_cast<Sint16>(dest.width()); 279 279 dstRect.h = static_cast<Sint16>(dest.height()); 280 280 -
BAL/WKAL/Concretizations/Widgets/SDL/BCPopupMenuSDL.cpp
old new 40 40 #include "PlatformScreen.h" 41 41 #include "PlatformString.h" 42 42 #include "RenderStyle.h" 43 #include "BCObserverService.h" 43 44 #include "SDL.h" 44 45 45 46 using std::min; … … 78 79 79 80 PopupMenu::~PopupMenu() 80 81 { 81 printf("PopupMenu::~PopupMenu\n");82 82 if (m_popup) 83 83 SDL_FreeSurface(m_popup); 84 84 } … … 91 91 if (clientRect().isEmpty()) 92 92 return; 93 93 94 printf("PopupMenu::show\n"); 95 if (!m_popup) { 96 printf("PopupMenu::show create popup\n"); 97 // Even though we already know our size and location at this point, we pass (0,0,0,0) as our size/location here. 98 // We need to wait until after the call to ::SetWindowLongPtr to set our size so that in our WM_SIZE handler we can get access to the PopupMenu object 99 SDL_Surface* surface; 100 Uint32 rmask, gmask, bmask, amask; 101 /* SDL interprets each pixel as a 32-bit number, so our masks must depend 102 on the endianness (byte order) of the machine */ 103 rmask = 0x00ff0000; 104 gmask = 0x0000ff00; 105 bmask = 0x000000ff; 106 amask = 0xff000000; 107 m_popup = SDL_CreateRGBSurface(SDL_HWSURFACE | SDL_SRCALPHA, r.width(), r.height(), 32, 108 rmask, gmask, bmask, amask); 109 110 if (!m_popup) 111 return; 112 } 113 114 if (!m_scrollBar) 115 if (visibleItems() < client()->listSize()) { 116 // We need a scroll bar 117 m_scrollBar = PlatformScrollbar::create(this, VerticalScrollbar, SmallScrollbar); 118 m_scrollBar->setContainingWindow(m_popup); 119 } 120 121 SDL_Rect srcRect, dstRect; 122 123 static_cast<Sint16>(r.x()); 124 static_cast<Sint16>(r.y()); 125 if (0 == r.width()) 126 srcRect.w = m_popup->w; 127 else 128 srcRect.w = static_cast<Uint16>(r.width()); 129 if (0 == r.height()) 130 srcRect.h = m_popup->h; 131 else 132 srcRect.h = static_cast<Uint16>(r.height()); 133 134 135 dstRect.x = static_cast<Sint16>(m_windowRect.x()); 136 dstRect.y = static_cast<Sint16>(m_windowRect.y()); 137 dstRect.w = static_cast<Sint16>(m_windowRect.width()); 138 dstRect.h = static_cast<Sint16>(m_windowRect.height()); 139 140 printf("srcRect %d %d %d %d\n", srcRect.x, srcRect.y, srcRect.h, srcRect.w); 141 printf("dstRect %d %d %d %d\n", dstRect.x, dstRect.y, dstRect.h, dstRect.w); 142 WebCore::Color c(255, 0, 0, 255); 143 SDL_FillRect(m_popup, &srcRect, c.rgb()); 144 SDL_BlitSurface(m_popup, &srcRect, v->containingWindow(), &dstRect); 145 146 if (client()) { 147 int index = client()->selectedIndex(); 148 if (index >= 0) 149 setFocusedIndex(index); 150 } 151 SDL_UpdateRect(v->containingWindow(), dstRect.x, dstRect.y, dstRect.w, dstRect.h); 94 OWBAL::BCObserverService::createBCObserverService()->notifyObserver("PopupMenuShow", "", this); 152 95 } 153 96 154 97 int PopupMenu::focusedIndex() const … … 158 101 159 102 bool PopupMenu::setFocusedIndex(int i, bool hotTracking) 160 103 { 161 if (i < 0 || i >= client()->listSize() || i == focusedIndex())162 return false;163 164 if (!client()->itemIsEnabled(i))165 return false;166 167 invalidateItem(focusedIndex());168 invalidateItem(i);169 170 m_focusedIndex = i;171 172 if (!hotTracking)173 client()->setTextFromItem(i);174 175 if (!scrollToRevealSelection())176 SDL_UpdateRect(m_popup, 0, 0, m_popup->w, m_popup->h);177 178 104 return true; 179 105 } 180 106 181 107 bool PopupMenu::scrollToRevealSelection() 182 108 { 183 if (!m_scrollBar) 184 return false; 185 186 int index = focusedIndex(); 187 188 if (index < m_scrollOffset) { 189 m_scrollBar->setValue(index); 190 return true; 191 } 192 193 if (index >= m_scrollOffset + visibleItems()) { 194 m_scrollBar->setValue(index - visibleItems() + 1); 195 return true; 196 } 197 198 return false; 109 return true; 199 110 } 200 111 201 112 void PopupMenu::hide() 202 113 { 203 printf("PopupMenu::hide\n");114 OWBAL::BCObserverService::createBCObserverService()->notifyObserver("PopupMenuHide", "", this); 204 115 } 205 116 206 117 void PopupMenu::updateFromElement() 207 118 { 208 printf("PopupMenu::updateFromElement\n");209 client()->setTextFromItem(client()->selectedIndex());210 119 } 211 120 212 121 bool PopupMenu::itemWritingDirectionIsNatural() 213 122 { 214 //printf("PopupMenu::itemWritingDirectionIsNatural\n");215 123 return false; 216 124 } 217 125 218 126 void PopupMenu::menuItemActivated(BalMenuItem* item, PopupMenu* that) 219 127 { 220 printf("PopupMenu::menuItemActivated\n");221 128 ASSERT(that->client()); 222 129 223 130 } 224 131 225 132 void PopupMenu::menuUnmapped(BalWidget*, PopupMenu* that) 226 133 { 227 printf("PopupMenu::menuUnmapped\n");228 134 ASSERT(that->client()); 229 135 that->client()->hidePopup(); 230 136 } 231 137 232 138 void PopupMenu::menuPositionFunction(BalMenu*, int* x, int* y, bool* pushIn, PopupMenu* that) 233 139 { 234 printf("PopupMenu::menuPositionFunction\n");235 140 *x = that->m_menuPosition.x(); 236 141 *y = that->m_menuPosition.y(); 237 142 *pushIn = true; … … 239 144 240 145 void PopupMenu::menuRemoveItem(BalWidget* widget, PopupMenu* that) 241 146 { 242 printf("PopupMenu::menuRemoveItem\n");243 147 ASSERT(that->m_popup); 244 148 245 149 } 246 150 151 IntRect PopupMenu::windowRect() 152 { 153 return m_windowRect; 154 } 155 247 156 const int endOfLinePadding = 2; 248 157 void PopupMenu::calculatePositionAndSize(const IntRect& r, FrameView* v) 249 158 { 250 printf(" r = %d %d %d %d \n", r.x(), r.y(), r.width(), r.height());251 printf(" clientInsetLeft = %d clientInsetRight = %d clientPaddingLeft = %d clientPaddingRight = %d\n", client()->clientInsetLeft(), client()->clientInsetRight(), client()->clientPaddingLeft(), client()->clientPaddingRight());252 // r is in absolute document coordinates, but we want to be in screen coordinates253 254 // First, move to WebView coordinates255 159 IntRect rScreenCoords(v->contentsToWindow(r.location()), r.size()); 256 printf("rScreenCoords %d %d %d %d\n", rScreenCoords.x(), rScreenCoords.y(), rScreenCoords.width(), rScreenCoords.height()); 257 // Then, translate to screen coordinates 258 //IntRect location(rScreenCoords.location()); 259 //if (!::ClientToScreen(v->containingWindow(), &location)) 260 // return; 261 262 //rScreenCoords.setLocation(location); 160 rScreenCoords.setY(rScreenCoords.y() + rScreenCoords.height()); 161 162 m_itemHeight = rScreenCoords.height(); 263 163 264 // First, determine the popup's height265 164 int itemCount = client()->listSize(); 266 m_itemHeight = client()->clientStyle()->font().height() + optionSpacingMiddle;267 165 int naturalHeight = m_itemHeight * itemCount; 268 int popupHeight = min(maxPopupHeight, naturalHeight); 269 // The popup should show an integral number of items (i.e. no partial items should be visible) 270 popupHeight -= popupHeight % m_itemHeight; 271 272 // Next determine its width 166 273 167 int popupWidth = 0; 274 168 for (int i = 0; i < itemCount; ++i) { 275 169 String text = client()->itemText(i); … … 286 180 287 181 popupWidth = max(popupWidth, itemFont.width(TextRun(text.characters(), text.length()))); 288 182 } 183 184 rScreenCoords.setHeight(naturalHeight); 185 rScreenCoords.setWidth(popupWidth + 10); 289 186 290 if (naturalHeight > maxPopupHeight) 291 // We need room for a scrollbar 292 popupWidth += PlatformScrollbar::verticalScrollbarWidth(); 293 294 // Add padding to align the popup text with the <select> text 295 // Note: We can't add paddingRight() because that value includes the width 296 // of the dropdown button, so we must use our own endOfLinePadding constant. 297 popupWidth += max(0, endOfLinePadding - client()->clientInsetRight()) + max(0, client()->clientPaddingLeft() - client()->clientInsetLeft()); 298 299 // Leave room for the border 300 popupWidth += 2 * popupWindowBorderWidth; 301 popupHeight += 2 * popupWindowBorderWidth; 302 303 // The popup should be at least as wide as the control on the page 304 popupWidth = max(rScreenCoords.width() - client()->clientInsetLeft() - client()->clientInsetRight(), popupWidth); 305 306 // Always left-align items in the popup. This matches popup menus on the mac. 307 int popupX = rScreenCoords.x() + client()->clientInsetLeft(); 308 309 IntRect popupRect(popupX, rScreenCoords.bottom(), popupWidth, popupHeight); 310 311 // The popup needs to stay within the bounds of the screen and not overlap any toolbars 312 FloatRect screen = screenAvailableRect(v); 313 314 // Check that we don't go off the screen vertically 315 if (popupRect.bottom() > screen.height()) { 316 // The popup will go off the screen, so try placing it above the client 317 if (rScreenCoords.y() - popupRect.height() < 0) { 318 // The popup won't fit above, either, so place it whereever's bigger and resize it to fit 319 if ((rScreenCoords.y() + rScreenCoords.height() / 2) < (screen.height() / 2)) { 320 // Below is bigger 321 popupRect.setHeight(static_cast<int>(screen.height() - popupRect.y())); 322 } else { 323 // Above is bigger 324 popupRect.setY(0); 325 popupRect.setHeight(rScreenCoords.y()); 326 } 327 } else { 328 // The popup fits above, so reposition it 329 popupRect.setY(rScreenCoords.y() - popupRect.height()); 330 } 331 } 332 333 // Check that we don't go off the screen horizontally 334 if (popupRect.x() < screen.x()) { 335 popupRect.setWidth(static_cast<int>(popupRect.width() - (screen.x() - popupRect.x()))); 336 popupRect.setX(static_cast<int>(screen.x())); 337 } 338 339 m_windowRect = popupRect; 340 printf("m_windowRect %d %d %d %d\n", m_windowRect.x(), m_windowRect.y(), m_windowRect.width(), m_windowRect.height()); 341 return; 187 m_windowRect = rScreenCoords; 342 188 } 343 189 344 190 void PopupMenu::invalidateItem(int index) … … 376 222 377 223 void PopupMenu::valueChanged(Scrollbar* scrollBar) 378 224 { 379 printf("PopupMenu::valueChanged\n");380 225 } 381 226 382 227 } -
BAL/WKAL/Concretizations/Widgets/SDL/BCPopupMenuSDL.h
old new 61 61 PopupMenuClient* client() const { return m_popupClient; } 62 62 63 63 static bool itemWritingDirectionIsNatural(); 64 64 65 IntRect windowRect(); 65 66 66 67 protected: 67 68 PopupMenu(PopupMenuClient* client); -
BAL/scripts/patches/FileSystemPosix.patch
old new 12 12 + return -1; 13 13 +} 14 14 + 15 +CString fileSystemRepresentation(const String &)15 +CString fileSystemRepresentation(const String &file) 16 16 +{ 17 + return "";17 + return file.utf8(); 18 18 +} 19 19 + 20 20 +void closeFile(PlatformFileHandle&) … … 28 28 + 29 29 +String homeDirectoryPath() 30 30 +{ 31 + return "";31 + return getenv("HOME"); 32 32 +} 33 33 + 34 34 +CString openTemporaryFile(const char* prefix, PlatformFileHandle&) -
BAL/scripts/patches/index.txt
old new 27 27 ../../Base/wtf/Platform.h 0:Platform.patch 28 28 ../../WKAL/Concretizations/Graphics/Cairo/BCImageSourceCairo.cpp 0:ImageSourceCairo.patch 29 29 ../../WKAL/Concretizations/Network/Curl/BCResourceHandleManagerCurl.cpp 0:ResourceHandleManager.patch 30 ../../OWBAL/Concretizations/Facilities/Posix/BCFileSystemPosix.cpp 0:FileSystemPosix.patch -
WebKit/ChangeLogOWB
old new 1 2008-06-18 Mario Bensi <mbensi@pleyo.com> 2 3 Reviewed by NOBODY (OOPS!). 4 add popup in WebViewPrivate 5 6 * OrigynWebBrowser/Api/SDL/WebViewPrivate.cpp: 7 (WebViewPrivate::onExpose): 8 (WebViewPrivate::popupMenuHide): 9 (WebViewPrivate::popupMenuShow): 10 * OrigynWebBrowser/Api/SDL/WebViewPrivate.h: 11 * OrigynWebBrowser/Api/WebView.cpp: 12 (WebView::WebView): 13 (WebView::close): 14 (WebView::stringByEvaluatingJavaScriptFromString): 15 (WebView::observe): 16 * OrigynWebBrowser/Api/gtk/WebViewPrivate.h: 17 (WebViewPrivate::popupMenuHide): 18 (WebViewPrivate::popupMenuShow): 19 1 20 2008-06-16 Mario Bensi <mbensi@pleyo.com> 2 21 3 22 Reviewed by odole@pleyo.com -
WebKit/OrigynWebBrowser/Api/WebView.cpp
old new 231 231 WebPreferences* sharedPreferences = WebPreferences::sharedStandardPreferences(); 232 232 continuousSpellCheckingEnabled = sharedPreferences->continuousSpellCheckingEnabled(); 233 233 grammarCheckingEnabled = sharedPreferences->grammarCheckingEnabled(); 234 235 OWBAL::BCObserverService::createBCObserverService()->registerObserver("PopupMenuShow", this); 236 OWBAL::BCObserverService::createBCObserverService()->registerObserver("PopupMenuHide", this); 234 237 DS_CONSTRUCT(); 235 238 } 236 239 … … 468 471 registerForIconNotification(false); 469 472 #endif 470 473 OWBAL::BCObserverService::createBCObserverService()->removeObserver(WebPreferences::webPreferencesChangedNotification(), this); 471 474 OWBAL::BCObserverService::createBCObserverService()->removeObserver("PopupMenuShow", this); 475 OWBAL::BCObserverService::createBCObserverService()->removeObserver("PopupMenuHide", this); 472 476 String identifier = m_preferences->identifier(); 473 477 if (identifier != String()) 474 478 WebPreferences::removeReferenceForIdentifier(identifier); … … 1276 1280 if (!coreFrame) 1277 1281 return String(); 1278 1282 1279 KJS::JSValue* scriptExecutionResult = coreFrame->loader()->executeScript(script, true);1283 KJS::JSValue* scriptExecutionResult = coreFrame->loader()->executeScript(script, false); 1280 1284 if(!scriptExecutionResult) 1281 1285 return String(); 1282 1286 else if (scriptExecutionResult->isString()) { … … 1883 1887 if (topic == WebPreferences::webPreferencesChangedNotification()) 1884 1888 notifyPreferencesChanged(static_cast<WebPreferences*>(userData)); 1885 1889 1890 if (topic == "PopupMenuHide") 1891 d->popupMenuHide(); 1892 if (topic == "PopupMenuShow") { 1893 d->popupMenuShow(userData); 1894 } 1895 1886 1896 } 1887 1897 1888 1898 void WebView::notifyPreferencesChanged(WebPreferences* preferences) -
WebKit/OrigynWebBrowser/Api/SDL/WebViewPrivate.cpp
old new 40 40 #include <PlatformWheelEvent.h> 41 41 #include "SelectionController.h" 42 42 #include "Editor.h" 43 #include "owb-config.h" 44 #include "PopupMenu.h" 45 #include "CString.h" 46 #include "File.h" 43 47 #include DEEPSEE_INCLUDE 44 48 45 49 using namespace WebCore; … … 59 63 frame->view()->adjustViewSize(); 60 64 } 61 65 62 //m_webView->page()->focusController()->setActive(frame);63 64 66 GraphicsContext ctx(m_webView->viewWindow()); 65 67 ctx.setBalExposeEvent(&event); 66 68 if (frame->contentRenderer() && frame->view() && !m_webView->dirtyRegion().isEmpty()) { 67 69 frame->view()->layoutIfNeededRecursive(); 68 //frame->view()->paint(&ctx, m_webView->dirtyRegion());69 //printf("dirty region x=%d y=%d w=%d h=%d\n", 0 + m_webView->scrollOffset().x(), 0 + m_webView->scrollOffset().y(), 800, 600);70 70 IntRect dirty = m_webView->dirtyRegion(); 71 //frame->view()->paint(&ctx, IntRect(m_rect.x() + m_webView->scrollOffset().x(), m_rect.y() + m_webView->scrollOffset().y(), m_rect.width(), m_rect.height()));72 71 frame->view()->paint(&ctx, dirty); 73 //printf("dirty region x=%d y=%d w=%d h=%d\n", dirty.x(), dirty.y(), dirty.width(), dirty.height());74 //m_webView->addToDirtyRegion(IntRect(0, 0, 0, 0));75 if(dirty != m_webView->dirtyRegion())76 printf("AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\n");77 72 m_webView->clearDirtyRegion(); 78 /* use SDL_Flip only if double buffering is available */79 //if (m_webView->viewWindow()->flags & SDL_DOUBLEBUF)80 // SDL_Flip(m_webView->viewWindow());81 //else82 // SDL_UpdateRect(m_webView->viewWindow(), m_rect.x(), m_rect.y(), m_rect.width(), m_rect.height());83 //SDL_UpdateRect(m_webView->viewWindow(), dirty.x(), dirty.y(), dirty.width(), dirty.height());84 73 } 85 74 } 86 75 … … 209 198 void WebViewPrivate::onUserEvent(BalUserEvent) 210 199 { 211 200 } 201 202 void WebViewPrivate::popupMenuHide() 203 { 204 //BOOKMARKLET_INSTALL_PATH 205 } 206 207 void WebViewPrivate::popupMenuShow(void *popupInfo) 208 { 209 PopupMenu *pop = static_cast<PopupMenu *>(popupInfo); 210 if (!pop) 211 return; 212 //printf("pop %d %d %d %d\n", pop->windowRect().x(), pop->windowRect().y(), pop->windowRect().width(), pop->windowRect().height()); 213 int itemCount = pop->client()->listSize(); 214 215 String tabIndex = "var myTabId1 = new Array("; 216 String tabName = "var myTabName1 = new Array("; 217 for (int i = 0; i < itemCount; ++i) { 218 String text = pop->client()->itemText(i); 219 if (text.isEmpty()) 220 continue; 221 if (i == 0) { 222 tabName += "\""; 223 tabIndex += "\""; 224 } else { 225 tabName += ", \""; 226 tabIndex += ", \""; 227 } 228 229 tabName += text; 230 tabName += "\""; 231 tabIndex += String::number(i+1); 232 tabIndex += "\""; 233 } 234 tabIndex += ");"; 235 tabName += ");"; 236 String path = BOOKMARKLET_INSTALL_PATH; 237 path += "popup.js"; 238 239 File *f = new File(path); 240 if (!f) 241 return; 242 if (f->open('r') == -1) 243 return ; 244 String buffer(f->read(f->getSize())); 245 f->close(); 246 delete f; 247 248 String callCreateTab = "createTabs(myTabId1 ,myTabName1 ,"; 249 callCreateTab += String::number(pop->windowRect().x()); 250 callCreateTab += ", "; 251 callCreateTab += String::number(pop->windowRect().y()); 252 callCreateTab += ", "; 253 callCreateTab += String::number(pop->windowRect().width()); 254 callCreateTab += ");"; 255 256 buffer = buffer.replace("@TabIndexDefinition", tabIndex); 257 buffer = buffer.replace("@TabNameDefinition", tabName); 258 buffer = buffer.replace("@callCreateTab", callCreateTab); 212 259 260 // printf("popup = %s \n", buffer.utf8().data()); 261 262 m_webView->stringByEvaluatingJavaScriptFromString(buffer); 263 } -
WebKit/OrigynWebBrowser/Api/SDL/WebViewPrivate.h
old new 86 86 void onResize(BalResizeEvent event); 87 87 void onQuit(BalQuitEvent); 88 88 void onUserEvent(BalUserEvent); 89 89 void popupMenuHide(); 90 void popupMenuShow(void *popupInfo); 90 91 private: 91 92 WebCore::IntRect m_rect; 92 93 WebView *m_webView; -
WebKit/OrigynWebBrowser/Api/gtk/WebViewPrivate.h
old new 93 93 void onResize(BalResizeEvent){} 94 94 void onQuit(BalQuitEvent){} 95 95 void onUserEvent(BalUserEvent){} 96 void popupMenuHide() {} 97 void popupMenuShow(void *popupInfo) {} 96 98 private: 97 99 WebCore::IntRect m_rect; 98 100 GtkWidget *m_view; -
WebKitTools/ChangeLogOWB
old new 1 2008-06-18 Mario Bensi <mbensi@pleyo.com> 2 3 Reviewed by NOBODY (OOPS!). 4 fix Database 5 6 * OWBLauncher/SDL/main.cpp: 7 (waitEvent): 8 1 9 2008-06-16 Mario Bensi <mbensi@pleyo.com> 2 10 3 11 Reviewed by odole@pleyo.com -
WebKitTools/OWBLauncher/SDL/main.cpp
old new 39 39 #include "SDL.h" 40 40 #include "Timer.h" 41 41 #include "SharedTimer.h" 42 42 #include "MainThread.h" 43 43 #include <unistd.h> 44 44 45 45 using namespace WebCore; … … 174 174 ;//printf("other event\n"); 175 175 } 176 176 } else { 177 WTF::dispatchFunctionsFromMainThread(); 177 178 WebCore::fireTimerIfNeeded(); 178 179 usleep(10000); 179 180 }
