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 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_
8 #import <Cocoa/Cocoa.h>
10 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
12 // A NSWindow subclass that gives a custom look (rounded corners and white
15 // Note that ConstrainedWindowMac is the web contents modal dialog
16 // controller. ConstrainedWindowCustomWindow is the custom NSWindow that gives
17 // us the new look (rounded corners and white background).
19 // If a ConstrainedWindowMac is using ConstrainedWindowAlert to display its UI
20 // then it doesn't have to use this class. On the other hand, if it has some
21 // custom UI (say from a nib) then it should use this class.
22 @interface ConstrainedWindowCustomWindow
: ChromeEventProcessingWindow
24 // Initializes the window with the given content rect.
25 - (id
)initWithContentRect
:(NSRect
)contentRect
;
29 // The content view for the custom window.
30 @interface ConstrainedWindowCustomWindowContentView
: NSView
33 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_