summaryrefslogtreecommitdiffstats
path: root/webkit
Commit message (Collapse)AuthorAgeFilesLines
* Make CertVerifier a pure virtual interface.rsleevi@chromium.org2012-03-211-1/+1
| | | | | | | | | | | | | The existing CertVerifier implementation has been renamed to MultiThreadedCertVerifier, consistent with ProxyResolver naming. This is patch 1 of N for http://crbug.com/114343 BUG=114343 TEST=Compiles and existing unittests pass. Review URL: https://chromiumcodereview.appspot.com/9476035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128090 0039d316-1c4b-4281-b951-d872f2087c98
* Use a new scheme for swapping out RenderViews.creis@chromium.org2012-03-211-0/+4
| | | | | | | | | | BUG=118664 TEST=none Review URL: http://codereview.chromium.org/9720004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127986 0039d316-1c4b-4281-b951-d872f2087c98
* DomStorage commit task sequencing. Use two workerpool task sequences ↵michaeln@google.com2012-03-2112-183/+453
| | | | | | | | | | | | | (primary vs commit) instead of one to avoid DomStorage access queuing up behind commits. * Initialization, shutdown, and administrative tasks are performed as shutdown-blocking primary sequence tasks. * Methods that return values to the java-scriptable interface are performed as non-shutdown-blocking primary sequence tasks. * Internal tasks related to committing changes to disk are performed as shutdown-blocking commit sequence tasks. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9718029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127981 0039d316-1c4b-4281-b951-d872f2087c98
* Bind RenderViewImpl routing_id to SocketStreamHosttoyoshim@chromium.org2012-03-212-23/+30
| | | | | | | | | | | | | | | | | - Set RenderViewImpl's routing_id to WebSocketStresmHandleImpl via dispatchWillOpenSocketStream() - Send the id from WebSocketStreamHandleImpl to SocketStreamHost via IPC SocketStreamHostMsg_Connect This change aim that SocketStreamDispatcher uses SSLManager with routing_id to handle SSL errors. BUG=53836 TEST=none Review URL: http://codereview.chromium.org/9677031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127964 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent npapi plugin paint when per-tile painting is used.reveman@chromium.org2012-03-212-3/+3
| | | | | | | | | | BUG=114410 TEST=webkit layout test: compositing/plugins/invalidate_rect.html Review URL: http://codereview.chromium.org/9764007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127960 0039d316-1c4b-4281-b951-d872f2087c98
* Added a guard on GetLocalizedString() to make it work with unit tests.morrita@chromium.org2012-03-211-0/+4
| | | | | | | | | | BUG=none TEST=webkit_unit_tests Review URL: http://codereview.chromium.org/9813001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127923 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics for counting # of origins per filesystem typekinuko@chromium.org2012-03-211-5/+12
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9764015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127921 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid accessing VarTracker from multiple threads.yzshen@chromium.org2012-03-211-0/+10
| | | | | | | | | | BUG=118223,118226 TEST=None Review URL: http://codereview.chromium.org/9786001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127871 0039d316-1c4b-4281-b951-d872f2087c98
* Change Origin bound certs -> Domain bound certs.mattm@chromium.org2012-03-201-3/+3
| | | | | | | | | | BUG=115348 TEST=unit tests, manually checked 'Origin Bound Certs' contents after browsing TBR=jam@chromium.org,willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/9617039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127817 0039d316-1c4b-4281-b951-d872f2087c98
* Add traces in PPB_Graphics2Dpiman@chromium.org2012-03-201-0/+4
| | | | | | | | | | BUG=None TEST=about:tracing on PDF page Review URL: http://codereview.chromium.org/9769002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127794 0039d316-1c4b-4281-b951-d872f2087c98
* Out-of-process implementation of the PPB_NetworkMonitor_Private interface.sergeyu@chromium.org2012-03-201-10/+12
| | | | | | | | | BUG=114808 Review URL: http://codereview.chromium.org/9677060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127762 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting/PPAPI] Update the Windows scancodes for the arrow keys in the ↵garykac@chromium.org2012-03-201-9/+9
| | | | | | | | | | | USB mapping tables. BUG=119013 TEST=none Review URL: http://codereview.chromium.org/9740004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127755 0039d316-1c4b-4281-b951-d872f2087c98
* Use CTFontManagerRegisterFontsForURLs in webkit support if we're building on ↵jochen@chromium.org2012-03-201-0/+21
| | | | | | | | | | | | | | 10.6 or later. The deprecated ATSFont functions stopped working on Lion. BUG=none TEST=none Review URL: http://codereview.chromium.org/9706099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127683 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127575 - Revert 127573 - DOMStorageContextImpl that's implemented in ↵michaeln@google.com2012-03-204-12/+107
| | | | | | | | | | | | | | | | | terms of the new dom_storage classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. And add the missing #include to fix the compile error. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 TBR=michaeln@google.com Review URL: https://chromiumcodereview.appspot.com/9726022 TBR=dgrogan@chromium.org Review URL: https://chromiumcodereview.appspot.com/9726023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127604 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127573 - DOMStorageContextImpl that's implemented in terms of the new ↵dgrogan@chromium.org2012-03-194-106/+12
| | | | | | | | | | | | dom_storage classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 TBR=michaeln@google.com Review URL: https://chromiumcodereview.appspot.com/9726022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127575 0039d316-1c4b-4281-b951-d872f2087c98
* DOMStorageContextImpl that's implemented in terms of the new dom_storage ↵michaeln@google.com2012-03-194-12/+106
| | | | | | | | | classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127573 0039d316-1c4b-4281-b951-d872f2087c98
* Add a private PPB_Talk_Private interface.varunjain@chromium.org2012-03-193-0/+7
| | | | | | | | | | | | It exposes one function that sends a message to the browser and issues a reply. The browser doesn't implement this yet. BUG=117564 TEST= Review URL: https://chromiumcodereview.appspot.com/9700028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127564 0039d316-1c4b-4281-b951-d872f2087c98
* Switch an error handler from calling exit() to simply crashing.eroman@chromium.org2012-03-191-1/+4
| | | | | | | | | | | I don't have any reason to believe this is currently being hit. However I am going through the codebase trying to eliminate sources of potential "hidden crashes" -- situations where our process dies but we don't receive any crash reports. BUG=118656 Review URL: http://codereview.chromium.org/9718003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127552 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Do not use the deprecated SkBitmap::getConfig() function.tfarina@chromium.org2012-03-191-2/+2
| | | | | | | | | | | Instead this patch uses SkBitmap::config() which is the preferred way. R=asvitkine@chromium.org TBR=brettw@chromium.org,thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/9720040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127468 0039d316-1c4b-4281-b951-d872f2087c98
* Group all plug-ins with "Google Talk" in the name.bauerb@chromium.org2012-03-191-1/+1
| | | | | | | | | | BUG=118879 TEST=manual Review URL: http://codereview.chromium.org/9716031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127464 0039d316-1c4b-4281-b951-d872f2087c98
* BaseSessionService: Remove HTTP bodies from content state if they contain ↵marja@chromium.org2012-03-193-15/+128
| | | | | | | | | | | passwords. BUG=NONE TEST=GlueSerializeTest.{HistoryItemWithPasswordsSerializeTest, RemovePasswordData, RemovePasswordDataWithNoPasswordData}, SessionServiceTest.{KeepPostDataWithoutPasswords, RemovePostDataWithPasswords} Review URL: http://codereview.chromium.org/9699068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127440 0039d316-1c4b-4281-b951-d872f2087c98
* Fix null pointer dereferences in valgrind tests.tkent@chromium.org2012-03-192-4/+3
| | | | | | | | | | | | | | | | | | | | | | Calling WebCache::clear() in ~TestWebKitPlatformSupport() isn't safe because WebCache::clear() might use the TestWebKitPlaformSupport() and it is not accessible. We should: - Make sure TestWebKitPlatformSupport is alive until WebKit::shutdown() - Make sure WebCache::clear() is called before WebKit::shutdown() - Don't call WebKit::shutdown() twice. So, move WebCache::clear() from ~TestWebKitPlatformSupport() to TearDownTestEnvironment(). BUG=118387 TEST=Covered by valgrind bots Review URL: http://codereview.chromium.org/9705093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127428 0039d316-1c4b-4281-b951-d872f2087c98
* npapi plugins: Make sure WebPlugin has no key functions on mac.thakis@chromium.org2012-03-194-9/+9
| | | | | | | | | | | See http://gcc.gnu.org/onlinedocs/gcc/Vague-Linkage.html BUG=90078 TEST=none Review URL: http://codereview.chromium.org/9720021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127426 0039d316-1c4b-4281-b951-d872f2087c98
* Add frame hashing to PipelineIntegrationTests.dalecurtis@chromium.org2012-03-171-1/+2
| | | | | | | | | | | | | | | | | | | | Also adds support for disabling frame dropping in the video renderer so we can be sure we've seen every frame coming out. Testing shows that there are issues with threading in the FFmpeg H264 decoder. Running with --video-threads=1 will yield different results than running multithreaded. We should probably increase the breadth of our basic playback testing once we've got a better handle on threaded decoding in FFmpeg. BUG=118688 TEST=media_unittests, ffmpeg_regression_tests. Review URL: http://codereview.chromium.org/9716008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127320 0039d316-1c4b-4281-b951-d872f2087c98
* Consistent initialization of GL objects in WebGraphicsContext3DInProcessImpl ↵reveman@chromium.org2012-03-171-3/+3
| | | | | | | | | | | | class. BUG=117768 TEST=none Review URL: http://codereview.chromium.org/9691057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127319 0039d316-1c4b-4281-b951-d872f2087c98
* BufferedDataSource wants to know the content length of non-http(s) ↵fischman@chromium.org2012-03-178-778/+4
| | | | | | | | | | | resources, so we now expose it from WebURLLoaderImpl. BUG=110805 TEST=media layouttests still pass, esp. the data: ones. Review URL: http://codereview.chromium.org/9718005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127309 0039d316-1c4b-4281-b951-d872f2087c98
* Add OpenGL occlusion query support to pepper.jbauman@chromium.org2012-03-161-0/+2
| | | | | | | | | | | Should be full support for opengl es's occlusion query interface. Still only dev interfaces right now. BUG=88601 TEST= Review URL: https://chromiumcodereview.appspot.com/9601020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127298 0039d316-1c4b-4281-b951-d872f2087c98
* Route GPU process console messages through pepper.jbauman@chromium.org2012-03-163-0/+39
| | | | | | | | | | | | Hook up this warning messages, just like we do for webgl. BUG=107296 TEST= Review URL: http://codereview.chromium.org/9702058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127297 0039d316-1c4b-4281-b951-d872f2087c98
* An internal intents dispatcher useful for initiating an intent from the ↵gbillock@chromium.org2012-03-162-4/+29
| | | | | | | | | | | | | browser process. R=jhawkins@chromium.org,jam@chromium.org BUG=105732 TEST=InternalWebIntentsDispatcherTest Review URL: http://codereview.chromium.org/9692017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127275 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land http://codereview.chromium.org/9403039/, r124106dmichael@chromium.org2012-03-167-18/+58
| | | | | | | | | | | | | | | | | | | | Original description: """ PPAPI: Really force-free NPObjects on Instance destruction. (There still seems to be a memory leak with this patch; I may have to check our NPObject reference counting next.) BUG=114023 TEST= """ BUG=114023 TEST= TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/9564024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127273 0039d316-1c4b-4281-b951-d872f2087c98
* Don't trigger second request on missing instance size in Content-Range.fischman@chromium.org2012-03-166-14/+123
| | | | | | | | | | Previously we were relying on the parser for multipart/x-mixed-replace to parse Content-Range. This CL instead introduces a parser that implements HTTP/1.1 (allowing instance-size to be "*"). BUG=104795 Review URL: http://codereview.chromium.org/9703073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127232 0039d316-1c4b-4281-b951-d872f2087c98
* Trust servers that claim "Accept-Ranges: bytes" but serve a 200 for Range:0-fischman@chromium.org2012-03-162-3/+20
| | | | | | | | | BUG=110309 Review URL: http://codereview.chromium.org/9701082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127217 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/base/cookie_*.h includes to net/cookies/cookie_*.h .erikwright@chromium.org2012-03-166-12/+13
| | | | | | | | | | | | Once complete, forwarding headers will be removed from net/base/ . TEST=none R=darin Review URL: http://codereview.chromium.org/9706056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127209 0039d316-1c4b-4281-b951-d872f2087c98
* enable hairline-clipping fixreed@google.com2012-03-161-0/+8
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9702118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127192 0039d316-1c4b-4281-b951-d872f2087c98
* suppress this test until webkit's version is pulled inreed@google.com2012-03-161-0/+3
| | | | | | | when skia 3398+ lands in canary, this test can be rebaselined Review URL: https://chromiumcodereview.appspot.com/9706101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127168 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Add USB keycode handling to Windows client.garykac@chromium.org2012-03-164-139/+182
| | | | | | | | | | | Update code that converts from native Windows scancodes into USB keycodes. The code now uses a table that is shared across platforms. Pepper uses this table when populating the |usb_key_code| field in the InputEvent. This cl also bring the webkit/plugins/ppapi/usb_keycode_map.h file in sync with the one in remoting/host. Review URL: https://chromiumcodereview.appspot.com/9619014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127157 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Do not peek at /home/chronos/user/Downloadssatorux@chromium.org2012-03-161-27/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a re-land of crrev.com/127030 The original patch was reverted as it broke ExtensionFileBrowserPrivateApiTest.FileBrowserMount This version fixed the test expectation. Use $HOME/Downloads if running on Linux desktop. Note that gspencer@ tried to solve this problem in a cleaner way: http://codereview.chromium.org/9455073/ However his patch didn't work. I patched it locally, but mount points like /media/removable didn't show up in the file manager, and the renderer crashed when I clicked on the "Open downloads folder" in chrome://downloads, as he warned me beforehand. Hence I decided to go with a simpler approach in this patch. BUG=chromium-os:27859 TEST=confirm that contents in ~/Downloads are shown in the file browser on Linux desktop Review URL: https://chromiumcodereview.appspot.com/9699107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127125 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127030 - chromeos: Do not peek at /home/chronos/user/Downloadstbarzic@chromium.org2012-03-161-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Broke ExtensionFileBrowserPrivateApiTest.FileBrowserMount. Use $HOME/Downloads if running on Linux desktop. Note that gspencer@ tried to solve this problem in a cleaner way: http://codereview.chromium.org/9455073/ However his patch didn't work. I patched it locally, but mount points like /media/removable didn't show up in the file manager, and the renderer crashed when I clicked on the "Open downloads folder" in chrome://downloads, as he warned me beforehand. Hence I decided to go with a simpler approach in this patch. BUG=chromium-os:27859 TEST=confirm that contents in ~/Downloads are shown in the file browser on Linux desktop Review URL: https://chromiumcodereview.appspot.com/9700077 TBR=satorux@chromium.org Review URL: https://chromiumcodereview.appspot.com/9693067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127095 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Move EventWithMenuAction() to the only file where it's called.thakis@chromium.org2012-03-163-74/+61
| | | | | | | | | | | | This way, it doesn't cross module boundaries. BUG=90078 TEST=none NOTRY=true Review URL: http://codereview.chromium.org/9703067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127082 0039d316-1c4b-4281-b951-d872f2087c98
* Remove renderDirectlyToWebView parameter from ↵jamesr@chromium.org2012-03-162-10/+1
| | | | | | | | | | | | | | WebViewClient::createGraphicsContext3D Callers all removed in http://trac.webkit.org/changeset/110773/ BUG=none TEST=compiles Review URL: http://codereview.chromium.org/9705036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127074 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Do not peek at /home/chronos/user/Downloadssatorux@chromium.org2012-03-151-27/+28
| | | | | | | | | | | | | | | | | | | | | Use $HOME/Downloads if running on Linux desktop. Note that gspencer@ tried to solve this problem in a cleaner way: http://codereview.chromium.org/9455073/ However his patch didn't work. I patched it locally, but mount points like /media/removable didn't show up in the file manager, and the renderer crashed when I clicked on the "Open downloads folder" in chrome://downloads, as he warned me beforehand. Hence I decided to go with a simpler approach in this patch. BUG=chromium-os:27859 TEST=confirm that contents in ~/Downloads are shown in the file browser on Linux desktop Review URL: https://chromiumcodereview.appspot.com/9700077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127030 0039d316-1c4b-4281-b951-d872f2087c98
* Callback renaming in media code.xhwang@chromium.org2012-03-154-7/+7
| | | | | | | | | | | | | | | | | | This is a follow up CL of 125959. - Rename AudioTimeCB and VideoTimeCB to TimeCB, as the context (VideoRenderer/AudioRenderer already provides clear context). - Rename PipelineStatusCB callback variable names to status_cb if no names with specific meaning (e.g. seek_cb) are given. - Rename foo_callback to foo_cb (except for media/audio/). Note that media/audio also contains a lot of FooCallback types and foo_callback names. This will probably be addressed in another CL. BUG=none TEST=none Review URL: http://codereview.chromium.org/9704046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127028 0039d316-1c4b-4281-b951-d872f2087c98
* Update Linux nativeKeyCode to USB keycode conversion table.garykac@chromium.org2012-03-151-62/+151
| | | | | | | | | | | | Remove evdev-based table, replace with xkb version. Add check to verify size of lookup table. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9608011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127011 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 126933 - roll skia to 3402zmo@google.com2012-03-151-3/+0
| | | | | | | | | Review URL: https://chromiumcodereview.appspot.com/9699077 TBR=reed@google.com Review URL: https://chromiumcodereview.appspot.com/9702085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126975 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce unnecessary network connections.fischman@chromium.org2012-03-154-63/+17
| | | | | | | | | | | | | | | | Two different scenarios are fixed by this: a) When Range:0- receives a 200 request, don't make a new connection asking for the same data without the Range:0- request heaeder (bug 104783). b) When a 4xx or malformed HTTP response is received on a Range:0- request, don't re-attempt the request without the Range header (bug 105230). BUG=104783,105230 TEST=awesome scherkus@ tests now pass w/ the extra expectations removed. Review URL: http://codereview.chromium.org/9699035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126970 0039d316-1c4b-4281-b951-d872f2087c98
* Native to USB keycode conversion for Macgarykac@chromium.org2012-03-154-2/+417
| | | | | | | Add code to convert from native Mac keycodes into USB keycodes so that Pepper can correctly populate the |usb_key_code| field in the InputEvent. Review URL: https://chromiumcodereview.appspot.com/9701030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126956 0039d316-1c4b-4281-b951-d872f2087c98
* roll skia to 3402reed@google.com2012-03-151-0/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9699077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126933 0039d316-1c4b-4281-b951-d872f2087c98
* Added out-of-process support for server sockets.ygorshenin@chromium.org2012-03-156-29/+22
| | | | | | | | | | BUG=108277 TEST=OutOfProcessPPAPITest.TCPServerSocketPrivate Review URL: http://codereview.chromium.org/9669038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126873 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper IME API for surrounding text retrieval.kinaba@chromium.org2012-03-158-2/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IME benefits from knowing what portion of text is selected inside a text editing plugin. This change is to implement a Pepper API for doing it. It consists of three API functions: 1. Browser asks plugins by PPP_TextInput_Dev::RequestSurroundingText() to send such info. 2. Plugin must reply the query by PPB_TextInput_Dev::UpdateSurroundingText(). 3. Additionally, plugin notifies the browser by PPB_TextInput_Dev::SelectionChanged() that the selection is changed. Typically triggers the steps 1->2. Intention of the API design is (1) to avoid synchronous IPC, and (2) to keep the room to implement it in an optimal and right way, that is, expensive send of selection text happens only when needed (= "IME requiring the info is on" + "selection indeed changed in the plugin"), though the current impl in the patch is not necessary like that (for sake of simplicity). The changes in the API is in: * ppapi/c/dev/ppb_text_input_dev.h * ppapi/c/dev/ppp_text_input_dev.h The browser side implementation mostly resides in: * content/renderer/render_view_impl.cc * content/renderer/pepper/pepper_plugin_delegate_impl.{h,cc} * webkit/plugins/ppapi/ppapi_plugin_instance.{h,cc} The other files are for wiring necessary cables. BUG=101101 TEST=Manual: make ppapi_example_ime and run ./your/chrome --register-pepper-plugins=\ "/path/to/ppapi_example_ime.plugin;application/x-ppapi-example-ime" \ --ppapi-out-of-process \ file:///path/to/ppapi/examples/ime/ime.html Try some IME that supports reconversion (e.g., Google Japanese Input on Windows). Review URL: http://codereview.chromium.org/8769003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126862 0039d316-1c4b-4281-b951-d872f2087c98
* HostResolver is exposed to plugin.ygorshenin@chromium.org2012-03-158-2/+111
| | | | | | | | | | BUG=114225 TEST=UI test TestHostResolverPrivate Review URL: http://codereview.chromium.org/9455092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126813 0039d316-1c4b-4281-b951-d872f2087c98