Changeset 118785 in webkit
- Timestamp:
- May 29, 2012 9:06:16 AM (12 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r118750 r118785 1 2012-05-29 Arvid Nilsson <anilsson@rim.com> 2 3 [BlackBerry] WebKit-side implementation of SelectionOverlay 4 https://bugs.webkit.org/show_bug.cgi?id=87605 5 6 Reviewed by Rob Buis. 7 8 Add SelectionOverlay to the build system. 9 10 PR #160263 11 12 * PlatformBlackBerry.cmake: 13 1 14 2012-05-29 Arvid Nilsson <anilsson@rim.com> 2 15 -
trunk/Source/WebKit/PlatformBlackBerry.cmake
r118750 r118785 91 91 blackberry/WebKitSupport/RenderQueue.cpp 92 92 blackberry/WebKitSupport/SelectionHandler.cpp 93 blackberry/WebKitSupport/SelectionOverlay.cpp 93 94 blackberry/WebKitSupport/SurfacePool.cpp 94 95 blackberry/WebKitSupport/TouchEventHandler.cpp -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r118750 r118785 43 43 #include "DatabaseSync.h" 44 44 #include "DatabaseTracker.h" 45 #include "DefaultTapHighlight.h" 45 46 #include "DeviceMotionClientBlackBerry.h" 46 47 #include "DeviceOrientationClientBlackBerry.h" … … 101 102 #include "ScrollTypes.h" 102 103 #include "SelectionHandler.h" 104 #include "SelectionOverlay.h" 103 105 #include "Settings.h" 104 106 #include "Storage.h" … … 135 137 136 138 #if USE(ACCELERATED_COMPOSITING) 137 #include "DefaultTapHighlight.h"138 139 #include "FrameLayers.h" 139 140 #include "WebPageCompositor_p.h" … … 510 511 #if USE(ACCELERATED_COMPOSITING) 511 512 m_tapHighlight = DefaultTapHighlight::create(this); 513 m_selectionOverlay = SelectionOverlay::create(this); 512 514 #endif 513 515 … … 6209 6211 } 6210 6212 6213 WebSelectionOverlay* WebPage::selectionOverlay() const 6214 { 6215 return d->m_selectionOverlay.get(); 6216 } 6217 6211 6218 void WebPage::addOverlay(WebOverlay* overlay) 6212 6219 { -
trunk/Source/WebKit/blackberry/Api/WebPage.h
r118750 r118785 68 68 class WebPageGroupLoadDeferrer; 69 69 class WebPagePrivate; 70 class WebSelectionOverlay; 70 71 class WebSettings; 71 72 class WebTapHighlight; … … 340 341 void setTapHighlight(WebTapHighlight*); 341 342 343 WebSelectionOverlay* selectionOverlay() const; 344 342 345 // Adds an overlay that can be modified on the WebKit thread, and 343 346 // whose attributes can be overridden on the compositing thread. -
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
r118719 r118785 433 433 WebSettings* m_webSettings; 434 434 OwnPtr<WebTapHighlight> m_tapHighlight; 435 OwnPtr<WebSelectionOverlay> m_selectionOverlay; 435 436 436 437 #if ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebKit/blackberry/ChangeLog
r118750 r118785 1 2012-05-29 Arvid Nilsson <anilsson@rim.com> 2 3 [BlackBerry] WebKit-side implementation of SelectionOverlay 4 https://bugs.webkit.org/show_bug.cgi?id=87605 5 6 Reviewed by Rob Buis. 7 8 Leverage the new WebOverlay API to move SelectionOverlay to the WebKit 9 library, so we always draw selection regardless of which embedder is 10 integrating WebKit. 11 12 PR #160263 13 14 * Api/WebPage.cpp: 15 (BlackBerry::WebKit::WebPagePrivate::init): 16 (BlackBerry::WebKit::WebPage::selectionOverlay): 17 (WebKit): 18 * Api/WebPage.h: 19 (WebKit): 20 * Api/WebPage_p.h: 21 (WebPagePrivate): 22 * Api/WebSelectionOverlay.h: Added. 23 (WebKit): 24 * WebKitSupport/SelectionHandler.cpp: 25 (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged): 26 * WebKitSupport/SelectionOverlay.cpp: Added. 27 (WebKit): 28 (BlackBerry::WebKit::SelectionOverlay::SelectionOverlay): 29 (BlackBerry::WebKit::SelectionOverlay::~SelectionOverlay): 30 (BlackBerry::WebKit::SelectionOverlay::draw): 31 (BlackBerry::WebKit::SelectionOverlay::hide): 32 (BlackBerry::WebKit::SelectionOverlay::notifySyncRequired): 33 (BlackBerry::WebKit::SelectionOverlay::paintContents): 34 * WebKitSupport/SelectionOverlay.h: Added. 35 (WebKit): 36 (SelectionOverlay): 37 (BlackBerry::WebKit::SelectionOverlay::create): 38 (BlackBerry::WebKit::SelectionOverlay::notifyAnimationStarted): 39 (BlackBerry::WebKit::SelectionOverlay::showDebugBorders): 40 (BlackBerry::WebKit::SelectionOverlay::showRepaintCounter): 41 (BlackBerry::WebKit::SelectionOverlay::contentsVisible): 42 1 43 2012-05-29 Arvid Nilsson <anilsson@rim.com> 2 44 -
trunk/Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp
r118403 r118785 33 33 #include "WebPageClient.h" 34 34 #include "WebPage_p.h" 35 #include "WebSelectionOverlay.h" 35 36 36 37 #include "htmlediting.h" … … 925 926 startCaret.x(), startCaret.y(), startCaret.width(), startCaret.height(), endCaret.x(), endCaret.y(), endCaret.width(), endCaret.height()); 926 927 928 if (m_webPage->m_selectionOverlay) 929 m_webPage->m_selectionOverlay->draw(visibleSelectionRegion); 927 930 928 931 m_webPage->m_client->notifySelectionDetailsChanged(startCaret, endCaret, visibleSelectionRegion, inputNodeOverridesTouch());
Note: See TracChangeset
for help on using the changeset viewer.