Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Issue 2255533002: Add TabControlFeature to BlimpClientContextImpl (Closed)

Created:
4 years, 4 months ago by Menglin
Modified:
4 years, 4 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TabControlFeature to BlimpClientContextImpl This CL includes: 1. BlimpClientContextImpl owns the TabControlFeature, and register the feature in its constructor. 2. When a BlimpContents is created, set a pointer to TabControlFeature in BlimpContentsImpl. 3. Add a method to SetSizeAndScale in BlimpContents. 4. call CreateTab in BlimpClientContextImplAndroid. BUG=628802 Committed: https://crrev.com/a8e9f7138e9f22d14edbe6b00f824b265fa08060 Cr-Commit-Position: refs/heads/master@{#413309}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Pass TabControlFeature* to BlimpContentsImpl's constructor, remove blimp contents factory #

Total comments: 13

Patch Set 3 : Add BlimpContentsImplTest.SetSizeAndScaleThroughTabControlFeature #

Total comments: 3

Patch Set 4 : Address all David's comments #

Total comments: 8

Patch Set 5 : nits and sync to head #

Patch Set 6 : fix build dependency #

Patch Set 7 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -53 lines) Patch
M blimp/client/core/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 1 2 3 4 4 chunks +7 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 1 2 3 4 5 chunks +17 lines, -1 line 0 comments Download
M blimp/client/core/blimp_client_context_impl_unittest.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M blimp/client/core/contents/BUILD.gn View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.h View 1 2 3 4 chunks +13 lines, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.cc View 1 3 chunks +11 lines, -2 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl_unittest.cc View 1 2 3 chunks +27 lines, -2 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.h View 1 2 3 4 3 chunks +14 lines, -3 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.cc View 1 2 3 4 3 chunks +27 lines, -7 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager_unittest.cc View 1 2 3 4 chunks +28 lines, -3 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_observer_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/core/contents/tab_control_feature.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/geometry/box_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/point.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/point3_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/point_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/quad_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/rect.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/rect_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/scroll_offset.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/size.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/size_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/vector2d.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/vector2d_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/geometry/vector3d_f.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/transform.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
Menglin
Hi Tommy and David, ptal. Thanks! Menglin
4 years, 4 months ago (2016-08-16 19:22:49 UTC) #2
nyquist
https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode58 blimp/client/core/android/blimp_client_context_impl_android.cc:58: GetTabControlFeature()->CreateTab(kDummyTabId); Could this be in the cross-platform code? https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/blimp_client_context_impl.cc ...
4 years, 4 months ago (2016-08-16 20:41:04 UTC) #3
nyquist
Also, should we move //blimp/client:feature_unit_tests to //blimp/client/core/contents somewhere now?
4 years, 4 months ago (2016-08-16 20:57:18 UTC) #4
Menglin
On 2016/08/16 20:57:18, nyquist wrote: > Also, should we move //blimp/client:feature_unit_tests to > //blimp/client/core/contents somewhere ...
4 years, 4 months ago (2016-08-16 21:10:03 UTC) #5
Menglin
https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode58 blimp/client/core/android/blimp_client_context_impl_android.cc:58: GetTabControlFeature()->CreateTab(kDummyTabId); On 2016/08/16 20:41:04, nyquist wrote: > Could this ...
4 years, 4 months ago (2016-08-16 21:10:09 UTC) #6
nyquist
https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc File blimp/client/core/android/blimp_client_context_impl_android.cc (right): https://codereview.chromium.org/2255533002/diff/1/blimp/client/core/android/blimp_client_context_impl_android.cc#newcode58 blimp/client/core/android/blimp_client_context_impl_android.cc:58: GetTabControlFeature()->CreateTab(kDummyTabId); On 2016/08/16 21:10:08, Menglin wrote: > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 21:41:41 UTC) #7
Menglin
[email protected]: Please review changes in ui/gfx/geometry/size.h Hi Tommy and David, Please look at Patch 3. ...
4 years, 4 months ago (2016-08-17 19:48:46 UTC) #9
danakj
https://codereview.chromium.org/2255533002/diff/40001/ui/gfx/geometry/size.h File ui/gfx/geometry/size.h (right): https://codereview.chromium.org/2255533002/diff/40001/ui/gfx/geometry/size.h#newcode84 ui/gfx/geometry/size.h:84: // test. This should not be used in production ...
4 years, 4 months ago (2016-08-17 19:50:52 UTC) #10
Menglin
On 2016/08/17 19:50:52, danakj wrote: > https://codereview.chromium.org/2255533002/diff/40001/ui/gfx/geometry/size.h > File ui/gfx/geometry/size.h (right): > > https://codereview.chromium.org/2255533002/diff/40001/ui/gfx/geometry/size.h#newcode84 > ...
4 years, 4 months ago (2016-08-17 21:05:59 UTC) #11
David Trainor- moved to gerrit
https://codereview.chromium.org/2255533002/diff/20001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2255533002/diff/20001/blimp/client/core/blimp_client_context_impl.cc#newcode75 blimp/client/core/blimp_client_context_impl.cc:75: GetTabControlFeature()->CreateTab(kDummyTabId); Don't do this here. We 100% need to ...
4 years, 4 months ago (2016-08-18 17:41:58 UTC) #12
Menglin
https://codereview.chromium.org/2255533002/diff/20001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2255533002/diff/20001/blimp/client/core/blimp_client_context_impl.cc#newcode88 blimp/client/core/blimp_client_context_impl.cc:88: blimp_contents_manager_->CreateBlimpContents(tab_control_feature_.get()); On 2016/08/18 17:41:58, David Trainor wrote: > Should ...
4 years, 4 months ago (2016-08-18 18:59:06 UTC) #13
Menglin
In patch 4, i address all David's comments. David, ptal. danakj, I also update all ...
4 years, 4 months ago (2016-08-19 00:50:21 UTC) #14
danakj
On 2016/08/19 00:50:21, Menglin wrote: > In patch 4, i address all David's comments. David, ...
4 years, 4 months ago (2016-08-19 00:51:19 UTC) #15
David Trainor- moved to gerrit
lgtm % nits. Thanks! :) https://codereview.chromium.org/2255533002/diff/60001/blimp/client/core/contents/blimp_contents_manager.cc File blimp/client/core/contents/blimp_contents_manager.cc (right): https://codereview.chromium.org/2255533002/diff/60001/blimp/client/core/contents/blimp_contents_manager.cc#newcode60 blimp/client/core/contents/blimp_contents_manager.cc:60: // Create an observer ...
4 years, 4 months ago (2016-08-19 20:55:05 UTC) #16
Menglin
https://codereview.chromium.org/2255533002/diff/60001/blimp/client/core/contents/blimp_contents_manager.cc File blimp/client/core/contents/blimp_contents_manager.cc (right): https://codereview.chromium.org/2255533002/diff/60001/blimp/client/core/contents/blimp_contents_manager.cc#newcode60 blimp/client/core/contents/blimp_contents_manager.cc:60: // Create an observer entry for the contents On ...
4 years, 4 months ago (2016-08-19 21:33:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255533002/80001
4 years, 4 months ago (2016-08-19 21:34:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/115618) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-19 21:40:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255533002/120001
4 years, 4 months ago (2016-08-19 22:50:15 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/277561)
4 years, 4 months ago (2016-08-20 00:47:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255533002/120001
4 years, 4 months ago (2016-08-20 00:59:48 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-20 02:18:12 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-08-20 02:19:36 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a8e9f7138e9f22d14edbe6b00f824b265fa08060
Cr-Commit-Position: refs/heads/master@{#413309}

Powered by Google App Engine
This is Rietveld 408576698