summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Adds a printing proxy and example. This adds a printing example.brettw@chromium.org2012-02-291-5/+1
| | | | | | Review URL: http://codereview.chromium.org/9455083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124149 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented Clear() functionality in the clipboard. raymes@chromium.org2012-02-291-3/+3
| | | | | | | | | | BUG=110796 TEST=Run ui_tests --gtest_filter=PPAPITest.*Clipboard* and ui_unittests --gtest_filter=*Clipboard*. Review URL: http://codereview.chromium.org/9349023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124143 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 124106, turns memory bots red across the bord (linux, cros).thakis@chromium.org2012-02-297-59/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example stack: Suppression (error hash=#C5EB54BF2F81B151#): For more info on using suppressions see http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chromium/memory-sheriff#TOC-Suppressing-memory-reports { <insert_a_suppression_name_here> Memcheck:Leak fun:_Znw* fun:_ZN6webkit5ppapi12PluginObject21AllocateObjectWrapperEv fun:_ZN6webkit5ppapi12_GLOBAL__N_121WrapperClass_AllocateEP4_NPPP7NPClass fun:_NPN_CreateObject fun:_ZN6WebKit11WebBindings12createObjectEP4_NPPP7NPClass fun:_ZN6webkit5ppapi12PluginObject6CreateEPNS0_14PluginInstanceEPK20PPP_Class_DeprecatedPv fun:_ZN6webkit5ppapi12_GLOBAL__N_122CreateObjectDeprecatedEiPK20PPP_Class_DeprecatedPv fun:_ZN2pp10VarPrivateC1ERKNS_14InstanceHandleEPNS_10deprecated16ScriptableObjectE fun:_ZN8TestCase13GetTestObjectEv fun:_ZN15TestingInstance17GetInstanceObjectEv fun:_ZN2pp12_GLOBAL__N_117GetInstanceObjectEi fun:_ZN6webkit5ppapi14PluginInstance17GetInstanceObjectEv fun:_ZN6webkit5ppapi13WebPluginImpl16scriptableObjectEv fun:_ZN6WebKit22WebPluginContainerImpl16scriptableObjectEv fun:_ZN7WebCore15PlatformSupport22pluginScriptableObjectEPNS_6WidgetE fun:_ZN7WebCore16ScriptController29createScriptInstanceForWidgetEPNS_6WidgetE fun:_ZN7WebCore17HTMLPlugInElement11getInstanceEv fun:_ZN7WebCoreL19npObjectNamedGetterINS_18V8HTMLEmbedElementEEEN2v86HandleINS2_5ValueEEENS2_5LocalINS2_6StringEEERKNS2_12AccessorInfoE fun:_ZN7WebCore18V8HTMLEmbedElement19namedPropertyGetterEN2v85LocalINS1_6StringEEERKNS1_12AccessorInfoE fun:_ZN2v88internal8JSObject26GetPropertyWithInterceptorEPNS0_10JSReceiverEPNS0_6StringEP18PropertyAttributes obj:* } - 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= Review URL: http://codereview.chromium.org/9403039 TBR=dmichael@chromium.org Review URL: https://chromiumcodereview.appspot.com/9540004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124138 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Really force-free NPObjects on Instance destruction.dmichael@chromium.org2012-02-297-19/+59
| | | | | | | | | | | | (There still seems to be a memory leak with this patch; I may have to check our NPObject reference counting next.) BUG=114023 TEST= Review URL: http://codereview.chromium.org/9403039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124106 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Add logging to pepper plugin loading.xiyuan@chromium.org2012-02-281-0/+6
| | | | | | | | | | | | | So that we could see whether those plugins would be related with the VMTests timed out. BUG=chromium-os:26646 TEST=none. Review URL: http://codereview.chromium.org/9477021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124053 0039d316-1c4b-4281-b951-d872f2087c98
* Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-284-3/+142
| | | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123852 Review URL: https://chromiumcodereview.appspot.com/9359048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124009 0039d316-1c4b-4281-b951-d872f2087c98
* - Raise the total JIT cap 128mb.jschuh@chromium.org2012-02-281-16/+57
| | | | | | | | | | | | - Add a 48mb cap for spikes over 8 minutes. - Increase the random hole to 512mb (to compensate for the higher cap). BUG=115658 BUG=113891 Review URL: https://chromiumcodereview.appspot.com/9447097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123882 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123852 - Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-284-140/+3
| | | | | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Review URL: http://codereview.chromium.org/9359048 TBR=garykac@chromium.org Review URL: https://chromiumcodereview.appspot.com/9478028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123878 0039d316-1c4b-4281-b951-d872f2087c98
* Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-284-3/+140
| | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Review URL: http://codereview.chromium.org/9359048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123852 0039d316-1c4b-4281-b951-d872f2087c98
* Whitelist Google Talk plug-in when turning on click-to-play.bauerb@chromium.org2012-02-271-13/+28
| | | | | | | | | | | This whitelists the plug-in the first time we switch the plug-in default setting from ALLOW to a different value. If it is already set to a different value, we do nothing. BUG=115472 TEST= Review URL: http://codereview.chromium.org/9456005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123751 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper support for several GL extensionsjbauman@chromium.org2012-02-261-0/+11
| | | | | | | | | | | | | Add support to the command buffer code generator to generate multiple pepper interfaces, and use that to generate interfaces for ANGLE_instanced_arrays, ANGLE_framebuffer_blit, ANGLE_framebuffer_multisample, CHROMIUM_enable_feature, and CHROMIUM_map_sub. BUG=93148 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123696 Review URL: https://chromiumcodereview.appspot.com/9420017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123702 0039d316-1c4b-4281-b951-d872f2087c98
* Separate out the broker from the pepper dispatcher.brettw@chromium.org2012-02-267-16/+15
| | | | | | | | | | | This separates out the broker impl from the pepper plugin disptacher impl and also a few helper classes. I also renamed everything to be more consistent with other delegates. Review URL: http://codereview.chromium.org/9429057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123698 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123696 - Add Pepper support for several GL extensionsjbauman@chromium.org2012-02-261-11/+1
| | | | | | | | | | | | | | Add support to the command buffer code generator to generate multiple pepper interfaces, and use that to generate interfaces for ANGLE_instanced_arrays, ANGLE_framebuffer_blit, ANGLE_framebuffer_multisample, CHROMIUM_enable_feature, and CHROMIUM_map_sub. BUG=93148 TEST= Review URL: https://chromiumcodereview.appspot.com/9420017 TBR=jbauman@chromium.org Review URL: https://chromiumcodereview.appspot.com/9466042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123697 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper support for several GL extensionsjbauman@chromium.org2012-02-261-1/+11
| | | | | | | | | | | Add support to the command buffer code generator to generate multiple pepper interfaces, and use that to generate interfaces for ANGLE_instanced_arrays, ANGLE_framebuffer_blit, ANGLE_framebuffer_multisample, CHROMIUM_enable_feature, and CHROMIUM_map_sub. BUG=93148 TEST= Review URL: https://chromiumcodereview.appspot.com/9420017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123696 0039d316-1c4b-4281-b951-d872f2087c98
* Split out the pepper audio delegates.brettw@chromium.org2012-02-255-17/+20
| | | | | | | | | | | This moves the audio input and output delegates into their own files. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9430034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123671 0039d316-1c4b-4281-b951-d872f2087c98
* Modified the flash cipboard interface to add html clipboard support.raymes@chromium.org2012-02-246-63/+186
| | | | | | | | | | | | This changes the way the interface works. To write data, the user now passes an array of data items, one for each format they want to write to the clipboard. When reading data, they specify the format they want to read. BUG=110796 TEST=./ui_tests --gtest_filter=*PPAPITest.*Clipboard* passes Review URL: http://codereview.chromium.org/9212066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123581 0039d316-1c4b-4281-b951-d872f2087c98
* Raise JIT cap and reduce scope of monitored page typesjschuh@chromium.org2012-02-242-38/+4
| | | | | | | | | BUG=115658 BUG=113891 Review URL: http://codereview.chromium.org/9465015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123570 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123362 - Revert 123177 - Significant refreshing of plug-in versions, ↵cevans@chromium.org2012-02-241-17/+27
| | | | | | | | | | | | | | | | | | etc. Also included: - Reflect deprecation of Silverlight 3, Reader 8. - Infobar the DivX plug-in. - Include new IcedTea v2 (JDK7 based) version. - More consistently list what we're up to date with. Review URL: https://chromiumcodereview.appspot.com/9372092 TBR=cevans@chromium.org Review URL: https://chromiumcodereview.appspot.com/9443036 TBR=cevans@chromium.org Review URL: https://chromiumcodereview.appspot.com/9465019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123526 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123177 - Significant refreshing of plug-in versions, etc. Also included:cevans@chromium.org2012-02-231-27/+17
| | | | | | | | | | | | | - Reflect deprecation of Silverlight 3, Reader 8. - Infobar the DivX plug-in. - Include new IcedTea v2 (JDK7 based) version. - More consistently list what we're up to date with. Review URL: https://chromiumcodereview.appspot.com/9372092 TBR=cevans@chromium.org Review URL: https://chromiumcodereview.appspot.com/9443036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123362 0039d316-1c4b-4281-b951-d872f2087c98
* Add a hard limit for Flash JIT pagesjschuh@chromium.org2012-02-231-7/+10
| | | | | | | | | | | | This includes a unique exception signature that I will monitor for crashes: http://crash/search?query=crash_reason%3A%22EXCEPTION_ACCESS_VIOLATION_WRITE%22+crash_address%3A%222880249322%22+product%3A%22Chrome%22 BUG=113891 Review URL: http://codereview.chromium.org/9442002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123205 0039d316-1c4b-4281-b951-d872f2087c98
* Significant refreshing of plug-in versions, etc. Also included:cevans@chromium.org2012-02-231-17/+27
| | | | | | | | | | - Reflect deprecation of Silverlight 3, Reader 8. - Infobar the DivX plug-in. - Include new IcedTea v2 (JDK7 based) version. - More consistently list what we're up to date with. Review URL: https://chromiumcodereview.appspot.com/9372092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123177 0039d316-1c4b-4281-b951-d872f2087c98
* Infobar the Mac DivX Web Player plugin.asvitkine@chromium.org2012-02-231-0/+6
| | | | | | | | | | BUG=115279 TEST=Open a page containing DivX content. Infobar should be displayed. Review URL: http://codereview.chromium.org/9431031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123151 0039d316-1c4b-4281-b951-d872f2087c98
* Exposed Listen and Accept methods to in-process plugins.ygorshenin@chromium.org2012-02-2210-5/+220
| | | | | | | | | | BUG=108277 TEST=UI test TestTCPServerSocketPrivate Review URL: http://codereview.chromium.org/9283022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123033 0039d316-1c4b-4281-b951-d872f2087c98
* Update Windows JRE version metadata.cevans@chromium.org2012-02-221-2/+2
| | | | | | | | | | | (Other versions to follow, I want an easily mergeable CL for the most important stuff). BUG=115227 TBR=bauerb Review URL: https://chromiumcodereview.appspot.com/9428020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122967 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetUsbKeyCode _Dev interface for Pepper key eventsgarykac@chromium.org2012-02-212-5/+5
| | | | | | | | | | | Remove CreatePPEvent since it isn't used anywhere. BUG=none TEST=none Review URL: http://codereview.chromium.org/9353013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122892 0039d316-1c4b-4281-b951-d872f2087c98
* [flaky fixlet] Reenabling TimeConversion.Time for Linuxdpapad@chromium.org2012-02-211-7/+1
| | | | | | | | | BUG=88971 TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9395062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122867 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Add a function to PPB_Flash to check if a rect is topmost.viettrungluu@chromium.org2012-02-185-2/+66
| | | | | | | | | | | | | This is needed for "Flash dialogs". This is dependent on https://bugs.webkit.org/show_bug.cgi?id=78166 . TEST=check the example plugin (under flash_topmost) Review URL: http://codereview.chromium.org/9369003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122686 0039d316-1c4b-4281-b951-d872f2087c98
* Work on improving PpbAudioConfig:RecommendSampleFrameCountnfullagar@google.com2012-02-185-0/+32
| | | | | | | | | | | | 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
* Rename PPB_Font to PPB_BrowserFont_Trusted.brettw@chromium.org2012-02-178-95/+23
| | | | | | | | | | | | | | | | | | | PPB_Font can never be exported to NaCl since it relies on in-process WebKit. So I'm renaming this to BrowserFont_Trusted to imply that this is the way that the browser would render fonts in the content area (if we export a font API to NaCl in the future, it will likely be a simpler native font API). The new API is binary compatible with the old font API, so I map PPB_Font to PPB_BrowserFont_Trusted for now to avoid breaking Flash (which uses this). When we update Flash and push it out, we can remove the mapping and PPB_Font. This does a lot of cleanup of the font implementation. It had complexity from the fact that it used to run on a different thread. I was able to remove a lot of code. Review URL: https://chromiumcodereview.appspot.com/9360045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122564 0039d316-1c4b-4281-b951-d872f2087c98
* Fix nested invocation of graphics 2D Flush.brettw@chromium.org2012-02-162-4/+9
| | | | | | | | | | | | | | | | | | | This fixes the Graphics 2D Flush ABORT callback to be a task instead of being executed in a nested context. Previously, this would cause crashes because you would get a paint message when destroying the paint manager. This new way will issue the callback later. In the case of the paint manager, the scoped callback factory will just drop the callback on the floor. I added a check in the paint manager code just in case we add future failure cases, we don't want to continue painting. BUG=http://crbug.com/108688 Review URL: http://codereview.chromium.org/9404019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122234 0039d316-1c4b-4281-b951-d872f2087c98
* Implement device enumeration for PPB_VideoCapture_Dev.yzshen@chromium.org2012-02-155-185/+258
| | | | | | | | | | | | | - 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
* Track (and eventually cap) Flash JIT sizejschuh@chromium.org2012-02-154-5/+161
| | | | | | | | BUG=113891 Review URL: http://codereview.chromium.org/9386003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122109 0039d316-1c4b-4281-b951-d872f2087c98
* Prefer ScopedNestableTaskAllower over manual save/restoredhollowa@chromium.org2012-02-143-12/+6
| | | | | | | | | | | | | | Cleanup. Changes various calls sites to use the ScopedNestableTaskAllower class to save/restore nestable task state. BUG=None TEST=Existing unit tests R=jar@chromium.org, scottbyer@chromium.org, sky@chromium.org, akalin@chromium.org, rsleevi@chromium.org, brettw@chromium.org, tony@chromium.org Review URL: https://chromiumcodereview.appspot.com/9384024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121914 0039d316-1c4b-4281-b951-d872f2087c98
* Make a global enum to differentiate impl & proxy.brettw@chromium.org2012-02-1425-54/+55
| | | | | | | | | | | Use this in resource constructors and remove all the old weird structs that we used to tell which one to call. This removes some extra code we had to deal with this. Review URL: http://codereview.chromium.org/9391013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121781 0039d316-1c4b-4281-b951-d872f2087c98
* Revert -Wformat workaround that should no longer be neccessary.thakis@chromium.org2012-02-111-4/+0
| | | | | | | | | | | | Clang got rolled again in r121610. BUG=111861 TEST=build with the 10.6 sdk TBR=rsesek Review URL: https://chromiumcodereview.appspot.com/9379034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121639 0039d316-1c4b-4281-b951-d872f2087c98
* Add error messages when plug-in loading fails.bauerb@chromium.org2012-02-102-6/+15
| | | | | | | | | | | | This is to debug the randomly-appearing "Missing Plug-in" messages. BUG=112185 TEST=none Review URL: http://codereview.chromium.org/9365022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121422 0039d316-1c4b-4281-b951-d872f2087c98
* Move the charset inteface to "trusted" (we can't implement this efficientlybrettw@chromium.org2012-02-091-0/+1
| | | | | | | | | | | | | | | in NaCl) and modify to no longer require the memory interface. This keeps the old interface and implements it in terms of the newer one. We can remove it when all callers have been updated. BUG= TEST= Review URL: http://codereview.chromium.org/9348069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121159 0039d316-1c4b-4281-b951-d872f2087c98
* Make inline c blocks non-greedy, and use to add pragma pack to gamepad structurescottmg@chromium.org2012-02-081-4/+6
| | | | | | | | | | | | Change the regex to non-greedy so that an idl file can have >1 "#inline c" blocks. Use that to bracket gamepad shared memory structure so that packing matches regardless of compiler settings/bitsize. This part is a temporary fix. The shared memory structure shouldn't be exposed in idl eventually anyway. BUG=113087 Review URL: https://chromiumcodereview.appspot.com/9348029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121000 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2012-02-081-2/+2
| | | | | | | | | | | | | CID_COUNT=13 CID=102812,102838,102863,102867,102875,102891,102906,102924,102947,102964, 103070,103246,103259 BUG=none TEST=none R=groby Review URL: https://chromiumcodereview.appspot.com/9307114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120913 0039d316-1c4b-4281-b951-d872f2087c98
* Infobar the NVIDIA 3D vision plug-ins.cevans@chromium.org2012-02-071-0/+5
| | | | | | | | BUG=113047 TBR=bauerb Review URL: https://chromiumcodereview.appspot.com/9348024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120832 0039d316-1c4b-4281-b951-d872f2087c98
* Tokenize Http headers on both /r and /n.bbudge@chromium.org2012-02-071-1/+1
| | | | | | | | | The new WebKit Http request header validation code fails if values contain /r. BUG=112901 TEST=manual Review URL: https://chromiumcodereview.appspot.com/9325075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120824 0039d316-1c4b-4281-b951-d872f2087c98
* Try to fix 10.6 build after clang revert.thakis@chromium.org2012-02-071-0/+4
| | | | | | | | | | BUG=111861 TEST=build with the 10.6 sdk TBR=rsesek Review URL: https://chromiumcodereview.appspot.com/9346020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120783 0039d316-1c4b-4281-b951-d872f2087c98
* Provide WillInitiatePaint() as well as DidInitiatePaint() and tweak semantics.wez@chromium.org2012-02-046-19/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* mac: Fix a clang todo.thakis@chromium.org2012-02-041-4/+0
| | | | | | | | | | BUG=111861 TEST=builds with the 10.6 sdk TBR=rsesek Review URL: http://codereview.chromium.org/9328023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120482 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_Flash_MessageLoop interface for Pepper Flash.yzshen@chromium.org2012-01-315-0/+178
| | | | | | | | | | | | Comparing with PPB_Flash.RunMessageLoop/QuitMessageLoop, this new interface avoids leaking nested message loops. If Quit() is not called to balance the call to Run(), the outermost message loop will be quitted when the resource is destroyed. BUG=109340 TEST=test_flash_message_loop.{h,cc} Review URL: http://codereview.chromium.org/9188045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119873 0039d316-1c4b-4281-b951-d872f2087c98
* The tricky part about logging to the console is that many of the errors are ↵brettw@chromium.org2012-01-317-64/+137
| | | | | | | | | | | | | | generated by invalid resources, from which we have no context. This means we don't know the instance to send the error message of. Plumbing this through in a way that works proved much harder than I expected. I added log functions to the PpapiGlobals so that we can call it easily from all places. It can either go off an instance (like PPB_Console does) or a module, or nothing. In the module case, all consoles associated with all instances in the module get the log message, in the no context case, all consoles associated with any pepper plugin get the message. In the IPC proxy, we know the module from whence the error came since there's a unique process for it. So proxied errors with no context when run out of process get translated into errors with PP_Module context. In the common case, there's only one instance for a module, so this works out nicely. I added some logging ability to resources and added some errors to Graphics2D and URLLoader. We can add messages to more classes as the need arises. I added some advice on writing them to the chromium pepper page. Review URL: https://chromiumcodereview.appspot.com/9160017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119853 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compiler error for builds without p2p_apisyfriedman@chromium.org2012-01-311-0/+2
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9297047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119813 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Suppress a false positive to fix the 10.6 sdk build.thakis@chromium.org2012-01-301-1/+5
| | | | | | | | | | BUG=111861 TEST=build with the 10.6 sdk TBR=bauerb Review URL: https://chromiumcodereview.appspot.com/9293009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119702 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed printing gets cut-off issue for CloudPrint and Chrome.gene@chromium.org2012-01-281-7/+9
| | | | | | | | | | | | Background: Print output is rendering to metafile that is based on the screen DC. The metafile was scaled to 72/600 for Chrome printing and 96/600 for CloudPrint. When the resolution of the screen is low and print output is large, it is possible for metafile output to go outside of the boundaries and be cut-off the print out. Fix: This CL calculates scaling dynamically based on the printer and metafile sizes and revert scaling correspondingly in the browser/service for the actual printout. BUG=chromium-os:16088 TEST=Verify Chrome and CloudPrint printing is working fine. Lower screen resolution (to 800x600 for Chrome, for CloudPrint it is enough to lower to 1280x800). Run Chrome and enable CloudPrint support. Try printing files from the bug 16088. Review URL: http://codereview.chromium.org/9288081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119546 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove static storage for variables in an unnamed namespace.jhawkins@chromium.org2012-01-283-10/+11
| | | | | | | | | | BUG=none TEST=none R=binji Review URL: https://chromiumcodereview.appspot.com/9271061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119535 0039d316-1c4b-4281-b951-d872f2087c98