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

Issue 1630001: Theme delegate fixes for the 10.6 SDK folllowing r43708.... (Closed)

Created:
10 years, 8 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Theme delegate fixes for the 10.6 SDK folllowing r43708. In the 10.6 SDK, -[NSWindow delegate] returns id<NSWindowDelegate>, not just id, and the three selectors used in r43708 are not declared in NSWindowDelegate. This results in errors such as "warning: '-themeProvider' not found in protocol(s)". Testing the selectors before using them is safe and not incorrect, but you guys might actually want to make more of an assertion about what it means to be a ChromeBrowserWindow's or FullscreenWindow's delegate, or perhaps even a ChromeEventProcessingWindow's delegate. Alternatively, it may be appropriate to add a ChromeThemedWindow layer as a subclass of CEPW and superclass of CBW and FW. (CEPW's other subclass is InfoBubbleWindow.) BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43746

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M chrome/browser/cocoa/chrome_browser_window.mm View 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/fullscreen_window.mm View 1 chunk +12 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mark Mentovai
The patch itself fixes the build error, but I suspect that we might want to ...
10 years, 8 months ago (2010-04-06 18:16:15 UTC) #1
rohitrao (ping after 24h)
This was supposed to be a quick fix to get themes working again. In the ...
10 years, 8 months ago (2010-04-06 18:52:30 UTC) #2
Avi (use Gerrit)
Code LGTM I'm not sure another class layer would mean much. After all, it still ...
10 years, 8 months ago (2010-04-06 19:38:05 UTC) #3
Mark Mentovai
10 years, 8 months ago (2010-04-06 19:40:16 UTC) #4
The other thing to do would be to assert in the code that the delegate needs to
take a specific form.  See, for example, http://codereview.chromium.org/1550002
from last week.

I wouldn’t want to do that without sticking an intermediate class in there,
though.  Too much heinous stuff duplicated in these classes.

Powered by Google App Engine
This is Rietveld 408576698