| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
BUG=351835
Review URL: https://codereview.chromium.org/226473006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263181 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
A little bit of code cleanup. Removing an unused parameter in BrowserPlugin.
BUG=none
Review URL: https://codereview.chromium.org/104923003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238881 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This CL updates all references to the WebKit namespace in content.
TBR=darin@chromium.org
BUG=295096
Review URL: https://codereview.chromium.org/63253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233513 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL allocates a creates unique instance id for each
<webview> in an embedder RenderView/shim instead of in BrowserPlugin. In a subsequent CL, this will permit
usage of the WebRequest API prior to attachment to the DOM.
This CL also fixes a potential crash on edit commands if the instance ID passed did not exist: Perhaps open two <webview> apps and then close the first one, then send edit commands to the second one.
BUG=178663
Test=WebViewTest.*, WebViewInteractiveTest.*
TBR=cdn@chromium.org for deleted field in browser_plugin_messages.h
Review URL: https://chromiumcodereview.appspot.com/21930006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215807 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to allow adding WebRequest event listeners prior to attachment,
the listeners must be associated with a particular BrowserPlugin instance
rather than a guest instance (there may initially be no guest instance).
This is the first of a few patches to resolve this. This patch is essentially
a minor refactor/renaming of mehtods/variables to introduce the new notion
of a Browser Plugin instance ID v.s. the existing notion of a guest instance ID.
Subsequent patches will associate <webview> WebRequest API event listeners with
a BrowserPlugin instance ID rather than a guest instance ID. Upon attachment,
the browser process becomes aware of the BrowserPlugin instance ID to guest
instance ID mapping.
Note: A particular BrowserPlugin is uniquely identified by a
(process ID, routing ID, instance ID) tuple.
BUG=171421
Review URL: https://chromiumcodereview.appspot.com/15664010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203310 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BrowserPluginManager
This patch is a step towards enabling window.open.
How it works:
1. On the initial navigation, BrowserPlugin asynchronously requests a new Instance ID from the browser process.
2. The request and response BrowserPluginHostMsg_AllocateInstanceIDRequest, and BrowserPluginMsg_AllocateInstanceIDResponse are managed by BrowserPluginManager.
3. Once the browser process has allocated an instance ID and relayed it to BrowserPlugin, then BrowserPlugin collects all the current state of BrowserPlugin and stores it in a BrowserPluginHostMsg_CreateGuest_Params struct and ships it to the browser process using the new instance ID to create a new guest with that initial state. Initial state includes the current value of the src attribute.
4. Once BrowserPlugin has an instance ID, it will begin sending IPCs to the browser process as state changes, rather than merely accumulating state changes in member variables.
BUG=140316
Test=BrowserPluginHostTest.*, BrowserPluginTest.*, WebViewTest.*
Review URL: https://chromiumcodereview.appspot.com/11956022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178167 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Less platform-specific code.
2. Use base::SharedMemory instead of TransportDIB.
3. Use scoped_ptr<base::SharedMemory> to simplify cleanup logic.
4. More validity checks
BUG=166708
Test=Windows, Mac, Linux, BrowserPluginTest.*, BrowserPluginHostTest.*
Review URL: https://chromiumcodereview.appspot.com/11571083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174332 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Resize state is grouped into two sets of params:
BrowserPluginHostMsg_AutoSize_Params
BrowserPluginHostMsg_ResizeGuest_Params
As suggested by the names, the former is autosize state and the latter is standard resize state.
This patch enables asynchronous resize and autosize state pushes to the guest process from BrowserPlugin. It also supports flow control of these state pushes.
When updated autosize or resize state is pushed to the guest, the guest responds with a ViewHostMsg_UpdateRect that is then propagated to the BrowserPlugin via a BrowserPluginMsg_UpdateRect message.
When BrowserPlugin is resized, if there is no pending state push without an associated UpdateRect, then BrowserPlugin allocates an appropriately sized damage buffer |pending_damage_buffer_| and issues an asynchronous "SetAutoSize" or "ResizeGuest" to the browser process with a handle to the new damage buffer.
Every UpdateRect the BrowserPlugin receives holds a handle to the damage buffer that was used to copy pixels over to the embedder. Once the browser process begins to use the |pending_damage_buffer_| then the current damage buffer is dropped and the pending buffer becomes the current buffer.
If resize or autosize state changes in BrowserPlugin while there's a pending damage buffer, then no additional resize messages get sent. Instead, BrowserPlugin waits until an UpdateRect arrives that uses the pending buffer before pushing new state to the browser process, and guest.
BUG=155915
Review URL: https://chromiumcodereview.appspot.com/11369185
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169534 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This would fix guest painting in: set no src + resize + navigate to src case.
Without this change, for the scenario above, we don't get any dib at all from
embedder upon setting the non-empty src. Now we also ship dib on NavigateGuest
if necessary. This dib is the last accumulated dib from updateGeometry().
Note that our unit test exercises this case, but doesn't look for correct
painting, it only expects UpdateRect to be called with correct size. I've updated the test now to look for correct sized damage buffer instead.
BUG=151948
TEST= Create an empty src guest and keep changing its size in
SetInterval from the embedder, then in the middle set a non-empty src. Observed
that guest paints correctly with final size. Updated unit test to look for damage buffer with correct size instead of looking for UpdateRect with correct size.
Review URL: https://chromiumcodereview.appspot.com/10965048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159404 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=140306
Tested: Added new browser tests!
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150654
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150863
Review URL: https://chromiumcodereview.appspot.com/10830072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150956 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=140306
Tested: Added new browser tests!
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150654
Review URL: https://chromiumcodereview.appspot.com/10830072
TBR=fsamuel@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10827257
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150873 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=140306
Tested: Added new browser tests!
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150654
Review URL: https://chromiumcodereview.appspot.com/10830072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150863 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=140306
Tested: Added new browser tests!
Review URL: https://chromiumcodereview.appspot.com/10830072
TBR=fsamuel@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10832219
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150681 0039d316-1c4b-4281-b951-d872f2087c98
|
|
BUG=140306
Tested: Added new browser tests!
Review URL: https://chromiumcodereview.appspot.com/10830072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150654 0039d316-1c4b-4281-b951-d872f2087c98
|