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

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: Rebased Created 7 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 b28d50d62f659d90470d7c8f05120463b83f624f..0a137384b83be21a4f86e7cdc4943238807df08c 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
+ 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 by the new tab button before the tab strip is layed
+// out.
++ (NSPoint)themeImagePositionInTabStripCoords:(NSView*)tabStripView
+ alignment:(ThemeImageAlignment)alignment;
+ (void)activateWindowForController:(NSWindowController*)controller;
@end
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/browser_window_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698