| 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 "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class Frame; | 28 class Frame; |
| 29 class FrameRequestCallback; | 29 class FrameRequestCallback; |
| 30 class History; | 30 class History; |
| 31 class IdleRequestCallback; | 31 class IdleRequestCallback; |
| 32 class IdleRequestOptions; | 32 class IdleRequestOptions; |
| 33 class Location; | 33 class Location; |
| 34 class LocalDOMWindow; | 34 class LocalDOMWindow; |
| 35 class MediaQueryList; | 35 class MediaQueryList; |
| 36 class Navigator; | 36 class Navigator; |
| 37 class Screen; | 37 class Screen; |
| 38 class ScriptState; |
| 38 class ScrollToOptions; | 39 class ScrollToOptions; |
| 39 class SerializedScriptValue; | 40 class SerializedScriptValue; |
| 40 class Storage; | 41 class Storage; |
| 41 class StyleMedia; | 42 class StyleMedia; |
| 42 | 43 |
| 43 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { | 44 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { |
| 44 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 45 public: | 46 public: |
| 46 ~DOMWindow() override; | 47 ~DOMWindow() override; |
| 47 | 48 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This is the interface orientation in degrees. Some examples are: | 127 // This is the interface orientation in degrees. Some examples are: |
| 127 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 128 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 128 // 90 is when rotated counter clockwise. | 129 // 90 is when rotated counter clockwise. |
| 129 virtual int orientation() const = 0; | 130 virtual int orientation() const = 0; |
| 130 | 131 |
| 131 virtual DOMSelection* getSelection() = 0; | 132 virtual DOMSelection* getSelection() = 0; |
| 132 | 133 |
| 133 void focus(ExecutionContext*); | 134 void focus(ExecutionContext*); |
| 134 virtual void blur() = 0; | 135 virtual void blur() = 0; |
| 135 void close(ExecutionContext*); | 136 void close(ExecutionContext*); |
| 136 virtual void print() = 0; | 137 virtual void print(ScriptState*) = 0; |
| 137 virtual void stop() = 0; | 138 virtual void stop() = 0; |
| 138 | 139 |
| 139 virtual void alert(const String& message = String()) = 0; | 140 virtual void alert(ScriptState*, const String& message = String()) = 0; |
| 140 virtual bool confirm(const String& message) = 0; | 141 virtual bool confirm(ScriptState*, const String& message) = 0; |
| 141 virtual String prompt(const String& message, const String& defaultValue) = 0
; | 142 virtual String prompt(ScriptState*, const String& message, const String& def
aultValue) = 0; |
| 142 | 143 |
| 143 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; |
| 144 | 145 |
| 145 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; |
| 146 virtual void scrollBy(const ScrollToOptions&) const = 0; | 147 virtual void scrollBy(const ScrollToOptions&) const = 0; |
| 147 virtual void scrollTo(double x, double y) const = 0; | 148 virtual void scrollTo(double x, double y) const = 0; |
| 148 virtual void scrollTo(const ScrollToOptions&) const = 0; | 149 virtual void scrollTo(const ScrollToOptions&) const = 0; |
| 149 void scroll(double x, double y) const { scrollTo(x, y); } | 150 void scroll(double x, double y) const { scrollTo(x, y); } |
| 150 void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollT
oOptions); } | 151 void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollT
oOptions); } |
| 151 virtual void moveBy(int x, int y) const = 0; | 152 virtual void moveBy(int x, int y) const = 0; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // implementation details to scripts. | 224 // implementation details to scripts. |
| 224 bool m_windowIsClosing; | 225 bool m_windowIsClosing; |
| 225 | 226 |
| 226 private: | 227 private: |
| 227 mutable Member<Location> m_location; | 228 mutable Member<Location> m_location; |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace blink | 231 } // namespace blink |
| 231 | 232 |
| 232 #endif // DOMWindow_h | 233 #endif // DOMWindow_h |
| OLD | NEW |