Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / constrained_window / constrained_window_custom_window.h
blob5f8772af827a0c6025fb99377cf7b407cc8af965
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
13 // background).
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;
27 // Initializes the window with the given content rect and style mask.
28 - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle;
30 @end
32 // The content view for the custom window.
33 @interface ConstrainedWindowCustomWindowContentView : NSView
34 @end
36 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_