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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/bindings/v8/custom/V8WindowCustom.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void reset(); 110 void reset();
111 111
112 PassRefPtr<MediaQueryList> matchMedia(const String&); 112 PassRefPtr<MediaQueryList> matchMedia(const String&);
113 113
114 unsigned pendingUnloadEventListeners() const; 114 unsigned pendingUnloadEventListeners() const;
115 115
116 static FloatRect adjustWindowRect(Frame*, const FloatRect& pendingChange s); 116 static FloatRect adjustWindowRect(Frame*, const FloatRect& pendingChange s);
117 117
118 bool allowPopUp(); // Call on first window, not target window. 118 bool allowPopUp(); // Call on first window, not target window.
119 static bool allowPopUp(Frame* firstFrame); 119 static bool allowPopUp(Frame* firstFrame);
120 static bool canShowModalDialog(const Frame*);
121 static bool canShowModalDialogNow(const Frame*);
122 120
123 // DOM Level 0 121 // DOM Level 0
124 122
125 Screen* screen() const; 123 Screen* screen() const;
126 History* history() const; 124 History* history() const;
127 BarProp* locationbar() const; 125 BarProp* locationbar() const;
128 BarProp* menubar() const; 126 BarProp* menubar() const;
129 BarProp* personalbar() const; 127 BarProp* personalbar() const;
130 BarProp* scrollbars() const; 128 BarProp* scrollbars() const;
131 BarProp* statusbar() const; 129 BarProp* statusbar() const;
(...skipping 11 matching lines...) Expand all
143 141
144 void focus(ExecutionContext* = 0); 142 void focus(ExecutionContext* = 0);
145 void blur(); 143 void blur();
146 void close(ExecutionContext* = 0); 144 void close(ExecutionContext* = 0);
147 void print(); 145 void print();
148 void stop(); 146 void stop();
149 147
150 PassRefPtr<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString, 148 PassRefPtr<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
151 DOMWindow* callingWindow, DOMWindow* enteredWindow); 149 DOMWindow* callingWindow, DOMWindow* enteredWindow);
152 150
153 typedef void (*PrepareDialogFunction)(DOMWindow*, void* context);
154 void showModalDialog(const String& urlString, const String& dialogFeatur esString,
155 DOMWindow* callingWindow, DOMWindow* enteredWindow, PrepareDialogFun ction, void* functionContext);
156
157 void alert(const String& message); 151 void alert(const String& message);
158 bool confirm(const String& message); 152 bool confirm(const String& message);
159 String prompt(const String& message, const String& defaultValue); 153 String prompt(const String& message, const String& defaultValue);
160 154
161 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const; 155 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const;
162 156
163 bool offscreenBuffering() const; 157 bool offscreenBuffering() const;
164 158
165 int outerHeight() const; 159 int outerHeight() const;
166 int outerWidth() const; 160 int outerWidth() const;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } 373 }
380 374
381 inline String DOMWindow::defaultStatus() const 375 inline String DOMWindow::defaultStatus() const
382 { 376 {
383 return m_defaultStatus; 377 return m_defaultStatus;
384 } 378 }
385 379
386 } // namespace WebCore 380 } // namespace WebCore
387 381
388 #endif // DOMWindow_h 382 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8WindowCustom.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698