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

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

Issue 19675008: Move btoa() / atob() implementation out of DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take Kentaro's feedback into consideration Created 7 years, 5 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/core/dom/ParentNode.idl ('k') | Source/core/page/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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 PassRefPtr<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString, 152 PassRefPtr<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
153 DOMWindow* activeWindow, DOMWindow* firstWindow); 153 DOMWindow* activeWindow, DOMWindow* firstWindow);
154 154
155 typedef void (*PrepareDialogFunction)(DOMWindow*, void* context); 155 typedef void (*PrepareDialogFunction)(DOMWindow*, void* context);
156 void showModalDialog(const String& urlString, const String& dialogFeatur esString, 156 void showModalDialog(const String& urlString, const String& dialogFeatur esString,
157 DOMWindow* activeWindow, DOMWindow* firstWindow, PrepareDialogFuncti on, void* functionContext); 157 DOMWindow* activeWindow, DOMWindow* firstWindow, PrepareDialogFuncti on, void* functionContext);
158 158
159 void alert(const String& message); 159 void alert(const String& message);
160 bool confirm(const String& message); 160 bool confirm(const String& message);
161 String prompt(const String& message, const String& defaultValue); 161 String prompt(const String& message, const String& defaultValue);
162 String btoa(const String& stringToEncode, ExceptionCode&);
163 String atob(const String& encodedString, ExceptionCode&);
164 162
165 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const; 163 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const;
166 164
167 bool offscreenBuffering() const; 165 bool offscreenBuffering() const;
168 166
169 int outerHeight() const; 167 int outerHeight() const;
170 int outerWidth() const; 168 int outerWidth() const;
171 int innerHeight() const; 169 int innerHeight() const;
172 int innerWidth() const; 170 int innerWidth() const;
173 int screenX() const; 171 int screenX() const;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 } 450 }
453 451
454 inline String DOMWindow::defaultStatus() const 452 inline String DOMWindow::defaultStatus() const
455 { 453 {
456 return m_defaultStatus; 454 return m_defaultStatus;
457 } 455 }
458 456
459 } // namespace WebCore 457 } // namespace WebCore
460 458
461 #endif // DOMWindow_h 459 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ParentNode.idl ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698