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

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

Issue 1176843006: Move window.close implementation to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove resetting of the main view. Created 5 years, 6 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 | « no previous file | 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowBase64.h" 10 #include "core/frame/DOMWindowBase64.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 126 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
127 // 90 is when rotated counter clockwise. 127 // 90 is when rotated counter clockwise.
128 virtual int orientation() const = 0; 128 virtual int orientation() const = 0;
129 129
130 virtual Console* console() const = 0; 130 virtual Console* console() const = 0;
131 131
132 virtual DOMSelection* getSelection() = 0; 132 virtual DOMSelection* getSelection() = 0;
133 133
134 virtual void focus(ExecutionContext*) = 0; 134 virtual void focus(ExecutionContext*) = 0;
135 virtual void blur() = 0; 135 virtual void blur() = 0;
136 virtual void close(ExecutionContext*) = 0; 136 void close(ExecutionContext*);
137 virtual void print() = 0; 137 virtual void print() = 0;
138 virtual void stop() = 0; 138 virtual void stop() = 0;
139 139
140 virtual void alert(const String& message = String()) = 0; 140 virtual void alert(const String& message = String()) = 0;
141 virtual bool confirm(const String& message) = 0; 141 virtual bool confirm(const String& message) = 0;
142 virtual String prompt(const String& message, const String& defaultValue) = 0 ; 142 virtual String prompt(const String& message, const String& defaultValue) = 0 ;
143 143
144 virtual bool find(const String&, bool caseSensitive, bool backwards, bool wr ap, bool wholeWord, bool searchInFrames, bool showDialog) const = 0; 144 virtual bool find(const String&, bool caseSensitive, bool backwards, bool wr ap, bool wholeWord, bool searchInFrames, bool showDialog) const = 0;
145 145
146 virtual void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAut o) const = 0; 146 virtual void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAut o) const = 0;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // implementation details to scripts. 219 // implementation details to scripts.
220 bool m_windowIsClosing; 220 bool m_windowIsClosing;
221 221
222 private: 222 private:
223 mutable RefPtrWillBeMember<Location> m_location; 223 mutable RefPtrWillBeMember<Location> m_location;
224 }; 224 };
225 225
226 } // namespace blink 226 } // namespace blink
227 227
228 #endif // DOMWindow_h 228 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698