Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / constrained_window / constrained_window_custom_window.h
blobca8712de55f68b6718749798ea50d812d7a1e7cb
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 @end
29 // The content view for the custom window.
30 @interface ConstrainedWindowCustomWindowContentView : NSView
31 @end
33 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WINDOW_H_