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

Issue 2262563002: Refactor DoesIntersectRect into BrowserNonClientFrameView. (Closed)

Created:
4 years, 4 months ago by Bret
Modified:
4 years, 4 months ago
Reviewers:
msw, varkha, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor DoesIntersectRect into BrowserNonClientFrameView. As far as I can tell the DoesIntersectRect implementations of OpaqueBrowserFrameView, BrowserNonClientFrameViewMus, and BrowserNonClientFrameViewAsh are all behaviorly identical but entirely duplicated. So I moved them all into their common base class. Nothing should look or act differently after this change. TEST=Check tab strip, toolbar, and window controls to make sure still work correctly. Committed: https://crrev.com/55e6cc560a8e152d26f1b69e0929c53681eeacd7 Cr-Commit-Position: refs/heads/master@{#413514}

Patch Set 1 #

Total comments: 10

Patch Set 2 : fix comments #

Messages

Total messages: 24 (12 generated)
Bret
4 years, 4 months ago (2016-08-19 20:49:00 UTC) #8
msw
lgtm with nits; but please wait for Scott's review. https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode213 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:213: ...
4 years, 4 months ago (2016-08-19 23:56:40 UTC) #9
sky
LGTM https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode214 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:214: CHECK_EQ(target, this); Normally we use DCHECK for these ...
4 years, 4 months ago (2016-08-20 20:17:10 UTC) #10
Bret
https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/2262563002/diff/1/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode213 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:213: const gfx::Rect& rect) const { On 2016/08/19 23:56:40, msw ...
4 years, 4 months ago (2016-08-22 18:29:42 UTC) #11
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/2262563002/20001
4 years, 4 months ago (2016-08-22 18:33:33 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-22 19:45:45 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/55e6cc560a8e152d26f1b69e0929c53681eeacd7 Cr-Commit-Position: refs/heads/master@{#413514}
4 years, 4 months ago (2016-08-22 19:48:20 UTC) #18
varkha
This change seems to be breaking window controls on Chrome OS for V1 frames (More ...
4 years, 4 months ago (2016-08-23 16:21:46 UTC) #20
Bret
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2273863002/ by bsep@chromium.org. ...
4 years, 4 months ago (2016-08-23 21:40:05 UTC) #21
sky
Did you investigate what broke in your patch? I wouldn't think it that hard to ...
4 years, 4 months ago (2016-08-23 23:54:45 UTC) #22
Bret
On 2016/08/23 23:54:45, sky wrote: > Did you investigate what broke in your patch? I ...
4 years, 4 months ago (2016-08-23 23:57:32 UTC) #23
sky
4 years, 4 months ago (2016-08-24 02:07:09 UTC) #24
Message was sent while issue was closed.
Reverting right away is the right thing, was just curious if you had a
good handle on what might have went wrong. A chromeos build should
just be a matter of adding:

target_os = "chromeos"

to your args.gn

  -Scott

On Tue, Aug 23, 2016 at 4:57 PM,  <bsep@chromium.org> wrote:
> On 2016/08/23 23:54:45, sky wrote:
>> Did you investigate what broke in your patch? I wouldn't think it that
>> hard to repro with a chromeos build.
>
> I don't have a way to build ChromeOS right now, so I reverted to take the
> time
> pressure off while I set that up and finish the other thing I'm working on.
>
> https://codereview.chromium.org/2262563002/

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698