summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper_plugin_delegate_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move Pepper files.brettw@chromium.org2012-02-221-2259/+0
| | | | | | | | | | | | Pepper files in content/renderer to content/renderer/pepper BUG= TEST= Review URL: http://codereview.chromium.org/9355046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122923 0039d316-1c4b-4281-b951-d872f2087c98
* GetBoundAddress will return the address that Bind actually bound to. If ↵yzshen@chromium.org2012-02-211-4/+6
| | | | | | | | | | | | there has not been a successful call to Bind, this method will return an error. BUG=no bug TEST=udp tests Review URL: https://chromiumcodereview.appspot.com/9212047 Patch from Mike Tilburg <mtilburg@adobe.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122910 0039d316-1c4b-4281-b951-d872f2087c98
* Work on improving PpbAudioConfig:RecommendSampleFrameCountnfullagar@google.com2012-02-181-2/+18
| | | | | | | | | | | | Add version 1.1 which will query the audio back end for the best available sample frame count. Also add RecommendSampleRate. Switch pepper plugin delegate to use AUDIO_PCM_LOW_LATENCY if client request is compatible. TEST=included BUG=http://code.google.com/p/chromium/issues/detail?id=107572 Review URL: https://chromiumcodereview.appspot.com/9129007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122653 0039d316-1c4b-4281-b951-d872f2087c98
* Fix TCPSocket_Private::Disconnect not to crash renderer if socket not connected.wez@chromium.org2012-02-171-2/+4
| | | | | | | | | | | Also fix UDPSocket_Private::Close similarly for un-bound sockets. BUG=112517 Review URL: http://codereview.chromium.org/9325010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122427 0039d316-1c4b-4281-b951-d872f2087c98
* Move socket API restriction check to browser processdpolukhin@chromium.org2012-02-161-21/+6
| | | | | | | | | | BUG=112961 TEST=ui_tests --gtest_filter=*TCPSocket* Review URL: http://codereview.chromium.org/9379002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122326 0039d316-1c4b-4281-b951-d872f2087c98
* Implement device enumeration for PPB_VideoCapture_Dev.yzshen@chromium.org2012-02-151-59/+198
| | | | | | | | | | | | | - Implement PPB_VideoCapture_Dev v0.2. - Use a ref-counted PlatformVideoCapture to manage lifespan of media::VideoCapture::EventHandler, instead of manipulating the ref count of PPB_VideoCapture_Impl. - Extend examples/video_capture. BUG=None TEST=examples/video_capture Review URL: https://chromiumcodereview.appspot.com/9234064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122176 0039d316-1c4b-4281-b951-d872f2087c98
* Move ContextMenuParams struct from webkit/glue to content/public/common. The ↵jam@chromium.org2012-02-121-4/+4
| | | | | | | | | | | | | reasons are: -this struct wasn't used at all in webkit layer, so no need to have it there -we can avoid exposing content layer's serialization of SSLInfo to embedders -avoid mentioning routing_ids in the webkit layer BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9382037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121673 0039d316-1c4b-4281-b951-d872f2087c98
* Removes usage of the term low-latency in AudioInputRendererHost.henrika@chromium.org2012-02-091-6/+6
| | | | | | | | | BUG=none TEST=content_unittests and WebRTC demo applications Review URL: https://chromiumcodereview.appspot.com/9332002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121213 0039d316-1c4b-4281-b951-d872f2087c98
* Removed CHECKs used for bug investigation.xhwang@chromium.org2012-02-071-3/+2
| | | | | | | | | | | | CHECKs was added when investigating issue 103957 and issue 95732. Since these two bugs have been fixed, remove CHECKs or replace with normal error handling. BUG=95732,103957 TEST=none Review URL: http://codereview.chromium.org/9307009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120763 0039d316-1c4b-4281-b951-d872f2087c98
* Move gpu client files to content_common, in content/common/gpu/clientpiman@chromium.org2012-02-071-6/+4
| | | | | | | | | | BUG=99516 TEST=compiles Review URL: http://codereview.chromium.org/9340012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120729 0039d316-1c4b-4281-b951-d872f2087c98
* Provide WillInitiatePaint() as well as DidInitiatePaint() and tweak semantics.wez@chromium.org2012-02-041-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | WillInitiatePaint() informs derived classes when the RenderWidget is about to perform a paint operation. DidInitiatePaint() informs derived classes that the RenderWidget has finished the paint operation and sent it to the browser to display. DidFlushPaint() informs derived classes when the paint operation has actually been displayed (either in response to UpdateRectAck, or OnSwapBuffersComplete()). Pepper Graphics2D uses WillInitiatePaint and DidFlushPaint to trigger its Flush callback only for flushes occurring after the paint has actually been initiated. Pepper Graphics3D uses DidInitiatePaint to know when the 3D pipeline is done with buffers from the previous paint operation, so that new content rendered to them won't be prematurely flushed to the screen. Known issues with this CL: * There is still scope for the Graphics2D to get confused when threaded compositing is in use, since DidFlushPaint for an older paint may be received after WillInitiatePaint for a more recent one, but that is a fix for another CL. * Graphics3D will now be notified earlier in than it would have been in the software case, since it previously hooked DidFlushPaint. BUG=111639 TEST=Run Native Client Examples "Pi generator", "Tumbler" and "Fullscreen Tumbler" with and without --force-composite-mode and verify they update correctly. Review URL: http://codereview.chromium.org/9328016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120490 0039d316-1c4b-4281-b951-d872f2087c98
* Remove "high"-latency audio code pathvrk@chromium.org2012-02-031-17/+6
| | | | | | | | | | | | | | Chrome only uses the low-latency code path. This CL removes the unused, alternative "high"-latency code path. player_x11 and player_wtl use the high-latency code path, so sound is disabled from those players for now. BUG=NONE TEST=builds; content_unittests Review URL: http://codereview.chromium.org/9121062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120436 0039d316-1c4b-4281-b951-d872f2087c98
* Move audio/video files from content/renderer into content/renderer/media.fischman@chromium.org2012-01-281-1/+1
| | | | | | | | | | | | Should reduce rubberstampage. BUG=none TEST=none Review URL: http://codereview.chromium.org/9295018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119577 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse Lock is currently supported in Pepper, but not yet supported from WebKit.scheib@chromium.org2012-01-271-116/+61
| | | | | | | | | | | | | | | Move the render thread logic for managing the mouse lock state out of the pepper_plugin_delegate_impl, and into a higher level dispatcher for render_view_impl. Handle mouse lock / pointer lock requests from both pepper and webkit (WebKit API not yet landed, small TODOs left in this code to enable once that lands). BUG=109957 TEST=Pepper examples/mouse_lock and NaCl mouse lock examples still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119206 Review URL: http://codereview.chromium.org/8970016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119406 0039d316-1c4b-4281-b951-d872f2087c98
* android build: progress on content and libjingle.jrg@chromium.org2012-01-271-1/+1
| | | | | | | | | | BUG=None TEST= Review URL: http://codereview.chromium.org/9271028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119334 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119206 - Mouse Lock is currently supported in Pepper, but not yet ↵tzik@chromium.org2012-01-261-61/+116
| | | | | | | | | | | | | | | | | | supported from WebKit. Move the render thread logic for managing the mouse lock state out of the pepper_plugin_delegate_impl, and into a higher level dispatcher for render_view_impl. Handle mouse lock / pointer lock requests from both pepper and webkit (WebKit API not yet landed, small TODOs left in this code to enable once that lands). BUG=109957 TEST=Pepper examples/mouse_lock and NaCl mouse lock examples still work. Review URL: http://codereview.chromium.org/8970016 TBR=scheib@chromium.org Review URL: https://chromiumcodereview.appspot.com/9293001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119208 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse Lock is currently supported in Pepper, but not yet supported from WebKit.scheib@chromium.org2012-01-261-116/+61
| | | | | | | | | | | | | Move the render thread logic for managing the mouse lock state out of the pepper_plugin_delegate_impl, and into a higher level dispatcher for render_view_impl. Handle mouse lock / pointer lock requests from both pepper and webkit (WebKit API not yet landed, small TODOs left in this code to enable once that lands). BUG=109957 TEST=Pepper examples/mouse_lock and NaCl mouse lock examples still work. Review URL: http://codereview.chromium.org/8970016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119206 0039d316-1c4b-4281-b951-d872f2087c98
* Implement support for a cancelable SyncSocket.tommi@chromium.org2012-01-251-7/+5
| | | | | | | | | | | | Currently, blocking SyncSocket operations can not be unblocked from other threads, but this is now supported by using the CancelableSyncSocket class. The implementation on Mac and Linux is very simple and basically consists of adding a call to shutdown(). On Windows however things are a tiny bit more complex since we use named pipes with synchronous IO and canceling synchronous IO is simply not possible on XP and arguably tricky on Vista+. So, what we do instead is to use asynchronous IO in a synchronous fashion to support the SyncSocket semantics and as well as allowing the connection to be correctly shut down from another thread. Review URL: https://chromiumcodereview.appspot.com/8965053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119051 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper gamepad supportscottmg@chromium.org2012-01-101-1/+8
| | | | | | | | | BUG=79098 Review URL: http://codereview.chromium.org/9085027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117077 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up page visibility to the View info for a plugin.brettw@chromium.org2012-01-041-0/+11
| | | | | | | | | | TEST=manual (run audio example and switch tab visibility) BUG= Review URL: http://codereview.chromium.org/9022016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116370 0039d316-1c4b-4281-b951-d872f2087c98
* Change the DidChangeView update to take a new ViewChanged resource.brettw@chromium.org2012-01-031-3/+3
| | | | | | | | | | | This will allow us to be more flexible about adding data to view changed updates in the future. For now, I've incorporated fullscreen and tab foreground state into the view state. BUG= TEST= Review URL: http://codereview.chromium.org/8951014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116142 0039d316-1c4b-4281-b951-d872f2087c98
* Retry: Convert stragglers not on spreadsheet to base::Bind()ajwong@chromium.org2011-12-291-15/+12
| | | | | | | | | | | Original review: http://codereview.chromium.org/9035002/ BUG=none TEST=try bots (including shared) Review URL: http://codereview.chromium.org/9049012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115976 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 115929 - Convert stragglers not on spreadsheet to base::Bind()ajwong@chromium.org2011-12-291-12/+15
| | | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9035002 TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/9006057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115934 0039d316-1c4b-4281-b951-d872f2087c98
* Convert stragglers not on spreadsheet to base::Bind()ajwong@chromium.org2011-12-281-15/+12
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9035002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115929 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Add a missing NULL check in PpapiBroker.thestig@chromium.org2011-12-221-0/+3
| | | | | | | | | | CID=101345 BUG=none TEST=none Review URL: http://codereview.chromium.org/8989034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115493 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to ↵dpolukhin@chromium.org2011-12-061-1/+214
| | | | | | | | | | | | | Browser PPB_{TCP|UDP}Socket_Private interfaces are exposed to Browser process. Added shared (between NaCl and Pepper) tests for both interfaces. BUG=105859 TEST=ui_tests Review URL: http://codereview.chromium.org/8804006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113172 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 112693 - committed before review was done - Landing 8688002: ↵jam@chromium.org2011-12-021-167/+0
| | | | | | | | | | | | PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser Review URL: http://codereview.chromium.org/8688002 Patch from Yuri Gorshenin <ygorshenin@chromium.org>. TBR=dpolukhin@chromium.org Review URL: http://codereview.chromium.org/8775063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112754 0039d316-1c4b-4281-b951-d872f2087c98
* Landing 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to ↵dpolukhin@chromium.org2011-12-021-0/+167
| | | | | | | | | Browser Review URL: http://codereview.chromium.org/8688002 Patch from Yuri Gorshenin <ygorshenin@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112693 0039d316-1c4b-4281-b951-d872f2087c98
* Add CHECK on file descriptor in various IPC::ChannelHandle passed in.xhwang@chromium.org2011-12-021-0/+3
| | | | | | | | | | | | | Regarding Chromium issues 73355, 95129, 95732, 97285, 103957 and Chromium-os issue 18437, 22372, we suspect the channel handles passed to the renderer have invalid file descriptors (fd). This is supported by the fact that using a channel handle with a valid name but an invalid fd will produce crashes with exactly the same stack trace as reported in these issues. Running out of fd in either the renderer, browser or the other process (GPU, broker, etc) could cause this to happen, but we are not sure if that's the real cause. Adding check for the fd in various places to help investigate these issues further. We will be able to tell if invalid fd is passed in and if yes, which process generates it. Browser side check is only added for the broker case to limit the scale of bad user experience, while providing enough cases for investigation. BUG=none TEST=passed unit tests Review URL: http://codereview.chromium.org/8735015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112647 0039d316-1c4b-4281-b951-d872f2087c98
* Merge definitions of PlatformFileToInt and IntToPlatformFile to one place.xhwang@chromium.org2011-11-231-13/+5
| | | | | | | | | | BUG=none TEST=normal browsing on m17 Review URL: http://codereview.chromium.org/8585013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111447 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the device selection for linux and mac by passing a device unique id ↵xians@chromium.org2011-11-221-2/+4
| | | | | | | | | | | | | | | from renderer down to the browser. With this patch, users should be able to create a audio stream with a non-default device, and feature is only available for low-latency audio. TEST=media_unittests, webrtc test app BUG=None Review URL: http://codereview.chromium.org/8491044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111153 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Fix nits mentioned in review in audio input code.viettrungluu@chromium.org2011-11-211-16/+16
| | | | | | | | | | In particular, dmichael's comments in http://codereview.chromium.org/8574029. TBR=jam@chromium.org Review URL: http://codereview.chromium.org/8489002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111007 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110602 - Revert 110587 - Microphone support for Pepper Flash.viettrungluu@chromium.org2011-11-181-9/+192
| | | | | | | | | | | | | | | | | | | | | | | [I think the Windows shared builders just need to be clobbered.] [Committing for pbrophy@adobe.com. Original review: http://codereview.chromium.org/8138008/ .] This change supports audio capture from the microphone and supplies the data through a Pepper interface. Its enumeration is limited to the default audio device that uses mono 44.1kHz. TBR=tony@chromium.org Review URL: http://codereview.chromium.org/8574029 TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/8569003 TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/8561003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110609 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110587 - Microphone support for Pepper Flash.ajwong@chromium.org2011-11-171-192/+9
| | | | | | | | | | | | | | | | | | [Committing for pbrophy@adobe.com. Original review: http://codereview.chromium.org/8138008/ .] This change supports audio capture from the microphone and supplies the data through a Pepper interface. Its enumeration is limited to the default audio device that uses mono 44.1kHz. TBR=tony@chromium.org Review URL: http://codereview.chromium.org/8574029 TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/8569003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110602 0039d316-1c4b-4281-b951-d872f2087c98
* Microphone support for Pepper Flash.viettrungluu@chromium.org2011-11-171-9/+192
| | | | | | | | | | | | | | | [Committing for pbrophy@adobe.com. Original review: http://codereview.chromium.org/8138008/ .] This change supports audio capture from the microphone and supplies the data through a Pepper interface. Its enumeration is limited to the default audio device that uses mono 44.1kHz. TBR=tony@chromium.org Review URL: http://codereview.chromium.org/8574029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110587 0039d316-1c4b-4281-b951-d872f2087c98
* Add check on invalid file descriptor at both broker and renderer sides.xhwang@chromium.org2011-11-121-5/+22
| | | | | | | | | | | | | | The broker could send back an invalide channel handle if it fails to setup up renderer channel, e.g. when the broker fails to duplicate a file descriptor. Add a check in PpapiThread::SetupRendererChannel on this condition. Upon receiving an invalid channel handle from the broker, the BrokerDispatcherWrapper at the render side should check the channel handle before passing it down. Using an invalid channel handle to create a channel may cause LOG(FATAL) in IPC::Channel::ChannelImpl::CreatePipe(). Add a content unitest to check this. BUG=103957 TEST=new unit test Review URL: http://codereview.chromium.org/8436008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109747 0039d316-1c4b-4281-b951-d872f2087c98
* share all the needed linux code with OpenBSD in chrome and contentrobert.nagy@gmail.com2011-11-111-1/+1
| | | | | | | | | | | | | | disabled code for OpenBSD: - AdjustRendererOOMScore() - SECCOMP_SANDBOX BUG= TEST=compile Review URL: http://codereview.chromium.org/8341052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109679 0039d316-1c4b-4281-b951-d872f2087c98
* Make the Pepper Flash net address just private, not Flash-specific.viettrungluu@chromium.org2011-11-101-3/+3
| | | | | | | | | | | Note that, though the PP_Flash_NetAddress struct is being renamed, binary compatibility is being maintained. It's also safe to just rename the PPB_Flash_NetAddress interface without maintaining backwards compatibility since Pepper Flash isn't using it yet. Review URL: http://codereview.chromium.org/8511032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109335 0039d316-1c4b-4281-b951-d872f2087c98
* Added logging useful for understanding Pepper broker lifetime.ddorwin@chromium.org2011-10-261-2/+2
| | | | | | | | | | | | Also, added support for VLOG to Pepper OOP plugin and Pepper broker processes by forwarding --vmodule to these processes. BUG=none TEST=Launch a dbg build of Chrome with --vmodule=ppapi_plugin_process_host=1,broker_process_dispatcher=1,ppapi_broker_main=1,broker_dispatcher=1,proxy_channel=1", visit a page that uses the broker, and navigate away from that page. The new log statements should be displayed. Review URL: http://codereview.chromium.org/8347009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107451 0039d316-1c4b-4281-b951-d872f2087c98
* Handle the change from CaretBounds to SelectionBounds for PPAPI Plugins.kinaba@chromium.org2011-10-211-0/+6
| | | | | | | | | | | | | | | | | BUG=101173 TEST=Manual: run ppapi_example_ime and verify the candidate window to pop up in a correct place, or open a Flash website with text field on Chrome OS, and verify that the candidate window is displayed in the bottom-left corner of the Flash rect. This CL is to reflect the refactoring http://crrev.com/105699 on IPCs also for Pepper plugins, and make IME candidate windows to be displayed on intended positions. Review URL: http://codereview.chromium.org/8363015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106796 0039d316-1c4b-4281-b951-d872f2087c98
* Move PepperPluginInfo to content/public/common and put it into the content ↵jam@chromium.org2011-10-211-1/+1
| | | | | | | | | namespace. BUG=98716 Review URL: http://codereview.chromium.org/8366027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106731 0039d316-1c4b-4281-b951-d872f2087c98
* Remove RemoteAccessClientFirewallTraversal policy and code paths.wez@chromium.org2011-10-201-24/+0
| | | | | | | | | BUG=96318 TEST= Review URL: http://codereview.chromium.org/8275012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106521 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bugs with Pepper 3D under dynamic GPU switching.kbr@chromium.org2011-10-191-13/+17
| | | | | | | | | | | | | | | | | | | | | Made Pepper 3D context creation code fully aware of GPU switching and changed the order of context creation and and fetching of the parent context. Creating the context potentially causes all existing contexts for that renderer, including the parent, to be lost. Detect shutting down of the GPU channel more quickly on the renderer side. Only reject context creation in GLContextCGL upon GpuPreference mismatch if the system supports dual GPUs. Will update tools/histograms/histograms.xml as soon as this is committed; must occur in a separate CL. BUG=100507 TEST=tested navigating to and from, and reloading, NaCl Pepper 3D samples on Mac 10.6.8 and 10.7.1; WebGL tests Review URL: http://codereview.chromium.org/8342024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106394 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert FileUtilProxy::StatusCallback.jhawkins@chromium.org2011-10-171-3/+5
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8318025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105925 0039d316-1c4b-4281-b951-d872f2087c98
* Fix use-after-free in PepperPluginDelegateImpl::GetTextInputType.kinaba@chromium.org2011-10-161-0/+2
| | | | | | | | | | | | BUG=100153 TEST=manual This patch is to correctly nullify a dangling reference to a deleted plugin instance. Review URL: http://codereview.chromium.org/8298020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105708 0039d316-1c4b-4281-b951-d872f2087c98
* Make shared memory allocation possible for all child process types.michaeln@google.com2011-10-151-1/+2
| | | | | | Review URL: http://codereview.chromium.org/8229039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105621 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI Fullscreen: In ViewChanged, check if the browser entered fullscreen modepolina@google.com2011-10-141-0/+4
| | | | | | | | | | | | | | | | | and if the current element is the fullscreen element. This will help us determine more reliably if the plugin entered/exited fullscreen mode. This also takes care of the F11 case where desired_fullscree_state_ has not been properly set. Add an dummy stub for RenderWidget::is_fullscreen to be implemented by darin in a different patch) and wrappers for it to make it available via PluginDelegate::IsInFullscreenMode to the PluginInstance. BUG=41780,98477 TEST=ppapi_tests/test_fullscreen, native_client/tests/ppapi_browser/ppb_fullscreen Review URL: http://codereview.chromium.org/8273029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105485 0039d316-1c4b-4281-b951-d872f2087c98
* Move content_switches to content\public\common.jam@chromium.org2011-10-131-1/+1
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8277018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105389 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pepper IME API.kinaba@chromium.org2011-10-121-4/+102
| | | | | | | | | | | | | | | | | | | | | | BUG=59425 TEST=Build chrome and ppapi_example_ime, Confirm "out/Release/chrome --register-pepper-plugins='out/Release/lib/libppapi_example_ime.so;application/x-ppapi-example' ppapi/examples/ime/ime.html" works. This CL is the last part for adding the basic IME support for PPAPI, preceded by the previous two changes codereview.chromium.org/7882004 (API declarations) and codereview.chromium.org/7978019 (thunk and proxy implementation). This CL comes with the actual Chrome-side implementation of the API with an example to show how to use IME in PPAPI. Keep in mind the current implementation still not reached the point of "the complete" set of IME APIs yet. - Advanced features in design doc (like surrounding text retrieval) is not available. - DOM and PPAPI composition events are not converted each other. Rather, it aims to provide basic set of functions just needed to implement inline composition in plugins. Review URL: http://codereview.chromium.org/8073021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105056 0039d316-1c4b-4281-b951-d872f2087c98