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

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

Issue 19918002: Refactor [FramedBrowserWindow drawWindowThemeInDirtyRect:] to use themeImagePositionForAlignment: (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/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 b28d50d62f659d90470d7c8f05120463b83f624f..eb3662963b81a2e1d7bf0a7a0e45e64b74a1554b 100644
--- a/chrome/browser/ui/cocoa/browser_window_utils.h
+++ b/chrome/browser/ui/cocoa/browser_window_utils.h
@@ -7,6 +7,8 @@
#import <Cocoa/Cocoa.h>
+#include "chrome/browser/ui/cocoa/themed_window.h"
+
class Browser;
namespace content {
@@ -37,8 +39,19 @@ struct NativeWebKeyboardEvent;
withNewTitle:(NSString*)newTitle
forWindow:(NSWindow*)window;
-+ (NSPoint)themePatternPhaseFor:(NSView*)windowView
- withTabStrip:(NSView*)tabStripView;
+// Returns the position in the coordinates of |windowView| that the top left of
+// a theme image should be painted at. See
+// [BrowserWindowController themeImagePositionForAlignment:] for more details.
++ (NSPoint) themeImagePositionFor:(NSView*)windowView
Robert Sesek 2013/07/30 14:25:24 nit: no space after )
+ withTabStrip:(NSView*)tabStripView
+ alignment:(ThemeImageAlignment)alignment;
+
+// Returns the position in the coordinates of |tabStripView| that the top left
+// of a theme image should be painted at. This method exists so that the
+// position can be queried before the tab strip is layed out by the new tab
+// button.
++ (NSPoint) themeImagePositionInTabStripCoords:(NSView*)tabStripView
Robert Sesek 2013/07/30 14:25:24 nit: same
+ alignment:(ThemeImageAlignment)alignment;
+ (void)activateWindowForController:(NSWindowController*)controller;
@end

Powered by Google App Engine
This is Rietveld 408576698