summaryrefslogtreecommitdiffstats
path: root/android_webview
Commit message (Collapse)AuthorAgeFilesLines
* Handle LibraryLoader error from the renderer process.yfriedman@chromium.org2013-03-071-2/+5
| | | | | | | | | | | | | | | | | If we fail to load the library in the renderer process, just abort early. This prevents an extra user-visible dialog that Chrome has crashed. Note that we currently assume the browser process hits the same error and will prompt the user. If this only happens for the renderer process we'd end up with a hung tab, but it's not clear how that would happen. As part of this, convert the RESULT_CODES enum to be generated from a template so that we can re-use the same values for C++ and Java BUG=180054 Review URL: https://chromiumcodereview.appspot.com/12464004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186610 0039d316-1c4b-4281-b951-d872f2087c98
* Fix page scaling in Android Webview SW rendering.leandrogracia@chromium.org2013-03-062-15/+65
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12310136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186532 0039d316-1c4b-4281-b951-d872f2087c98
* Make the UI an observer of downloads.asanka@chromium.org2013-03-062-7/+0
| | | | | | | | | | | This relieves content/browser/download from knowing who/when to notify regarding a new download. BUG=147753 Review URL: https://chromiumcodereview.appspot.com/11640007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186458 0039d316-1c4b-4281-b951-d872f2087c98
* Disable testGetVideoLoadingProgressView Android webview test.jknotten@chromium.org2013-03-061-2/+7
| | | | | | | | | | | | This test is failing on the bots, disable it until a fix can be made. TEST=org.chromium.android_webview.test.AwContentsClientGetVideoLoadingProgressViewTest#testGetVideoLoadingProgressView BUG=180575 Review URL: https://chromiumcodereview.appspot.com/12534004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186453 0039d316-1c4b-4281-b951-d872f2087c98
* Enable cookies by defaultkristianm@chromium.org2013-03-061-1/+1
| | | | | | | | | | | | This matches the old android webview Bug=7890385 BUG= Review URL: https://chromiumcodereview.appspot.com/12506005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186419 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Test for font size changes w/o reloading the pagemnaganov@chromium.org2013-03-061-15/+47
| | | | | | | | | Changes to LayoutAlgorithm and TextZoom should be applied immediately, not on the next page reload. Modify the tests to verify this behavior. Review URL: https://codereview.chromium.org/12438002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186393 0039d316-1c4b-4281-b951-d872f2087c98
* [android_view] Implementation of WebChromeClient.getVideoLoadingProgressViewmichaelbai@chromium.org2013-03-066-0/+173
| | | | | | | | | BUG=http://b/6294738 Review URL: https://chromiumcodereview.appspot.com/12393060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186376 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 186347jochen@chromium.org2013-03-066-24/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke MalwareDetailsTest: [ RUN ] MalwareDetailsTest.HTTPCache Received signal 11 SEGV_MAPERR 00010000001e [0x00000285f2ee] base::debug::StackTrace::StackTrace() [0x00000285f3f6] base::debug::(anonymous namespace)::StackDumpSignalHandler() [0x7f5274c148f0] <unknown> [0x0000028a82f7] base::SupportsUserData::GetUserData() [0x00000215307f] (anonymous namespace)::GetDataForResourceContext() [0x00000215315c] InstantIOContext::RemoveInstantProcessOnIO() [0x000002881dd9] MessageLoop::RunTask() [0x00000288261b] MessageLoop::DeferOrRunPendingTask() [0x000002882c28] MessageLoop::DoWork() [0x000002853f4a] base::MessagePumpLibevent::Run() [0x00000287d8f2] MessageLoop::RunInternal() [0x00000289966d] base::RunLoop::Run() [0x00000287cca5] MessageLoop::Run() [0x0000042ee488] content::BrowserThreadImpl::IOThreadRun() [0x0000042ef28b] content::BrowserThreadImpl::Run() [0x0000028b4d88] base::Thread::ThreadMain() [0x0000028afc01] base::(anonymous namespace)::ThreadFunc() [0x7f5274c0b9ca] start_thread [0x7f5272728cdd] clone > Add chrome-search: access from Instant overlay > > Enables the Instant NTP page access to: > chrome-search://theme/*, > chrome-search://favicon/*, and > chrome-search://thumb/*. > > This CL has a number of aspects to make the installed theme > background image available to the Instant overlay: > 1. Utilizes the new chrome-search: scheme that is accessible only > to the Instant overlay's render process. This is enforced > on the renderer side by WebKit::WebSecurityPolicy > facilities. This is enforced on the browser side by the > InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. > 2. Whitelists the chrome-search://theme origin to be made > available to the specific Instant overlay's origin/url. > 3. Backend CSS that sets the appropriate background image > that resides in the chrome-search://theme origin. > 4. A small refactoring of the Instant tests to support mix-in > usage of InstantTestBase. > > BUG=172408, 134937 > TEST=InstantPolicyTest.SearchSchemePolicy > R=sreeram@chromium.org, creis@chromium.org > > > Review URL: https://chromiumcodereview.appspot.com/11896113 TBR=dhollowa@chromium.org Review URL: https://codereview.chromium.org/12521005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186371 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome-search: access from Instant overlaydhollowa@chromium.org2013-03-066-138/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables the Instant NTP page access to: chrome-search://theme/*, chrome-search://favicon/*, and chrome-search://thumb/*. This CL has a number of aspects to make the installed theme background image available to the Instant overlay: 1. Utilizes the new chrome-search: scheme that is accessible only to the Instant overlay's render process. This is enforced on the renderer side by WebKit::WebSecurityPolicy facilities. This is enforced on the browser side by the InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. 2. Whitelists the chrome-search://theme origin to be made available to the specific Instant overlay's origin/url. 3. Backend CSS that sets the appropriate background image that resides in the chrome-search://theme origin. 4. A small refactoring of the Instant tests to support mix-in usage of InstantTestBase. BUG=172408, 134937 TEST=InstantPolicyTest.SearchSchemePolicy R=sreeram@chromium.org, creis@chromium.org Review URL: https://chromiumcodereview.appspot.com/11896113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186347 0039d316-1c4b-4281-b951-d872f2087c98
* Call mContentViewCore.onPhysicalBackingSizeChanged in AwContentsboliu@chromium.org2013-03-051-0/+2
| | | | | | | | | | | Android webview test fix after crrev.com/179778 TBR=joth BUG= Review URL: https://codereview.chromium.org/12412002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186094 0039d316-1c4b-4281-b951-d872f2087c98
* Add StoragePartition::StorageMask for ClearData methodsboliu@chromium.org2013-03-052-50/+23
| | | | | | | | | | | | | Android WebView has some storage clear methods are based on different conditions than what is exposed already in StoragePartition. But all the underlying logic is already implemented. So just add a mask parameter to the existing methods to for this flexibility. BUG= Review URL: https://chromiumcodereview.appspot.com/12317062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186080 0039d316-1c4b-4281-b951-d872f2087c98
* Disable flaky AwQuotaManagerBridgeTest testsboliu@chromium.org2013-03-051-0/+9
| | | | | | | | | | | | See bug for details BUG=180061 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12393061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186047 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Turn off "double-tap-to-zoom" together with UseWideViewportmnaganov@chromium.org2013-03-041-0/+58
| | | | | | | | | | | | | | Android WebView classic disables the "double-tap-to-zoom" gesture when WebSettings.UseWideViewport is disabled. Currently, for Android "double-tab-to-zoom" is always enabled. This patch makes the setting controllable from the browser side and updates it appropriately. Review URL: https://chromiumcodereview.appspot.com/12330172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185909 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Make page scale dependent of the screen densitymnaganov@chromium.org2013-03-047-13/+65
| | | | | | | | | | | | Legacy WebView returns page scale multiplied by the screen density from WebView.getScale and WebViewClient.onScaleChanged. Symmetrically, it expects the scale passed to WebView.setInitialScale also to be multiplied by the screen density value. Review URL: https://chromiumcodereview.appspot.com/12386049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185889 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Fix paths to generated files after r185702mnaganov@chromium.org2013-03-041-5/+5
| | | | | | | | | | | NOTRY=true R=torne@chromium.org Review URL: https://chromiumcodereview.appspot.com/12398006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185888 0039d316-1c4b-4281-b951-d872f2087c98
* [android_view] Add MediaPlaybackRequiresUserGesture content setting.michaelbai@chromium.org2013-03-033-0/+185
| | | | | | | | | | | Also add unit test which doesn't use the poll. BUG=b/6842070 TBR=joi Review URL: https://chromiumcodereview.appspot.com/12224112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185794 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Add simple support for remote web debuggingmnaganov@chromium.org2013-03-015-0/+182
| | | | | | | | | | | | | | | This is a non-final way of exposing web debugging for WebView, but it is extremely useful for anyone who needs to debug its web content in the new version of WebView. This patch unconditionally exposes 'webview_devtools_remote_<pid>' linux abstract socket for remote debugging. The DevTools frontend is already being bundled with WebView, so this patch doesn't add any new resources. Review URL: https://codereview.chromium.org/12378011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185543 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for CookieManager init race conditionjoth@chromium.org2013-03-015-19/+30
| | | | | | | | | | | | | | | | | As the cookiemanager can be used at any time from any thread, we need to ensure it is constructed early in startup, synchronously to the AndroidBrowserProcess.init() call. This rolls back a little of the change made in http://src.chromium.org/viewvc/chrome/trunk/src/android_webview/browser/net/init_native_callback.h?view=diff&r1=174173&r2=174174 (intenral issue b/8249158) BUG= Review URL: https://chromiumcodereview.appspot.com/12387028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185462 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Expose resetScrollAndScaleState from AwSettingsmnaganov@chromium.org2013-02-287-19/+20
| | | | | | | | | | As joth@ has suggested, let's not expose AwContents to ContentSettingsAdapter, so make resetScrollAndScaleState available on AwSettings instead. Review URL: https://chromiumcodereview.appspot.com/12374012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185334 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ClearHistoryTest#testClearHistoryboliu@chromium.org2013-02-281-0/+6
| | | | | | | | | | | | | This test is failing on JB only bots. See bug for details. TBR=joth@chromium.org NOTRY=true BUG=178762 Review URL: https://chromiumcodereview.appspot.com/12379016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185265 0039d316-1c4b-4281-b951-d872f2087c98
* Try to unbreak FindBugs on the android bot after r185236thakis@chromium.org2013-02-281-1/+0
| | | | | | | | | | | | | The bot is red with: M D DLS: Dead store to contentViewCore in org.chromium.android_webview.test.AwSettingsTest.testSetInitialScale() At AwSettingsTest.java BUG=none TBR=mnaganov NOTRY=true Review URL: https://codereview.chromium.org/12383024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185245 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebView.setInitialScalemnaganov@chromium.org2013-02-289-0/+103
| | | | | | | | | | WebView.setInitialScale allows to set up the initial page scale which overrides viewport meta tag settings. Review URL: https://chromiumcodereview.appspot.com/12315104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185236 0039d316-1c4b-4281-b951-d872f2087c98
* This is a no-op CL (with exceptions of int->float switch and the units used ↵aruslan@chromium.org2013-02-273-9/+21
| | | | | | | | | | | | | | | | | | | for scrolling). All necessary fixes for incorrect units/transforms had been already landed. - Removed ScheduleUpdateFrameInfo() and SendUpdateFrameInfo(). - Extracted a RenderCoordinates utility class that caches the floating point frame info received from the renderer. - Scroll offset/extent/range are now in physical pixels. - Clarified and unified unit conversions (pix vs css vs dp) where reasonable. - Switched CompositorFrameInfo to use floats and changed ContentViewCore accordingly where feasible. BUG=174102, 175499, 175497 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12278024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185077 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Update WebView.EnableFixedLayoutMode in sync with ↵mnaganov@chromium.org2013-02-2711-12/+88
| | | | | | | | | | | | | | | | | | | ViewportEnabled After WebKit http://trac.webkit.org/changeset/143735, WebView.EnableFixedLayoutMode must be updated together with WebSettings.ViewportEnabled. This is a temporary state of affairs, one of these settings will be removed in future. Only Android WebView needs to switch thid mode dynamically, thus the change is implemented in the android_webview layer. BUG=177684 Review URL: https://chromiumcodereview.appspot.com/12317071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185016 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: fix mac builds.torne@chromium.org2013-02-271-2/+2
| | | | | | | | | | | | | | The Android build system calls it "darwin", not "mac"; fix makefile names appropriately. The --host-os switch is unaffected as that's handled by chromium's gyp files which do call it "mac". BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12319149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184975 0039d316-1c4b-4281-b951-d872f2087c98
* Return empty Picture objects for empty SkPictures.leandrogracia@chromium.org2013-02-272-1/+8
| | | | | | | | | | | | | The current code is not properly handling the empty vs NULL Picture case. Fix this to prevent trying to create empty auxiliary bitmaps, which raises Java exceptions. BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12340105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184943 0039d316-1c4b-4281-b951-d872f2087c98
* Implement TODO: make onReceivedSslError abstract now it has rolled downstream.sgurun@chromium.org2013-02-271-2/+1
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12334097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184834 0039d316-1c4b-4281-b951-d872f2087c98
* Create java AwBrowserContextkristianm@chromium.org2013-02-273-3/+74
| | | | | | | | | | | | This will allow all the singleton object (geolocation, cookie manager etc) instances to be collected together by their logical association. BUG= Review URL: https://chromiumcodereview.appspot.com/12313055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184788 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: generate more makefiles.torne@chromium.org2013-02-261-2/+8
| | | | | | | | | | | | | | Generate makefiles for all combinations of {linux,mac} host and {arm,x86} target, to cover the supported Android system build targets. Use a subshell for each so they don't contaminate the environment. BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12316122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184649 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Webviewclient.onReceivedSslErrorsgurun@chromium.org2013-02-2619-47/+475
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12091111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184643 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebSettings.{get|set}LoadWithOverviewModemnaganov@chromium.org2013-02-2611-23/+199
| | | | | | | | | | | The 'LoadWithOverviewMode' setting controls, whether the page needs to be scaled to fit contents into the viewport. Chrome on Android always adjusts page scale to fit contents. We need to make this behavior controllable. Review URL: https://chromiumcodereview.appspot.com/12217134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184631 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebContents methods that duplicate WebContentsView methods.jam@chromium.org2013-02-261-1/+2
| | | | | | Review URL: https://codereview.chromium.org/12334073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184598 0039d316-1c4b-4281-b951-d872f2087c98
* Pass Resourcetype to AllowCertificateError callbacksgurun@chromium.org2013-02-252-0/+2
| | | | | | | | | | | BUG= Unlike the browser, the Chromium based webview needs to process and pass SslErrors to the application even for the non-Main-Frame resource types. This change creates the plumbing for that. Review URL: https://chromiumcodereview.appspot.com/12207071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184483 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-243-3/+3
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Implement WebStorage API methodsboliu@chromium.org2013-02-2220-37/+1013
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the methods involves calling methods to QuotaManager on the IO thread and translating the arguments between Java and native code. Introduce AwQuotaManagerBridge to facilitate this logic. The Java AwQuotaManagerBridge is currently a singleton but should be owned by AwBrowserContext when we have one. The native one is owned by native AwBrowserContext. Java calls the corresponding native AwBrowserContext to obtain the pointer. Introduced JniDependencyFactory interface used to create native objects under native but is used or passed in BrowserContext or ContentsBrowserClient. Also added base::android::ToJavaLongArray to convert to Java long arrays. BUG= Android only change. Ran through android bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12253057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184139 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily disable AwSettingsTest#testUseWideViewportWithTwoViewsmnaganov@chromium.org2013-02-221-2/+7
| | | | | | | | | | | | | | This is a part of a two-sided patch. Disabling the test to prevent bots from going red after WK patch lands and is rolled into Chromium. BUG=177684 TBR=benm@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12317069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184132 0039d316-1c4b-4281-b951-d872f2087c98
* [android_webview] Introduce content size methods on AwContents.mkosiba@chromium.org2013-02-211-0/+8
| | | | | | | | | | | | | | | This makes it clear which coordinate space the width and height should be reported in. This will also remove another dependency on ContentViewCore from the glue layer. R=benm@chromium.org BUG=None TEST=None NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12330047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183791 0039d316-1c4b-4281-b951-d872f2087c98
* Use _target_name instead of package_name for java*.gypicjhopman@chromium.org2013-02-203-8/+11
| | | | | | | | | | | | | | | We were using package_name as a unique name for naming output files and directories. package_name was typically the same as _target_name or a variation of it (like dropping _apk). Using _target_name instead means we need to specify one less thing and it is (maybe?) guaranteed to be unique. TBR=brettw,joi,jar,fischman,zea,sky BUG= Review URL: https://chromiumcodereview.appspot.com/11308030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183639 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: update directories that are removed.torne@chromium.org2013-02-201-3/+23
| | | | | | | | | | | | | | | Add a number of directories to the known issue list for the Android WebView merge process; these are not directories with license problems, but rather directories that contain code we want to be certain we are not using to build. Previously we had some issues where we were inadvertantly including Chromium's in-tree headers for libraries that we linked to the system version of, causing ABI compatibility problems. BUG= Review URL: https://codereview.chromium.org/12255071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183551 0039d316-1c4b-4281-b951-d872f2087c98
* [android_webview] Disable flaky test.mkosiba@chromium.org2013-02-201-2/+6
| | | | | | | | | | | | | testCreateLoadDestroyManyTimes is failing on the JB Nexus7 FYI bot. BUG=172184 TBR=boliu@chromium.org NOTRY=True Review URL: https://chromiumcodereview.appspot.com/12320007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183540 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Remove not needed constructor in AwContentskristianm@chromium.org2013-02-202-11/+1
| | | | | | | | | | | Last part of three way patch. BUG= Review URL: https://chromiumcodereview.appspot.com/12254042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183468 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Remove obsolete webviewchromium_strings.pak references.benm@chromium.org2013-02-194-45/+3
| | | | | | | | | We are now using the locale paks instead. Review URL: https://chromiumcodereview.appspot.com/12230058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183269 0039d316-1c4b-4281-b951-d872f2087c98
* [android_webview] Fix race conditions in AwContentsTest.mkosiba@chromium.org2013-02-194-241/+403
| | | | | | | | | | | | | | | | | Waiting for onPageFinished is not a sufficient condition for a different AwContentsClient callback to fire. Due to the Java memory model even if a callback is guaranteed to happen at a later time than onPageFinished there is no guarantee that the other thread will see the updates. I also used this as an opportunity to split stuff out from AwContentsTest because it was way too big. Finally, I've re-enabled some of the tests since they've been passing locally for me. BUG=None TEST=AndroidWebViewTests Review URL: https://codereview.chromium.org/12279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183260 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Migrate the rendering code to a separate set of classes.leandrogracia@chromium.org2013-02-1524-714/+1259
| | | | | | | | | | | | | | | | | | | | | It takes from https://codereview.chromium.org/11823027/ and assumes SW rendering and Capture Picture to be ready and enabled. Most changes just move around code. The major structural changes are: - Introduce a browser-layer view renderer interface and move the code to its implementation. - Take out the rendering-related IPC to its own separate set of host/renderer classes. - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. BUG=167913,167908,161409 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182710 Review URL: https://chromiumcodereview.appspot.com/12041009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182717 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 182710, this broke check_deps.marja@chromium.org2013-02-1524-1259/+715
| | | | | | | | | | | | | | | | | | | | | | | | > [Android WebView] Migrate the rendering code to a separate set of classes. > > It takes from https://codereview.chromium.org/11823027/ > and assumes SW rendering and Capture Picture to be ready and enabled. > > Most changes just move around code. The major structural changes are: > - Introduce a browser-layer view renderer interface and move the code to its implementation. > - Take out the rendering-related IPC to its own separate set of host/renderer classes. > - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. > - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. > - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. > > BUG=167913,167908,161409 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/12041009 TBR=leandrogracia@chromium.org Review URL: https://codereview.chromium.org/12230059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182712 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Migrate the rendering code to a separate set of classes.leandrogracia@chromium.org2013-02-1524-715/+1259
| | | | | | | | | | | | | | | | | | | It takes from https://codereview.chromium.org/11823027/ and assumes SW rendering and Capture Picture to be ready and enabled. Most changes just move around code. The major structural changes are: - Introduce a browser-layer view renderer interface and move the code to its implementation. - Take out the rendering-related IPC to its own separate set of host/renderer classes. - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. BUG=167913,167908,161409 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12041009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182710 0039d316-1c4b-4281-b951-d872f2087c98
* Expose the capturePicture feature in RenderView for Android WebView legacy ↵leandrogracia@chromium.org2013-02-156-34/+30
| | | | | | | | | | | | | | | | API support. These methods are required to implement WebView.capturePicture and WebView.PictureListener.onNewPicture. - http://developer.android.com/reference/android/webkit/WebView.html#capturePicture() - http://developer.android.com/reference/android/webkit/WebView.PictureListener.html BUG=167908,167913 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182106 Review URL: https://chromiumcodereview.appspot.com/11861008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182629 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Websettings.[get/set]DatabaseEnabledsgurun@chromium.org2013-02-142-0/+93
| | | | | | | | | BUG=6294786 Review URL: https://chromiumcodereview.appspot.com/12194033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182536 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebSettings.setTextZoom for legacy layout modesmnaganov@chromium.org2013-02-1413-5/+253
| | | | | | | | We rely on the fact that on Android, page scaling factor isn't used for page zooming, so text scaling can be used (unlike desktop Chrome). Review URL: https://chromiumcodereview.appspot.com/12220012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182481 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing geolocation for the Android Webviewkristianm@chromium.org2013-02-148-85/+260
| | | | | | | | | | | | Enabling geolocation callbacks BUG= Review URL: https://chromiumcodereview.appspot.com/12211047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182465 0039d316-1c4b-4281-b951-d872f2087c98