| 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 RemoteFrameClient_h | 5 #ifndef RemoteFrameClient_h |
| 6 #define RemoteFrameClient_h | 6 #define RemoteFrameClient_h |
| 7 | 7 |
| 8 #include "core/frame/FrameClient.h" | 8 #include "core/frame/FrameClient.h" |
| 9 #include "core/frame/FrameTypes.h" | 9 #include "core/frame/FrameTypes.h" |
| 10 #include "core/loader/FrameLoaderTypes.h" | 10 #include "core/loader/FrameLoaderTypes.h" |
| 11 #include "public/platform/WebFocusType.h" | 11 #include "public/platform/WebFocusType.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Event; | 15 class Event; |
| 16 class IntPoint; |
| 16 class IntRect; | 17 class IntRect; |
| 17 class ResourceRequest; | 18 class ResourceRequest; |
| 18 | 19 |
| 19 class RemoteFrameClient : public FrameClient { | 20 class RemoteFrameClient : public FrameClient { |
| 20 public: | 21 public: |
| 21 ~RemoteFrameClient() override {} | 22 ~RemoteFrameClient() override {} |
| 22 | 23 |
| 23 virtual void navigate(const ResourceRequest&, | 24 virtual void navigate(const ResourceRequest&, |
| 24 bool shouldReplaceCurrentEntry) = 0; | 25 bool shouldReplaceCurrentEntry) = 0; |
| 25 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; | 26 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
| 26 virtual unsigned backForwardLength() = 0; | 27 virtual unsigned backForwardLength() = 0; |
| 27 | 28 |
| 28 // Forwards a postMessage for a remote frame. | 29 // Forwards a postMessage for a remote frame. |
| 29 virtual void forwardPostMessage(MessageEvent*, | 30 virtual void forwardPostMessage(MessageEvent*, |
| 30 PassRefPtr<SecurityOrigin> target, | 31 PassRefPtr<SecurityOrigin> target, |
| 31 LocalFrame* sourceFrame) const = 0; | 32 LocalFrame* sourceFrame) const = 0; |
| 32 | 33 |
| 33 // FIXME: Remove this method once we have input routing in the browser | 34 // FIXME: Remove this method once we have input routing in the browser |
| 34 // process. See http://crbug.com/339659. | 35 // process. See http://crbug.com/339659. |
| 35 virtual void forwardInputEvent(Event*) = 0; | 36 virtual void forwardInputEvent(Event*) = 0; |
| 36 | 37 |
| 37 virtual void frameRectsChanged(const IntRect& frameRect) = 0; | 38 virtual void frameRectsChanged(const IntRect& frameRect) = 0; |
| 38 | 39 |
| 40 virtual void updateRemoteViewportIntersection( |
| 41 const IntRect& viewportIntersection, |
| 42 const IntPoint& rootOffset) = 0; |
| 43 |
| 39 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; | 44 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; |
| 40 | 45 |
| 41 virtual void visibilityChanged(bool visible) = 0; | 46 virtual void visibilityChanged(bool visible) = 0; |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 } // namespace blink | 49 } // namespace blink |
| 45 | 50 |
| 46 #endif // RemoteFrameClient_h | 51 #endif // RemoteFrameClient_h |
| OLD | NEW |