1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #import "chrome/browser/ui/cocoa/chrome_browser_window.h"
7 #include "base/logging.h"
8 #import "chrome/browser/ui/cocoa/themed_window.h"
9 #include "ui/base/theme_provider.h"
11 @implementation ChromeBrowserWindow
13 - (ui::ThemeProvider*)themeProvider {
14 id delegate = [self delegate];
15 if (![delegate respondsToSelector:@selector(themeProvider)])
17 return [delegate themeProvider];
20 - (ThemedWindowStyle)themedWindowStyle {
21 id delegate = [self delegate];
22 if (![delegate respondsToSelector:@selector(themedWindowStyle)])
24 return [delegate themedWindowStyle];
27 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment {
28 id delegate = [self delegate];
29 if (![delegate respondsToSelector:@selector(themeImagePositionForAlignment:)])
31 return [delegate themeImagePositionForAlignment:alignment];