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