Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_window.h

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WIN DOW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WIN DOW_H_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WIN DOW_H_ 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_WIN DOW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" 10 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
11 11
12 // A NSWindow subclass that gives a custom look (rounded corners and white 12 // A NSWindow subclass that gives a custom look (rounded corners and white
13 // background). 13 // background).
14 // 14 //
15 // Unfortunately the word "window" here is overused. ConstrainedWindow is the 15 // Note that WebContentsModalDialog is the web contents modal dialog
16 // tab modal dialog controller. ConstrainedWindowCustomWindow is the custom 16 // controller. ConstrainedWindowCustomWindow is the custom NSWindow that gives
17 // NSWindow that gives us the new look (rounded corners and white background). 17 // us the new look (rounded corners and white background).
18 // 18 //
19 // If a ConstrainedWindow is using ConstrainedWindowAlert to display its UI 19 // If a WebContentsModalDialog 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 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. 21 // custom UI (say from a nib) then it should use this class.
22 @interface ConstrainedWindowCustomWindow : ChromeEventProcessingWindow 22 @interface ConstrainedWindowCustomWindow : ChromeEventProcessingWindow
23 23
24 // Initializes the window with the given content rect. 24 // Initializes the window with the given content rect.
25 - (id)initWithContentRect:(NSRect)contentRect; 25 - (id)initWithContentRect:(NSRect)contentRect;
26 26
27 @end 27 @end
28 28
29 // The content view for the custom window. 29 // The content view for the custom window.
30 @interface ConstrainedWindowCustomWindowContentView : NSView 30 @interface ConstrainedWindowCustomWindowContentView : NSView
31 @end 31 @end
32 32
33 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_ WINDOW_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_ WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698