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

Issue 10968003: Add rendering support to the TestShell. (Closed)

Created:
8 years, 3 months ago by David Trainor- moved to gerrit
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Add rendering support to the TestShell. - Tie the Compositor into the TestShell. - Tie a really basic Tab into the TestShell. BUG=http://crbug.com/136786 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158654

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed Comments. Fixed render crash bug. #

Patch Set 3 : Rebased on top of test apk changes. #

Total comments: 52

Patch Set 4 : Address comments, remove TabContents from TabBase. #

Total comments: 8

Patch Set 5 : Addressed Nits #

Total comments: 9

Patch Set 6 : Addressed nits, rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+854 lines, -72 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/TabBase.java View 1 2 3 1 chunk +139 lines, -0 lines 0 comments Download
M chrome/android/testshell/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/testshell/chrome_main_delegate_testshell_android.cc View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/android/testshell/java/chromium_testshell_apk.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java View 1 2 3 4 chunks +81 lines, -2 lines 0 comments Download
A chrome/android/testshell/java/src/org/chromium/chrome/testshell/TabManager.java View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download
A chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellToolbar.java View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
A + chrome/android/testshell/res/layout/testshell_activity.xml View 1 2 chunks +12 lines, -8 lines 0 comments Download
A + chrome/android/testshell/res/values/dimens.xml View 1 chunk +0 lines, -2 lines 0 comments Download
A + chrome/android/testshell/res/values/strings.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/android/testshell/tab_manager.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + chrome/android/testshell/tab_manager.cc View 1 2 3 3 chunks +33 lines, -55 lines 0 comments Download
M chrome/app/android/chrome_main_delegate_android.cc View 2 chunks +12 lines, -1 line 0 comments Download
A chrome/browser/android/tab_base_android_impl.h View 1 2 3 4 5 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/android/tab_base_android_impl.cc View 1 2 3 4 5 1 chunk +141 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/chrome_android.gypi View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
David Trainor- moved to gerrit
Initial upstream pass at getting this to render. There is a crash when I actually ...
8 years, 3 months ago (2012-09-20 06:34:36 UTC) #1
Ted C
https://codereview.chromium.org/10968003/diff/1/chrome/android/testshell/DEPS File chrome/android/testshell/DEPS (right): https://codereview.chromium.org/10968003/diff/1/chrome/android/testshell/DEPS#newcode4 chrome/android/testshell/DEPS:4: "+content/public/browser/android/compositor.h", I think having just content/public/browser/android should be ok. ...
8 years, 3 months ago (2012-09-20 17:23:58 UTC) #2
David Trainor- moved to gerrit
Fixed Ted's comments. Fixed rendering bug. https://chromiumcodereview.appspot.com/10968003/diff/1/chrome/android/testshell/DEPS File chrome/android/testshell/DEPS (right): https://chromiumcodereview.appspot.com/10968003/diff/1/chrome/android/testshell/DEPS#newcode4 chrome/android/testshell/DEPS:4: "+content/public/browser/android/compositor.h", On 2012/09/20 ...
8 years, 3 months ago (2012-09-21 22:59:10 UTC) #3
David Trainor- moved to gerrit
8 years, 3 months ago (2012-09-22 00:34:51 UTC) #4
Yaron
Jay, as Ted is now OOO, can you help review
8 years, 3 months ago (2012-09-24 17:20:28 UTC) #5
Yaron
Focused mostly on native code which seems fine aside from TabContents construction. http://codereview.chromium.org/10968003/diff/9027/chrome/android/testshell/java/chromium_testshell_apk.xml File chrome/android/testshell/java/chromium_testshell_apk.xml ...
8 years, 3 months ago (2012-09-24 20:11:32 UTC) #6
nilesh
Mostly nits. http://codereview.chromium.org/10968003/diff/9027/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java File chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java (right): http://codereview.chromium.org/10968003/diff/9027/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java#newcode41 chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java:41: LibraryLoader.loadAndInitSync(); I may be wrong, but looks ...
8 years, 3 months ago (2012-09-24 20:46:40 UTC) #7
Jay Civelli
https://chromiumcodereview.appspot.com/10968003/diff/9027/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java File chrome/android/java/src/org/chromium/chrome/browser/TabBase.java (right): https://chromiumcodereview.appspot.com/10968003/diff/9027/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/TabBase.java:99: if (mContentView != null) { Nit: you could do ...
8 years, 3 months ago (2012-09-24 22:43:08 UTC) #8
David Trainor- moved to gerrit
Addressed comments. Removed TabContents* from TabBase (we only need WebContents* atm). PTAL. https://chromiumcodereview.appspot.com/10968003/diff/9027/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java File chrome/android/java/src/org/chromium/chrome/browser/TabBase.java ...
8 years, 3 months ago (2012-09-24 23:39:57 UTC) #9
David Trainor- moved to gerrit
Scott, again this is pretty android specific, but if you want could you take a ...
8 years, 3 months ago (2012-09-24 23:42:19 UTC) #10
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_base_android_impl.h File chrome/browser/android/tab_base_android_impl.h (right): https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_base_android_impl.h#newcode14 chrome/browser/android/tab_base_android_impl.h:14: class TabContents; Do you need this any more? https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_base_android_impl.h#newcode87 ...
8 years, 3 months ago (2012-09-24 23:43:48 UTC) #11
Yaron
lgtt but please wait for others https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_android.h#newcode17 chrome/browser/android/tab_android.h:17: class TabContents; Revert ...
8 years, 3 months ago (2012-09-24 23:59:04 UTC) #12
Yaron
lgtm but please wait for others
8 years, 3 months ago (2012-09-24 23:59:10 UTC) #13
Jay Civelli
lgtm https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_base_android_impl.cc File chrome/browser/android/tab_base_android_impl.cc (right): https://chromiumcodereview.appspot.com/10968003/diff/16004/chrome/browser/android/tab_base_android_impl.cc#newcode111 chrome/browser/android/tab_base_android_impl.cc:111: new ChromeWebContentsDelegateRenderAndroid(this, indent should be 4 spaces in ...
8 years, 3 months ago (2012-09-25 00:01:49 UTC) #14
David Trainor- moved to gerrit
addressed nits. https://codereview.chromium.org/10968003/diff/16004/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): https://codereview.chromium.org/10968003/diff/16004/chrome/browser/android/tab_android.h#newcode17 chrome/browser/android/tab_android.h:17: class TabContents; On 2012/09/24 23:59:04, Yaron wrote: ...
8 years, 3 months ago (2012-09-25 00:34:31 UTC) #15
no sievers
https://codereview.chromium.org/10968003/diff/17005/chrome/android/testshell/tab_manager.cc File chrome/android/testshell/tab_manager.cc (right): https://codereview.chromium.org/10968003/diff/17005/chrome/android/testshell/tab_manager.cc#newcode98 chrome/android/testshell/tab_manager.cc:98: GetCompositor()->OnSurfaceUpdated(base::Bind(&DummyCallback)); Are you sure? :) How would this ever ...
8 years, 2 months ago (2012-09-25 10:21:53 UTC) #16
no sievers
https://codereview.chromium.org/10968003/diff/17005/chrome/android/testshell/tab_manager.cc File chrome/android/testshell/tab_manager.cc (right): https://codereview.chromium.org/10968003/diff/17005/chrome/android/testshell/tab_manager.cc#newcode98 chrome/android/testshell/tab_manager.cc:98: GetCompositor()->OnSurfaceUpdated(base::Bind(&DummyCallback)); Oh this is to force a draw when ...
8 years, 2 months ago (2012-09-25 10:24:04 UTC) #17
sky
LGTM https://chromiumcodereview.appspot.com/10968003/diff/17005/chrome/browser/android/tab_base_android_impl.cc File chrome/browser/android/tab_base_android_impl.cc (right): https://chromiumcodereview.appspot.com/10968003/diff/17005/chrome/browser/android/tab_base_android_impl.cc#newcode28 chrome/browser/android/tab_base_android_impl.cc:28: JNIEnv* env, jobject obj) each param on own ...
8 years, 2 months ago (2012-09-25 15:57:38 UTC) #18
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/10968003/diff/17005/chrome/android/testshell/tab_manager.cc File chrome/android/testshell/tab_manager.cc (right): https://chromiumcodereview.appspot.com/10968003/diff/17005/chrome/android/testshell/tab_manager.cc#newcode98 chrome/android/testshell/tab_manager.cc:98: GetCompositor()->OnSurfaceUpdated(base::Bind(&DummyCallback)); On 2012/09/25 10:24:04, Daniel Sievers wrote: > Oh ...
8 years, 2 months ago (2012-09-25 19:07:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10968003/26006
8 years, 2 months ago (2012-09-25 19:07:45 UTC) #20
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 21:17:01 UTC) #21
Change committed as 158654

Powered by Google App Engine
This is Rietveld 408576698