| 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 WebRemoteFrameImpl_h | 5 #ifndef WebRemoteFrameImpl_h |
| 6 #define WebRemoteFrameImpl_h | 6 #define WebRemoteFrameImpl_h |
| 7 | 7 |
| 8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
| 9 #include "platform/heap/SelfKeepAlive.h" | 9 #include "platform/heap/SelfKeepAlive.h" |
| 10 #include "public/web/WebRemoteFrame.h" | 10 #include "public/web/WebRemoteFrame.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 WebSize scrollOffset() const override; | 39 WebSize scrollOffset() const override; |
| 40 void setScrollOffset(const WebSize&) override; | 40 void setScrollOffset(const WebSize&) override; |
| 41 WebSize contentsSize() const override; | 41 WebSize contentsSize() const override; |
| 42 bool hasVisibleContent() const override; | 42 bool hasVisibleContent() const override; |
| 43 WebRect visibleContentRect() const override; | 43 WebRect visibleContentRect() const override; |
| 44 bool hasHorizontalScrollbar() const override; | 44 bool hasHorizontalScrollbar() const override; |
| 45 bool hasVerticalScrollbar() const override; | 45 bool hasVerticalScrollbar() const override; |
| 46 WebView* view() const override; | 46 WebView* view() const override; |
| 47 WebDocument document() const override; | 47 WebDocument document() const override; |
| 48 WebPerformance performance() const override; | 48 WebPerformance performance() const override; |
| 49 bool dispatchBeforeUnloadEvent() override; | |
| 50 void dispatchUnloadEvent() override; | 49 void dispatchUnloadEvent() override; |
| 51 void executeScript(const WebScriptSource&) override; | 50 void executeScript(const WebScriptSource&) override; |
| 52 void executeScriptInIsolatedWorld( | 51 void executeScriptInIsolatedWorld( |
| 53 int worldID, const WebScriptSource* sources, unsigned numSources, | 52 int worldID, const WebScriptSource* sources, unsigned numSources, |
| 54 int extensionGroup) override; | 53 int extensionGroup) override; |
| 55 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o
verride; | 54 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o
verride; |
| 56 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov
erride; | 55 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov
erride; |
| 57 void addMessageToConsole(const WebConsoleMessage&) override; | 56 void addMessageToConsole(const WebConsoleMessage&) override; |
| 58 void collectGarbage() override; | 57 void collectGarbage() override; |
| 59 v8::Local<v8::Value> executeScriptAndReturnValue( | 58 v8::Local<v8::Value> executeScriptAndReturnValue( |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Accomplish that by keeping a self-referential Persistent<>. It is | 186 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 188 // cleared upon close(). | 187 // cleared upon close(). |
| 189 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 188 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
| 190 }; | 189 }; |
| 191 | 190 |
| 192 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 191 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 193 | 192 |
| 194 } // namespace blink | 193 } // namespace blink |
| 195 | 194 |
| 196 #endif // WebRemoteFrameImpl_h | 195 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |