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

Issue 11836003: Allow message center and related bubbles to render on Windows. (Closed)

Created:
7 years, 11 months ago by dewittj
Modified:
7 years, 11 months ago
Reviewers:
msw, Jun Mukai, sadrul
CC:
chromium-reviews, tfarina, alicet1, msw+watch_chromium.org, sky
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow message center and related bubbles to render on Windows. SetPaintToLayer causes Windows to render only black squares since there is no compositor there. BUG=168605 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177742

Patch Set 1 #

Patch Set 2 : Cut out SlideOutView when not using Aura. #

Total comments: 2

Patch Set 3 : Fix an indentation nit. #

Patch Set 4 : Add back a missing hunk. #

Patch Set 5 : Remove ifdefs. #

Total comments: 13

Patch Set 6 : Take out Impl, address nits. #

Total comments: 4

Patch Set 7 : Move comment and early return instead of big blocks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -24 lines) Patch
M ui/message_center/message_center_bubble.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M ui/message_center/message_popup_bubble.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M ui/message_center/quiet_mode_bubble.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 4 chunks +11 lines, -8 lines 0 comments Download
M ui/views/controls/slide_out_view.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/slide_out_view.cc View 1 2 3 4 5 6 4 chunks +22 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dewittj
Please take a look at this. The work is done by #ifdefs, which are sub-optimal ...
7 years, 11 months ago (2013-01-11 23:48:30 UTC) #1
Jun Mukai
lgtm with a nit https://codereview.chromium.org/11836003/diff/15003/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc (right): https://codereview.chromium.org/11836003/diff/15003/ui/views/bubble/tray_bubble_view.cc#newcode283 ui/views/bubble/tray_bubble_view.cc:283: new TrayBubbleContentMask(bubble_border_->GetBorderCornerRadius() - 1)); fix ...
7 years, 11 months ago (2013-01-12 01:32:57 UTC) #2
dewittj
https://codereview.chromium.org/11836003/diff/15003/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc (right): https://codereview.chromium.org/11836003/diff/15003/ui/views/bubble/tray_bubble_view.cc#newcode283 ui/views/bubble/tray_bubble_view.cc:283: new TrayBubbleContentMask(bubble_border_->GetBorderCornerRadius() - 1)); On 2013/01/12 01:32:57, Jun Mukai ...
7 years, 11 months ago (2013-01-12 01:38:10 UTC) #3
dewittj
fyi mukai, Had to change another line to fix the Win bot, I somehow left ...
7 years, 11 months ago (2013-01-12 02:01:30 UTC) #4
Jun Mukai
On 2013/01/12 02:01:30, dewittj wrote: > fyi mukai, > > Had to change another line ...
7 years, 11 months ago (2013-01-12 02:04:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11836003/19019
7 years, 11 months ago (2013-01-14 17:49:33 UTC) #6
commit-bot: I haz the power
Presubmit check for 11836003-19019 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-14 17:49:36 UTC) #7
dewittj
msw, could you do an OWNERS review for ui/views/bubble? Thanks.
7 years, 11 months ago (2013-01-14 18:07:38 UTC) #8
msw
Is there another way to check for [the lack of] layer support? Does layer() return ...
7 years, 11 months ago (2013-01-14 19:33:59 UTC) #9
sky
I believe we create the Layer even if the compositor isn't supported. I do agree ...
7 years, 11 months ago (2013-01-14 22:06:09 UTC) #10
dewittj
Is there a good way to detect if the compositor isn't supported, before the view ...
7 years, 11 months ago (2013-01-15 18:19:24 UTC) #11
sky
Not sure, but I would think it possible to plumb something through. -Scott On Tue, ...
7 years, 11 months ago (2013-01-15 18:34:13 UTC) #12
dewittj
Instead of ifdefs, I used the function get_use_acceleration_when_possible(). This function essentially returns a boolean based ...
7 years, 11 months ago (2013-01-17 01:47:58 UTC) #13
msw
I think get_use_acceleration_when_possible() is reasonable for now (renaming/formalizing that or making the layer operations no-op ...
7 years, 11 months ago (2013-01-17 02:28:30 UTC) #14
sadrul
https://codereview.chromium.org/11836003/diff/44001/ui/views/controls/slide_out_view_impl_aura.cc File ui/views/controls/slide_out_view_impl_aura.cc (right): https://codereview.chromium.org/11836003/diff/44001/ui/views/controls/slide_out_view_impl_aura.cc#newcode24 ui/views/controls/slide_out_view_impl_aura.cc:24: gfx::Transform transform; On 2013/01/17 02:28:30, msw wrote: > Perhaps ...
7 years, 11 months ago (2013-01-17 03:27:22 UTC) #15
dewittj
Thanks for the input. PTAL, I followed your suggestion about the Impl class and axed ...
7 years, 11 months ago (2013-01-17 21:25:18 UTC) #16
msw
LGTM, thanks! https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc File ui/views/controls/slide_out_view.cc (right): https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc#newcode15 ui/views/controls/slide_out_view.cc:15: // Only use accelerated compositing when it ...
7 years, 11 months ago (2013-01-17 22:45:39 UTC) #17
dewittj
ping sadrul slide_out_view*, thanks.
7 years, 11 months ago (2013-01-18 17:50:55 UTC) #18
sadrul
LGTM https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc File ui/views/controls/slide_out_view.cc (right): https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc#newcode72 ui/views/controls/slide_out_view.cc:72: // Restore the layer state. Move the comment ...
7 years, 11 months ago (2013-01-18 17:53:11 UTC) #19
dewittj
https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc File ui/views/controls/slide_out_view.cc (right): https://codereview.chromium.org/11836003/diff/51001/ui/views/controls/slide_out_view.cc#newcode15 ui/views/controls/slide_out_view.cc:15: // Only use accelerated compositing when it is available ...
7 years, 11 months ago (2013-01-18 18:30:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11836003/60001
7 years, 11 months ago (2013-01-18 18:31:36 UTC) #21
commit-bot: I haz the power
7 years, 11 months ago (2013-01-18 20:41:11 UTC) #22
Message was sent while issue was closed.
Change committed as 177742

Powered by Google App Engine
This is Rietveld 408576698