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

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

Issue 7734003: Implement basic theming for panel titlebars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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/browser_window_utils.h
diff --git a/chrome/browser/ui/cocoa/browser_window_utils.h b/chrome/browser/ui/cocoa/browser_window_utils.h
index 97d454f5e60dbf4f3b1841a928c38697c36a6612..6f4359f2147d8a8452bba44c24ca102cc5e55480 100644
--- a/chrome/browser/ui/cocoa/browser_window_utils.h
+++ b/chrome/browser/ui/cocoa/browser_window_utils.h
@@ -23,6 +23,17 @@ struct NativeWebKeyboardEvent;
// NSWindow must be a ChromeEventProcessingWindow.
+ (BOOL)handleKeyboardEvent:(NSEvent*)event
inWindow:(NSWindow*)window;
+
+// Work around Cocoa bug: if a window changes title during the tracking of the
+// Window menu it doesn't display well and the constant re-sorting of the list
+// makes it difficult for the user to pick the desired window. Delay window
+// title updates until the default run-loop mode.
++ (void)delayedReplace:(NSString*)oldTitle
+ with:(NSString*)newTitle
+ on:(NSWindow*)window;
+
++ (NSPoint)themePatternPhaseFor:(NSView*)windowView
+ withTabStrip:(NSView*)tabStripView;
@end
#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698