blob: 8aa3743899f7e226007646587ed2c11d614256b6 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "chrome/browser/ui/cocoa/chrome_browser_window.h"
#include "base/logging.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
#include "ui/base/theme_provider.h"
@implementation ChromeBrowserWindow
- (ui::ThemeProvider*)themeProvider {
id delegate = [self delegate];
if (![delegate respondsToSelector:@selector(themeProvider)])
return NULL;
return [delegate themeProvider];
}
- (ThemedWindowStyle)themedWindowStyle {
id delegate = [self delegate];
if (![delegate respondsToSelector:@selector(themedWindowStyle)])
return THEMED_NORMAL;
return [delegate themedWindowStyle];
}
- (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment {
id delegate = [self delegate];
if (![delegate respondsToSelector:@selector(themeImagePositionForAlignment:)])
return NSZeroPoint;
return [delegate themeImagePositionForAlignment:alignment];
}
@end