diff options
author | dglazkov <dglazkov@chromium.org> | 2016-02-01 20:46:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-02 04:54:46 +0000 |
commit | afc918de00a2f2895b4d8eaf3a043e654ba5e8fb (patch) | |
tree | 063d830781789286f6ea25bfd2ec567e547840ac /blimp/client/session/assignment_source.cc | |
parent | de07d5638897139acffc67cdb4142cee4f912e3a (diff) | |
download | chromium_src-afc918de00a2f2895b4d8eaf3a043e654ba5e8fb.zip chromium_src-afc918de00a2f2895b4d8eaf3a043e654ba5e8fb.tar.gz chromium_src-afc918de00a2f2895b4d8eaf3a043e654ba5e8fb.tar.bz2 |
Switch the page-capturing machinery to use the new hooks.
This is a timing-changing patch. Here are the details:
* The page text capture machinery no longer uses archaic timers to determine the best time to grab the text from the the document. Instead, it relies on the MeaningfulLayout signals that are coming from Blink.
* These signals are keyed off the compositor putting up frames, which has an interesting side effect -- at least on some platforms (CrOS and Linux), this signal will not be issued until document/frame/tab is active, which is perfectly fine for our purposes.
* As a side comment, we should probably unify our position on whether compositor puts up frames for inactive tabs.
* As another side comment, this would help simplify the logic in translate bubbles that watches for tab to become active.
* In many cases, the timing is much shorter than before, especially for smaller pages. This is good (faster!), but also means that some tests had to be tweaked to start listening for language detection notifications a bit earlier.
* Fundamentally, this is a change in timing, not behavior, so the existing test coverage seemed sufficient.
* The new plumbing is still incompatible with out-of-process iframes (OOPIF) and will need to be fixed up accordingly.
BUG=521166
R=jam,andrewhayden,jochen
Review URL: https://codereview.chromium.org/1398823004
Cr-Commit-Position: refs/heads/master@{#372891}
Diffstat (limited to 'blimp/client/session/assignment_source.cc')
0 files changed, 0 insertions, 0 deletions