| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 virtual ApplicationCache* applicationCache() const = 0; | 123 virtual ApplicationCache* applicationCache() const = 0; |
| 124 | 124 |
| 125 // This is the interface orientation in degrees. Some examples are: | 125 // This is the interface orientation in degrees. Some examples are: |
| 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 DOMWindowCSS* css() const = 0; | |
| 133 | |
| 134 virtual DOMSelection* getSelection() = 0; | 132 virtual DOMSelection* getSelection() = 0; |
| 135 | 133 |
| 136 virtual void focus(ExecutionContext*) = 0; | 134 virtual void focus(ExecutionContext*) = 0; |
| 137 virtual void blur() = 0; | 135 virtual void blur() = 0; |
| 138 virtual void close(ExecutionContext*) = 0; | 136 virtual void close(ExecutionContext*) = 0; |
| 139 virtual void print() = 0; | 137 virtual void print() = 0; |
| 140 virtual void stop() = 0; | 138 virtual void stop() = 0; |
| 141 | 139 |
| 142 virtual void alert(const String& message = String()) = 0; | 140 virtual void alert(const String& message = String()) = 0; |
| 143 virtual bool confirm(const String& message) = 0; | 141 virtual bool confirm(const String& message) = 0; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // implementation details to scripts. | 227 // implementation details to scripts. |
| 230 bool m_windowIsClosing; | 228 bool m_windowIsClosing; |
| 231 | 229 |
| 232 private: | 230 private: |
| 233 mutable RefPtrWillBeMember<Location> m_location; | 231 mutable RefPtrWillBeMember<Location> m_location; |
| 234 }; | 232 }; |
| 235 | 233 |
| 236 } // namespace blink | 234 } // namespace blink |
| 237 | 235 |
| 238 #endif // DOMWindow_h | 236 #endif // DOMWindow_h |
| OLD | NEW |