| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |