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

Issue 10037008: Fix window shadows. (Closed)

Created:
8 years, 8 months ago by Avi (use Gerrit)
Modified:
8 years, 8 months ago
Reviewers:
Mark Mentovai, Nico, jbates
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Fix window shadows. For accelerated content, switch to a less scary method of fixing window shadows that works better. BUG=53382, 56154, 120772 TEST=go to accelerated page, notice no square corners Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132206

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed sort #

Total comments: 19

Patch Set 3 : mark #

Total comments: 2

Patch Set 4 : make ALL the consts #

Patch Set 5 : rebase only #

Patch Set 6 : only do magic for titled windows #

Patch Set 7 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -332 lines) Patch
M chrome/browser/ui/cocoa/browser_frame_view.mm View 4 chunks +0 lines, -49 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/accelerated_plugin_view_mac.mm View 2 chunks +0 lines, -29 lines 0 comments Download
D content/browser/renderer_host/accelerated_plugin_view_mac_unittest.mm View 1 chunk +0 lines, -189 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 3 chunks +1 line, -25 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/cocoa/underlay_opengl_hosting_window.h View 1 2 1 chunk +1 line, -17 lines 0 comments Download
M ui/base/cocoa/underlay_opengl_hosting_window.mm View 1 2 3 4 5 1 chunk +111 lines, -12 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Avi (use Gerrit)
Yes, three reviewers. Please let me know what you think. My main concern here is ...
8 years, 8 months ago (2012-04-10 16:49:41 UTC) #1
jbates
LGTM, I think this looks pretty good. If performance is a problem, another option is ...
8 years, 8 months ago (2012-04-10 17:54:00 UTC) #2
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10037008/diff/1/ui/base/cocoa/underlay_opengl_hosting_window.mm File ui/base/cocoa/underlay_opengl_hosting_window.mm (right): https://chromiumcodereview.appspot.com/10037008/diff/1/ui/base/cocoa/underlay_opengl_hosting_window.mm#newcode40 ui/base/cocoa/underlay_opengl_hosting_window.mm:40: NSComparisonResult OpaqueViewsOnTop(id view1, id view2, void* context) { On ...
8 years, 8 months ago (2012-04-10 18:34:45 UTC) #3
Mark Mentovai
Cool. LGTM. https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.h File ui/base/cocoa/underlay_opengl_hosting_window.h (right): https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.h#newcode16 ui/base/cocoa/underlay_opengl_hosting_window.h:16: - (id)initWithContentRect:(NSRect)contentRect You don’t need to declare ...
8 years, 8 months ago (2012-04-10 19:08:29 UTC) #4
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.h File ui/base/cocoa/underlay_opengl_hosting_window.h (right): https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.h#newcode16 ui/base/cocoa/underlay_opengl_hosting_window.h:16: - (id)initWithContentRect:(NSRect)contentRect On 2012/04/10 19:08:30, Mark Mentovai wrote: > ...
8 years, 8 months ago (2012-04-10 19:42:49 UTC) #5
Mark Mentovai
https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.mm File ui/base/cocoa/underlay_opengl_hosting_window.mm (right): https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.mm#newcode78 ui/base/cocoa/underlay_opengl_hosting_window.mm:78: method_getTypeEncoding(m)); Avi wrote: > I'm having trouble; how do ...
8 years, 8 months ago (2012-04-10 19:48:28 UTC) #6
Nico
lgtm That's a lot simpler :-) Can you check this does the right thing for ...
8 years, 8 months ago (2012-04-10 19:52:48 UTC) #7
Avi (use Gerrit)
> Can you check this does the right thing for an extension bubble with composited ...
8 years, 8 months ago (2012-04-10 20:11:22 UTC) #8
Mark Mentovai
https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.mm File ui/base/cocoa/underlay_opengl_hosting_window.mm (right): https://chromiumcodereview.appspot.com/10037008/diff/5001/ui/base/cocoa/underlay_opengl_hosting_window.mm#newcode78 ui/base/cocoa/underlay_opengl_hosting_window.mm:78: method_getTypeEncoding(m)); Avi wrote: > Well, sure, but I'm not ...
8 years, 8 months ago (2012-04-10 20:19:10 UTC) #9
Avi (use Gerrit)
On 2012/04/10 19:52:48, Nico wrote: > That's a lot simpler :-) Can you check this ...
8 years, 8 months ago (2012-04-12 20:11:00 UTC) #10
Avi (use Gerrit)
fffffuuuuu Bubbles are typically InfoBubbleWindows, which are ChromeEventProcessingWindows, which are UnderlayOpenGLHostingWindows. And in that case, ...
8 years, 8 months ago (2012-04-12 20:17:01 UTC) #11
Avi (use Gerrit)
OK, fixed so we only do magic for titled windows. WDYT?
8 years, 8 months ago (2012-04-12 20:38:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/10037008/15001
8 years, 8 months ago (2012-04-13 15:45:32 UTC) #13
commit-bot: I haz the power
8 years, 8 months ago (2012-04-13 17:18:43 UTC) #14
Change committed as 132206

Powered by Google App Engine
This is Rietveld 408576698