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

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..6c6edcc75ec81acb27e1318b22b798bd84b362ba 100644
--- a/chrome/browser/ui/cocoa/browser_window_utils.h
+++ b/chrome/browser/ui/cocoa/browser_window_utils.h
@@ -23,6 +23,20 @@ struct NativeWebKeyboardEvent;
// NSWindow must be a ChromeEventProcessingWindow.
+ (BOOL)handleKeyboardEvent:(NSEvent*)event
inWindow:(NSWindow*)window;
+
+// Schedule a window title change in the next run loop iteration. This works
+// around a 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.
+// Passing in a non-nil oldTitle will also cancel any pending title changes with
+// a matching window and title. This function returns a NSString* that can be
+// passed in future calls as oldTitle.
++ (NSString*)scheduleReplaceOldTitle:(NSString*)oldTitle
+ withNewTitle:(NSString*)newTitle
+ forWindow:(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