Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 10536066: android content shell bringup. (Closed)

Created:
8 years, 6 months ago by John Grabowski
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jochen+watch-content_chromium.org, erikwright (departed), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, michaelbai, Satish
Visibility:
Public.

Description

android content shell bringup. Starting classes for content view, content view client. Includes some relevant deps needed to build or pass a sanity check. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142309

Patch Set 1 #

Patch Set 2 : minor refactor, tweks #

Patch Set 3 : minor refactor, tweaks #

Patch Set 4 : add comments #

Total comments: 87

Patch Set 5 : #

Total comments: 3

Patch Set 6 : more jam feedback #

Total comments: 11

Patch Set 7 : even more jam feedback #

Patch Set 8 : even even more jam feedback #

Patch Set 9 : header stuff #

Patch Set 10 : sync and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1633 lines, -6 lines) Patch
A base/android/java/org/chromium/base/AccessedByNative.java View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M base/android/jni_array.h View 1 chunk +1 line, -1 line 0 comments Download
M base/android/jni_array.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/file_select_helper.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/app/android/content_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
A content/browser/android/content_util.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A content/browser/android/content_util.cc View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
A content/browser/android/content_view_client.h View 1 2 3 4 5 6 1 chunk +187 lines, -0 lines 0 comments Download
A content/browser/android/content_view_client.cc View 1 2 3 4 5 6 1 chunk +587 lines, -0 lines 0 comments Download
A content/browser/android/content_view_impl.h View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
A content/browser/android/content_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +96 lines, -0 lines 0 comments Download
A content/common/find_match_rect_android.h View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A content/common/find_match_rect_android.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M content/content_app.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/android/java/org/chromium/content/browser/ContentView.java View 1 3 chunks +75 lines, -0 lines 0 comments Download
A content/public/android/java/org/chromium/content/browser/ContentViewClient.java View 1 2 3 4 1 chunk +285 lines, -0 lines 0 comments Download
A content/public/android/java/org/chromium/content/browser/FileChooserParams.java View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
A content/public/browser/android/content_view.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M content/public/common/file_chooser_params.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/shell/android/java/org/chromium/content_shell/ShellView.java View 4 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
John Grabowski
jam and jar for OWNERS yaron for Android
8 years, 6 months ago (2012-06-08 23:19:42 UTC) #1
John Grabowski
Ooh -- it looks like we can now launch a renderer??? When I start an ...
8 years, 6 months ago (2012-06-08 23:26:05 UTC) #2
jar (doing other things)
Can you get someone that is familiar with JNI to review this first? It is ...
8 years, 6 months ago (2012-06-08 23:31:42 UTC) #3
jam
http://codereview.chromium.org/10536066/diff/2002/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): http://codereview.chromium.org/10536066/diff/2002/chrome/browser/file_select_helper.cc#newcode411 chrome/browser/file_select_helper.cc:411: reinterpret_cast<void*>(const_cast<content::FileChooserParams*>(&params))); 80 chars http://codereview.chromium.org/10536066/diff/2002/chrome/browser/file_select_helper.cc#newcode411 chrome/browser/file_select_helper.cc:411: reinterpret_cast<void*>(const_cast<content::FileChooserParams*>(&params))); nit: are you ...
8 years, 6 months ago (2012-06-08 23:45:09 UTC) #4
Yaron
mostly just nits. jar: I'm familiar with JNI stuff and it looks fine. jrg is ...
8 years, 6 months ago (2012-06-09 01:02:11 UTC) #5
haitao.feng
Thanks for uploading those files! Yes, from adb logcat: E/chromium( 1566): [ERROR:web_contents_view_android.cc(65)] Not implemented reached ...
8 years, 6 months ago (2012-06-11 05:38:50 UTC) #6
yongsheng
On 2012/06/11 05:38:50, haitao.feng wrote: > Thanks for uploading those files! > > Yes, from ...
8 years, 6 months ago (2012-06-11 07:23:13 UTC) #7
jar (doing other things)
base changes LGTM (mostly rubber stamped)
8 years, 6 months ago (2012-06-11 08:04:52 UTC) #8
Shouqun Liu
On 2012/06/08 23:26:05, John Grabowski wrote: > Ooh -- it looks like we can now ...
8 years, 6 months ago (2012-06-11 08:26:05 UTC) #9
John Grabowski
All feedback applied except where noted; thanks guys. jam: have question about new location/name for ...
8 years, 6 months ago (2012-06-12 01:46:29 UTC) #10
Yaron
lgtm
8 years, 6 months ago (2012-06-12 04:04:03 UTC) #11
jam
http://codereview.chromium.org/10536066/diff/2002/content/browser/android/content_util.cc File content/browser/android/content_util.cc (right): http://codereview.chromium.org/10536066/diff/2002/content/browser/android/content_util.cc#newcode10 content/browser/android/content_util.cc:10: #include "content/public/browser/web_contents.h" On 2012/06/12 01:46:29, John Grabowski wrote: > ...
8 years, 6 months ago (2012-06-12 17:44:01 UTC) #12
John Grabowski
Thanks for the detailed scrutiny! Feedback applied with one or two questions. http://codereview.chromium.org/10536066/diff/2002/content/browser/android/content_view_client.cc File content/browser/android/content_view_client.cc ...
8 years, 6 months ago (2012-06-13 22:12:29 UTC) #13
jam
http://codereview.chromium.org/10536066/diff/2002/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): http://codereview.chromium.org/10536066/diff/2002/chrome/browser/file_select_helper.cc#newcode411 chrome/browser/file_select_helper.cc:411: reinterpret_cast<void*>(const_cast<content::FileChooserParams*>(&params))); On 2012/06/12 01:46:29, John Grabowski wrote: > On ...
8 years, 6 months ago (2012-06-14 01:31:40 UTC) #14
John Grabowski
All feedback applied. Thanks for your patience! 2 open issues (below) http://codereview.chromium.org/10536066/diff/2002/content/public/browser/content_view.h File content/public/browser/content_view.h (right): ...
8 years, 6 months ago (2012-06-14 04:20:49 UTC) #15
jam
http://codereview.chromium.org/10536066/diff/2002/content/public/browser/content_view.h File content/public/browser/content_view.h (right): http://codereview.chromium.org/10536066/diff/2002/content/public/browser/content_view.h#newcode27 content/public/browser/content_view.h:27: class ContentView : public base::SupportsWeakPtr<ContentView> { On 2012/06/14 04:20:49, ...
8 years, 6 months ago (2012-06-14 16:08:57 UTC) #16
jam
http://codereview.chromium.org/10536066/diff/13002/content/public/browser/android/content_view.h File content/public/browser/android/content_view.h (right): http://codereview.chromium.org/10536066/diff/13002/content/public/browser/android/content_view.h#newcode16 content/public/browser/android/content_view.h:16: class JavaScriptDialogCreator; On 2012/06/14 01:31:41, John Abd-El-Malek wrote: > ...
8 years, 6 months ago (2012-06-14 16:11:09 UTC) #17
John Grabowski
http://codereview.chromium.org/10536066/diff/2002/content/public/browser/content_view.h File content/public/browser/content_view.h (right): http://codereview.chromium.org/10536066/diff/2002/content/public/browser/content_view.h#newcode27 content/public/browser/content_view.h:27: class ContentView : public base::SupportsWeakPtr<ContentView> { On 2012/06/14 16:08:57, ...
8 years, 6 months ago (2012-06-14 17:56:30 UTC) #18
jam
lgtm, thanks for your patience!
8 years, 6 months ago (2012-06-14 19:01:49 UTC) #19
John Grabowski
Thanks jam
8 years, 6 months ago (2012-06-14 23:53:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrg@chromium.org/10536066/13007
8 years, 6 months ago (2012-06-14 23:53:55 UTC) #21
commit-bot: I haz the power
Change committed as 142309
8 years, 6 months ago (2012-06-15 01:41:43 UTC) #22
no sievers
8 years, 6 months ago (2012-06-19 23:48:39 UTC) #23
http://chromiumcodereview.appspot.com/10536066/diff/2002/content/public/brows...
File content/public/browser/content_view.h (right):

http://chromiumcodereview.appspot.com/10536066/diff/2002/content/public/brows...
content/public/browser/content_view.h:27: class ContentView : public
base::SupportsWeakPtr<ContentView> {
One case I remember is interstitials and the way they work as in temporarily
replacing the WebContents+RenderWidgetHostView. There was no good way to get
back to the them when the ChromeView goes way and they might still have a stale
pointer to the ContentView. There might have been other cases, maybe something
with instant.


On 2012/06/08 23:45:09, John Abd-El-Malek wrote:
> I'm curious why you need this to spuport weak pointer? who creates and owns
> this, the embedder? if so, why do they need this?

Powered by Google App Engine
This is Rietveld 408576698