Leonardocezary / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
1 stars 1 forks source link

Update to CEF version 3.2171 #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently JCEF uses the CEF version 3.1916.1749.
It is advisable to update to the latest stable CEF-3 Release Branch-2171.

Attached you'll find a patch file, which updates to CEF version 3.2171.1880.

Important note:
---------------
I've added the CefPrintHandler and its required classes to the java code.
Those classes are required to provide print support on Linux.
Due I've no running Linux distribution this code parts are untested and have to
be tested (and maybe adapted) by someone else (Marshall, can you do this?).
Same is true for the Linux build settings within jcef.gyp.

Changes are tested on Mac OS X 10.9 (64-Bit) and Windows 7 (64-bit)

Important changes (Java and its native counterparts)
----------------------------------------------------
- Modified return value for 
CefGeolocationHandler.onRequestGeolocationPermission(..) from void to boolean
- Added optional param "Point inspectAt" to CefBrowser.getDevTools()
- Added new method CefBrowser.replaceMisspelling(String word);
- Removed obsolete param "Rectangle rect" from CefBrowser_N.invalidate()
- Added new method String CefContextMenuParams.getMisspelledWord()
- Added new method int CefContextMenuParams.getMisspellingHash()
- Added new method boolean 
CefContextMenuParams.getDictionarySuggestions(Vector<String> suggestions)
- Removed obsolete method boolean CefContextMenuParams.isSpeechInputEnabled()
- Added new method boolean CefContextMenuParams.isSpellCheckEnabled()
- Added new values to enum CefMenuModel.MenuId for the spellcheck support
- Added new Class CefPrintHandler (print support on Linux)
- Added new Class CefPageRange (print support on Linux)
- Added new Class CefPrintSettings (print support on Linux)
- Added new Class CefPrintDialogCallback (print support on Linux)
- Added new Class CefPrintJobCallback (print support on Linux)
- Added new method CefAppHandler.getPrintHandler() (print support on Linux)
- Added two new values to enum CefRequest.ResourceType (RT_PING, 
RT_SERVICE_WORKER)
- Removed obsolete request flag CefRequest.UR_FLAG_REPORT_LOAD_TIMING
- Added spellcheck example to bookmarks (client://tests/spellcheck.html)
- Added resources cef_100_percent.pak, cef_200_percent.pak, libpdf.so 
(PDF.plugin, pdf.dll)
- Removed obsolete resource libplugin_carbon_interpose.dylib (on Mac)

Important changes (native only)
-------------------------------
- Modified CefURLRequest_N.cpp to use MUTEX macros instead of the removed 
CefCriticalSection
- Removed macro calls to deprecated IMPLEMENT_LOCKING(...)
- Added base::Lock lock_ - if required
- Replaced AutoLock lock_scope(this) with base::AutoLock lock_scope(lock_) - if 
required
- Added GetJNIPageRange(..), NewJNIPageRange(..) and GetJNISize(..) to jni_util
- Updated cef/README.jcef to point to CEF version 3.2171.1880
- Updated README files for make_distrib
- Updated make_all_jni_headers scripts
- Updated make_distrib script to include the pdf viewer library

Original issue reported on code.google.com by k...@censhare.de on 23 Oct 2014 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I'll take a look at the Linux side. The 2171 branch isn't stable yet so 
I think we should update to 2062 for now. 2062 and 2171 have the same API 
currently so no changes should be required to your patch (other than updating 
README.jcef accordingly).

Original comment by magreenb...@gmail.com on 24 Oct 2014 at 5:16

GoogleCodeExporter commented 9 years ago
Hi Marshall,
thanks for that. Branch 2062 will be fine.

Regards,
Kai

Original comment by k...@censhare.de on 27 Oct 2014 at 9:05

GoogleCodeExporter commented 9 years ago
@#1: Given where we are now with 2171 branch stability I think it's OK for us 
to target that release. I've made a few additional changes:

- Include wow_helper.exe in Windows binary distributions if it exists (32-bit 
distributions only).
- Remove unnecessary locking in jcef_helper.cpp.
- Work around off-screen rendering bug (CEF issue #1419) by setting 
|browser_rect_| to a non-empty initial size in CefBrowserOsr.
- Various minor style fixes.

I've filed a separate issue #136 to implement CefPrintHandler on Linux.

Changes committed in revision 111.

Original comment by magreenb...@gmail.com on 20 Nov 2014 at 8:40

GoogleCodeExporter commented 9 years ago
Linux compile errors fixed in revision 112. A working Linux implementation is 
blocked on these CEF issues:

- Crash on startup in BitmapContentLayerUpdater 
https://code.google.com/p/chromiumembedded/issues/detail?id=1446
- Get cursor ID from OnCursorChange notification 
https://code.google.com/p/chromiumembedded/issues/detail?id=1443

Original comment by magreenb...@gmail.com on 20 Nov 2014 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 20 Nov 2014 at 10:57