BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / chrome_browser_window.mm
blob8aa3743899f7e226007646587ed2c11d614256b6
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)])
16     return NULL;
17   return [delegate themeProvider];
20 - (ThemedWindowStyle)themedWindowStyle {
21   id delegate = [self delegate];
22   if (![delegate respondsToSelector:@selector(themedWindowStyle)])
23     return THEMED_NORMAL;
24   return [delegate themedWindowStyle];
27 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment {
28   id delegate = [self delegate];
29   if (![delegate respondsToSelector:@selector(themeImagePositionForAlignment:)])
30     return NSZeroPoint;
31   return [delegate themeImagePositionForAlignment:alignment];
34 @end