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

Issue 2009333002: Converts Widget::SetOpacity from char to float (Closed)

Created:
4 years, 7 months ago by sky
Modified:
4 years, 6 months ago
CC:
chromium-reviews, asanka, tfarina, dbeam+watch-downloads_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Converts Widget::SetOpacity from char to float This better matches what we do every where. BUG=none TEST=none R=ben@chromium.org Committed: https://crrev.com/8b858455d0b6ef5155103a0c91956ee259813391 Cr-Commit-Position: refs/heads/master@{#395980}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -55 lines) Patch
M chrome/browser/ui/views/download/download_started_animation_views.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/exclusive_access_bubble_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/screen_capture_notification_ui_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 12 chunks +25 lines, -25 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/widget.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
sky
4 years, 7 months ago (2016-05-25 18:06:19 UTC) #1
Ben Goodger (Google)
lgtm
4 years, 7 months ago (2016-05-25 20:23:41 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009333002/1
4 years, 7 months ago (2016-05-25 20:29:14 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-25 20:36:01 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/8b858455d0b6ef5155103a0c91956ee259813391 Cr-Commit-Position: refs/heads/master@{#395980}
4 years, 7 months ago (2016-05-25 20:38:27 UTC) #7
Peter Kasting
This seems to have missed a whole bunch of callsites, which will produce bad effects ...
4 years, 7 months ago (2016-05-27 06:00:58 UTC) #8
sky
4 years, 6 months ago (2016-05-27 15:18:54 UTC) #9
Message was sent while issue was closed.
Implicit conversion suxs. I will take another look this morning.

  -Scott

On Thu, May 26, 2016 at 11:00 PM,  <pkasting@chromium.org> wrote:
> This seems to have missed a whole bunch of callsites, which will produce bad
> effects (since calling Widget::SetOpacity() with a value greater than 1 will
> result in strange graphic problems like drawing solid white).
>
> I'm trying to fix these in https://codereview.chromium.org/2016203002 , but
> that
> will only catch things that trigger the DCHECKs I'm adding when run on the
> trybots. Please consider re-auditing everything that could call any of these
> functions, and adding tests to catch any places I've missed.
>
> https://codereview.chromium.org/2009333002/

-- 
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