Description was changed from ========== Remove pre-MD code from browser/ui/views/tabs/tab.cc BUG=648281 ========== to ========== Remove ...
4 years, 2 months ago
(2016-09-23 21:47:09 UTC)
#1
Description was changed from
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
==========
to
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
I attempted to only change tab.cc/h, but had to delete
some immersive mode code too (that mode is now deprecated).
I tried to delete the minimum amount of immersive related
code.
BUG=648281
==========
https://codereview.chromium.org/2368653002/diff/40001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (left): https://codereview.chromium.org/2368653002/diff/40001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#oldcode205 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:205: if (ash::MaterialDesignController::IsImmersiveModeMaterial()) MD immersive mode was turned on in ...
4 years, 2 months ago
(2016-09-23 21:57:10 UTC)
#8
4 years, 2 months ago
(2016-09-23 22:45:50 UTC)
#10
Dry run: This issue passed the CQ dry run.
Peter Kasting
I'm going to wait for another ping before reviewing this, as it sounds as if ...
4 years, 2 months ago
(2016-09-24 06:02:44 UTC)
#11
I'm going to wait for another ping before reviewing this, as it sounds as if
restoring some of this immersive mode stuff may be nontrivial.
Evan Stade
Description was changed from ========== Remove pre-MD code from browser/ui/views/tabs/tab.cc I attempted to only change ...
4 years, 2 months ago
(2016-09-26 16:33:18 UTC)
#12
Description was changed from
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
I attempted to only change tab.cc/h, but had to delete
some immersive mode code too (that mode is now deprecated).
I tried to delete the minimum amount of immersive related
code.
BUG=648281
==========
to
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
==========
Evan Stade
Description was changed from ========== Remove pre-MD code from browser/ui/views/tabs/tab.cc BUG=648281 ========== to ========== Remove ...
4 years, 2 months ago
(2016-09-26 16:40:05 UTC)
#13
Description was changed from
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
==========
to
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
TBR=oshima@chromium.org
==========
Leaving immersive mode code in place. tdanderson to cc, +oshima tbr for asset deletion https://codereview.chromium.org/2368653002/diff/40001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc ...
4 years, 2 months ago
(2016-09-26 16:40:39 UTC)
#15
Leaving immersive mode code in place. tdanderson to cc, +oshima tbr for asset
deletion
https://codereview.chromium.org/2368653002/diff/40001/chrome/browser/ui/views...
File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (left):
https://codereview.chromium.org/2368653002/diff/40001/chrome/browser/ui/views...
chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:205: if
(ash::MaterialDesignController::IsImmersiveModeMaterial())
On 2016/09/23 21:57:09, tdanderson (OOO until 9-29) wrote:
> MD immersive mode was turned on in early 55 which hasn't even hit beta
channel,
> so please leave the old immersive mode code in place until MD immersive makes
it
> into stable. We will clean it up at that point as per the TODO above.
ah ok, my bad.
Evan Stade
The CQ bit was checked by estade@chromium.org to run a CQ dry run
4 years, 2 months ago
(2016-09-26 16:40:45 UTC)
#16
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/286263)
4 years, 2 months ago
(2016-09-26 18:00:15 UTC)
#19
https://codereview.chromium.org/2368653002/diff/100001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/2368653002/diff/100001/chrome/browser/ui/views/tabs/tab.cc#newcode1582 chrome/browser/ui/views/tabs/tab.cc:1582: gfx::Rect contents = GetContentsBounds(); This seems to be a ...
4 years, 2 months ago
(2016-09-26 21:05:29 UTC)
#20
4 years, 2 months ago
(2016-09-26 22:02:42 UTC)
#22
LGTM
https://codereview.chromium.org/2368653002/diff/100001/chrome/browser/ui/view...
File chrome/browser/ui/views/tabs/tab.cc (right):
https://codereview.chromium.org/2368653002/diff/100001/chrome/browser/ui/view...
chrome/browser/ui/views/tabs/tab.cc:1582: gfx::Rect contents =
GetContentsBounds();
On 2016/09/26 21:57:34, Evan Stade wrote:
> On 2016/09/26 21:05:29, Peter Kasting wrote:
> > This seems to be a behavior change? The old code, as the comment describes,
> > used the width of the top of the tab. The new code uses the width of the
> whole
> > tab rect (i.e. the width of the bottom of the tab), so the comment is no
> longer
> > correct. I'm worried that the behavior change isn't right either?
>
> I don't think so --- the tab's border is set here:
>
https://cs.chromium.org/chromium/src/chrome/browser/ui/views/tabs/tab.cc?rcl=...
>
> GetLayoutInsets(TAB) to my understanding describes the insets for the portion
of
> the tab where we put the icon, text, etc., i.e. the width matches the tab's
top
> stroke.
Oh, I was thinking GetLocalBounds(), not GetContentsBounds().
Hmm. We might be off by a little bit (roughly, the kBarPadding amount in the
old code). But this is at least approximately correct.
I seem to recall being told by Scott not to worry about getting immersive mode
behavior perfect in MD anyway, so this seems OK.
Evan Stade
The CQ bit was checked by estade@chromium.org
4 years, 2 months ago
(2016-09-26 22:11:13 UTC)
#23
Description was changed from ========== Remove pre-MD code from browser/ui/views/tabs/tab.cc BUG=648281 TBR=oshima@chromium.org ========== to ========== ...
4 years, 2 months ago
(2016-09-26 22:48:01 UTC)
#25
Message was sent while issue was closed.
Description was changed from
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
TBR=oshima@chromium.org
==========
to
==========
Remove pre-MD code from browser/ui/views/tabs/tab.cc
BUG=648281
TBR=oshima@chromium.org
==========
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago
(2016-09-26 22:48:02 UTC)
#26
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
commit-bot: I haz the power
Description was changed from ========== Remove pre-MD code from browser/ui/views/tabs/tab.cc BUG=648281 TBR=oshima@chromium.org ========== to ========== ...
4 years, 2 months ago
(2016-09-26 22:50:09 UTC)
#27
Issue 2368653002: Remove pre-MD code from browser/ui/views/tabs/tab.cc
(Closed)
Created 4 years, 2 months ago by Evan Stade
Modified 4 years, 2 months ago
Reviewers: Peter Kasting, oshima
Base URL:
Comments: 5