- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / cocoa / constrained_window / constrained_window_custom_window.h
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.
4
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_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
11
12 // A NSWindow subclass that gives a custom look (rounded corners and white
13 // background).
14 //
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).
18 //
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
23
24 // Initializes the window with the given content rect.
25 - (id)initWithContentRect:(NSRect)contentRect;
26
27 @end
28
29 // The content view for the custom window.
30 @interface ConstrainedWindowCustomWindowContentView : NSView
31 @end
32
33 #endif  // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_