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

Unified Diff: chrome/browser/ui/cocoa/themed_window.h

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/themed_window.h
diff --git a/chrome/browser/ui/cocoa/themed_window.h b/chrome/browser/ui/cocoa/themed_window.h
index c35db6d70f9ea1c31bb593685680ffbd7360b3ee..61ba1dd5c5d03e0a91a604d03905cfb76d68ef35 100644
--- a/chrome/browser/ui/cocoa/themed_window.h
+++ b/chrome/browser/ui/cocoa/themed_window.h
@@ -21,12 +21,18 @@ enum {
};
typedef NSUInteger ThemedWindowStyle;
+// Indicates how the top of the theme image should be aligned.
+enum ThemePatternAlignment {
+ THEME_PATTERN_ALIGN_WITH_FRAME,
+ THEME_PATTERN_ALIGN_WITH_TAB_STRIP
Nico 2013/07/17 18:03:04 Add comments explaining what these do and when to
+};
+
// Implemented by windows that support theming.
@interface NSWindow (ThemeProvider)
- (ThemeProvider*)themeProvider;
- (ThemedWindowStyle)themedWindowStyle;
-- (NSPoint)themePatternPhase;
+- (NSPoint)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment;
@end
#endif // CHROME_BROWSER_UI_COCOA_THEMED_WINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698