| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
BUG=36803
TEST=none
Review URL: http://codereview.chromium.org/661086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40031 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/652161
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39852 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FBO rendering with glGetTexImage() into a TransportDIB that is then used as
a texture for rendering the final image in the render view in the browser.
While not optimal, it works and can be optimized later, after the new GPU
process work is completed.
This CL also enables stencil buffer support on the Mac. All the Pepper3D
demos run on the Mac with these changes.
BUG=none
TEST=3D rendering unit tests.
Review URL: http://codereview.chromium.org/647043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39744 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/650135
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39596 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=36265
TEST=See bug. Automated test will follow.
Review URL: http://codereview.chromium.org/650064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39492 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a speculative fix for a crash that showed up on the reliability bot.
R=jam
BUG=36188
TEST=none
Review URL: http://codereview.chromium.org/646051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39424 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/612003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39168 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=35856
TEST=none
Review URL: http://codereview.chromium.org/609003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39138 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Makes the code compile under NP_NO_QUICKDRAW and NP_NO_CARBON (modulo some gyp stuff that 64-bit builds will need to prevent compiling the shim library), and makes the tweaking of DYLD_INSERT_LIBRARIES 32-bit only.
Also removes a QuickDraw variable left over from an earlier version of the QuickDraw support.
BUG=none
TEST=none; supports future 64-bit compilation
Review URL: http://codereview.chromium.org/597053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39096 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Factors the code to allow popups from plugins if they are triggered by user action into a cross-platform method. Also moves some Windows-only code in the header into ifdefs.
BUG=none
TEST=Click on a plugin that should open a popup window. Without this patch, it worked only every other time on the Mac.
Review URL: http://codereview.chromium.org/593055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38853 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes two cases where message delays can cause the plugin painting system to use invalidation rects that are larger than the plugin is by the time they are handled.
BUG=35328
TEST=See bug.
Review URL: http://codereview.chromium.org/593063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38845 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=28131
TEST=covered by buildbot (no user-visible effect since the crash happens after the pages are closed)
Review URL: http://codereview.chromium.org/597027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38811 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
TBR=avi
Review URL: http://codereview.chromium.org/605001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38776 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Also moves DestroyInstance() into ~WebPluginDelegateImple, to match the other platforms, and unforks the now-similar PluginDestroyed (only Windows currently changes handle_event_depth_, so the behavior for Mac and Linux will be unchanged).
BUG=35074
TEST=Covered by existing plugin tests.
Review URL: http://codereview.chromium.org/604009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38775 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
Also, do case-insensitive search for "accept-ranges" since some servers use weird casings.
Review URL: http://codereview.chromium.org/603014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38744 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
WebPluginDelegateImpl::WindowedReposition or all plugins will be incorrectly moved to (0,0).
Review URL: http://codereview.chromium.org/577027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38691 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/600033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38629 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
window's scrollbars, etc.
BUG=none
TEST=none (ran Pepper test plugin, resized and scrolled window)
Review URL: http://codereview.chromium.org/595011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38546 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=29457,31767
TEST=self-testing
Review URL: http://codereview.chromium.org/580019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38417 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sends any window frame and relevent content view location changes to the plugin process via IPC, so that the plugin process always knows where the plugin is rather than only knowing when the mouse is within the plugin area. This will be necessary for supporting NPN_ConvertPoint, and for supporting Java2 as currently implemented.
Related changes:
- Now that window information is being sent on init and un-hide, use that to get correct initial window focus information.
- Add a missing window focus change notification uncovered by the above.
- Use live mouse location for idle events, instead of a cached location, now that we have live plugin frame information.
- Refactor and simplify the logic for moving the plugin.
Note that containing_window_frame_ is currently unused, but will be shortly for NPN_ConvertPoint, and is so closely related to the added IPC that I added it now rather than having to immediately change the new messages and functions.
BUG=34046,31858,31543,29457
TEST=Mouse tracking in Carbon plugins should still work correctly, even across window moves, info/bookmark bar show/hides, etc. (Automated tests of location tracking will follow shortly with full NPN_ConvertPoint implementation.)
Review URL: http://codereview.chromium.org/573015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38361 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ensure that removing any plugin from the idle event source during iteration is safe (not just the currently-firing plugin). Also bullet-proofs against the possibility of nested iteration.
Refactors the idle event source to use a helper class, to reduce duplicate code.
BUG=33467
TEST=Scroll rapidly on a page with multiple instances of a Cabon plugin.
Review URL: http://codereview.chromium.org/575023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38216 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
rename 'linux' files to 'posix' (and exclude them on mac)
Review URL: http://codereview.chromium.org/562023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38041 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Pepper APIs in Chrome. Specifically, we need to be able to get the base::SharedMemory
or TransportDIB memory regions used to communicate with devices. To enable doing this,
especially in 64-bit Chrome, I needed to change the GetStateContext and SetStateContext
functions to manipulate 64-bit values. This CL does not include the Native Client
hookup to the new APIs, but is needed to do so.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/569004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37975 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Initial port of GPU process / plugin to Mac OS X. Uses new IOSurface
APIs and therefore currently runs only on 10.6. Alternate strategy
will need to be devised for 10.5.
Slight UI issues remain such as GPU plugins initially showing up in
the wrong place on the page. These will be fixed in follow-on bugs.
Minimal changes made to command buffer code to get it to compile on
Mac OS X. Commented out use of nested anonymous namespaces in
gles2_cmd_decoder.cc which were causing the linker to crash with a seg
fault.
Refactored gyp files so the OS test enabling the GPU plugin is in one
place, common.gypi, and other files test only the variable enable_gpu.
Slight change to gles2_demo_cc.cc to add some simple animation to
verify that updates from the GPU plugin are reaching the screen.
Changed Pepper test plugin to use 3D view by default and commented out
use of audio context because of recent issues.
TEST=none (ran Pepper Test Plugin with 3D view enabled)
BUG=http://crbug.com/25988
Review URL: http://codereview.chromium.org/558035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37934 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes a leak of bundle resources (and prevents us from loading them at all in the common case).
BUG=34149
TEST=Visit about:plugins, then run lsof on the browser process; plugin .rsrc files should not show up in the list.
Review URL: http://codereview.chromium.org/565017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37898 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Watch for window minizing and app hiding so we know when pages aren't visible for reasons other than being in background tabs. Manually hide plugins in non-visible windows, as a temporary workaround for bug 34266.
BUG=30838
TEST=Minimize a window or hide the application while a Flash or Quicktime movie is playing; CPU usage should be the same as if it were in a background tab.
Review URL: http://codereview.chromium.org/563010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37851 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
BUG=34062
Review URL: http://codereview.chromium.org/561014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37849 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=32658
Review URL: http://codereview.chromium.org/557009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37748 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using the new notification:
- Update plugin clip rect when it's not in a visible tab.
- Update plugin idle event rate when it's not in a visible tab.
- Switch the unfocus-on-tab-switch event to be based on the this new notification, instead of a browser-level broadcast.
Related changes:
- Stop sending redundant focus events to plugins.
- Send window activation to Carbon event plugins too, not just Cocoa.
- Now that plugins are getting window and tab de-focus events directly, remove the older hack to force all plugins to lose focus any window or tab loses focus.
BUG=29371, 32229, 30838
TEST=Flash should still only register keystrokes when it is in the active window+tab. Plugins in background tabs should use less CPU.
Review URL: http://codereview.chromium.org/548224
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37743 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This gives plugins mostly correct window activation information; there are still a few loose ends like initial focus state and changes that happen while plugins are in background tabs, but those will be handled in follow-up bugs.
BUG=31847
TEST=Plugins that are in background windows should act accordingly (e.g., Silverlight hover effects shouldn't trigger)
Review URL: http://codereview.chromium.org/549194
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37694 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
BUG=31880
Review URL: http://codereview.chromium.org/558036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37555 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=33467
TEST=Scroll a Carbon plugin on and off screen repeatedly; it should not crash.
Review URL: http://codereview.chromium.org/556078
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37539 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=31846
TEST=None (automated tests will follow once the event-faking infrastructure is in place on the Mac)
Review URL: http://codereview.chromium.org/555107
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37210 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=32996
TEST=Mouseover and drag should work correctly in Google Earth and Flash 10.1.
Review URL: http://codereview.chromium.org/551154
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37204 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This matches Mozilla, which uses ~/.mozilla/plugins.
BUG=22261
TEST=watch an strace, see that it hits the appropriate dir when loading plugins
Review URL: http://codereview.chromium.org/553102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37201 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Restore the pre-reorganization order of these calls, since they make more sense this way.
Probably not actually the cause of bug 32749, but it's *possible* that events were getting in at the wrong time and causing the plugin to behave badly.
BUG=32749
TEST=none
Review URL: http://codereview.chromium.org/556015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37079 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The latest version crashes, so we'll blacklist it until we can fix it.
Also removes the whitelist code, since we'll only be using blacklist mode from here on out.
BUG=25690
TEST=Install DivX plugin, and go to about:plugins; DivX should not be listed.
Review URL: http://codereview.chromium.org/553072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37040 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When move.rects_valid is false, we shouldn't look at the rects included
in the structure.
I am pretty sure the previous code was incorrect, but I am not sure why this
started mattering. I know that plugins stopped displaying, but when I found
the regression window and reverted the change that first caused it, the problem
still happened. It seems probable that another change that occurred while this
was regressed broke it further.
BUG=32965
Review URL: http://codereview.chromium.org/549149
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37033 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=http://crbug.com/32703
TEST=when hiding cursor (Flash 10.0), cursor hides (but doesn't stay hidden; that gets fixed later)
Review URL: http://codereview.chromium.org/552132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37028 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
plugins since we do not unload them now, thus they already show up in the module list.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/551122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36937 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Ensure that we don't use a context that's no longer valid
BUG=32773
TEST=Toggle YouTube videos between normal and expanded size.
Review URL: http://codereview.chromium.org/555038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36792 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This makes two notable changes:
- Plugins that are scrolled completely out of view will get an empty clip rect now.
- Carbon Plugins that are scrolled completely out of view will get idle events at a lower rate.
Also removes code to compute title bar offset, which is now cruft since the dummy window is chromeless.
BUG=30838
TEST=Plugins should continue to draw smoothly when visible, and audio should not be interrupted when they are scrolled out of view.
Review URL: http://codereview.chromium.org/543156
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36776 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Run all instances of a given plugin off of the same idle event source, rather than having each instance generating a constant event stream.
The performance win is probably negligeable now, but will be more important as other improvements are made, and it simplifies the shutdown logic.
BUG=none
TEST=Carbon-based plugins (Flash 10.0, QuickTime, etc.) should continue to play video smoothly.
Review URL: http://codereview.chromium.org/543143
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36758 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until we have real window activation status, just send a window focus event so that Cocoa plugins always think their window is active (as is currently the case with Carbon plugins).
Also wire up the Carbon interposing on window activation checks to talk to the delegate, so once the delegate has correct information Carbon will Just Work.
BUG=31847
TEST=Flash 10.1 should track the mouse when the plugin is loaded, without having to click in it first.
Review URL: http://codereview.chromium.org/552067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36754 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=http://crbug.com/20717
TEST=as in bug; this covers new Flash
Review URL: http://codereview.chromium.org/554003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36554 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
fake windows.
BUG=http://crbug.com/20717
TEST=none; no visible change
Review URL: http://codereview.chromium.org/549085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36533 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=http://crbug.com/20717
TEST=as in bug; this covers old Flash
Review URL: http://codereview.chromium.org/550062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36416 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Not all plugins reliably report whether they have handled events; other Mac browsers don't allow clicks to "fall through" plugins (see for example WebNetscapePluginEventHandlerCarbon::mouseDown, which logs but discards the return value), so we'll do the same.
BUG=31358
TEST=Double-click in a plugin; it should not get a selection highlight.
Review URL: http://codereview.chromium.org/549067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36361 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TESTS=none
Review URL: http://codereview.chromium.org/546041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36264 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whitelist the Google Earth plugin on the Mac
Move QuakeLive from the blacklist to the whitelist
BUG=24788
TEST=For Google Earth, no change (but if we switch back to blacklist by default it will still load). For Quake Live, visit quakelive.com with a spoofed Safari UA, and play.
Review URL: http://codereview.chromium.org/542066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36242 0039d316-1c4b-4281-b951-d872f2087c98
|