| 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 RemoteFrame_h | 5 #ifndef RemoteFrame_h |
| 6 #define RemoteFrame_h | 6 #define RemoteFrame_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/frame/Frame.h" | 10 #include "core/frame/Frame.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; | |
| 16 class LocalFrame; | 15 class LocalFrame; |
| 17 class RemoteFrameClient; | 16 class RemoteFrameClient; |
| 18 class RemoteFrameView; | 17 class RemoteFrameView; |
| 19 class WebLayer; | 18 class WebLayer; |
| 20 struct FrameLoadRequest; | 19 struct FrameLoadRequest; |
| 21 | 20 |
| 22 class CORE_EXPORT RemoteFrame final : public Frame { | 21 class CORE_EXPORT RemoteFrame final : public Frame { |
| 23 public: | 22 public: |
| 24 static RemoteFrame* create(RemoteFrameClient*, Page*, FrameOwner*); | 23 static RemoteFrame* create(RemoteFrameClient*, Page*, FrameOwner*); |
| 25 | 24 |
| 26 ~RemoteFrame() override; | 25 ~RemoteFrame() override; |
| 27 | 26 |
| 28 // Frame overrides: | 27 // Frame overrides: |
| 29 DECLARE_VIRTUAL_TRACE(); | 28 DECLARE_VIRTUAL_TRACE(); |
| 30 void navigate(Document& originDocument, | 29 void navigate(Document& originDocument, |
| 31 const KURL&, | 30 const KURL&, |
| 32 bool replaceCurrentItem, | 31 bool replaceCurrentItem, |
| 33 UserGestureStatus) override; | 32 UserGestureStatus) override; |
| 34 void navigate(const FrameLoadRequest& passedRequest) override; | 33 void navigate(const FrameLoadRequest& passedRequest) override; |
| 35 void reload(FrameLoadType, ClientRedirectPolicy) override; | 34 void reload(FrameLoadType, ClientRedirectPolicy) override; |
| 36 void detach(FrameDetachType) override; | 35 void detach(FrameDetachType) override; |
| 37 RemoteSecurityContext* securityContext() const override; | 36 RemoteSecurityContext* securityContext() const override; |
| 38 void printNavigationErrorMessage(const Frame&, const char* reason) override {} | 37 void printNavigationErrorMessage(const Frame&, const char* reason) override {} |
| 39 void printNavigationWarning(const String&) override {} | 38 void printNavigationWarning(const String&) override {} |
| 40 bool prepareForCommit() override; | 39 bool prepareForCommit() override; |
| 41 bool shouldClose() override; | 40 bool shouldClose() override; |
| 42 | 41 |
| 43 // FIXME: Remove this method once we have input routing in the browser | |
| 44 // process. See http://crbug.com/339659. | |
| 45 void forwardInputEvent(Event*); | |
| 46 | |
| 47 void setWebLayer(WebLayer*); | 42 void setWebLayer(WebLayer*); |
| 48 WebLayer* webLayer() const { return m_webLayer; } | 43 WebLayer* webLayer() const { return m_webLayer; } |
| 49 | 44 |
| 50 void advanceFocus(WebFocusType, LocalFrame* source); | 45 void advanceFocus(WebFocusType, LocalFrame* source); |
| 51 | 46 |
| 52 void setView(RemoteFrameView*); | 47 void setView(RemoteFrameView*); |
| 53 void createView(); | 48 void createView(); |
| 54 | 49 |
| 55 RemoteFrameView* view() const; | 50 RemoteFrameView* view() const; |
| 56 | 51 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 77 | 72 |
| 78 DEFINE_TYPE_CASTS(RemoteFrame, | 73 DEFINE_TYPE_CASTS(RemoteFrame, |
| 79 Frame, | 74 Frame, |
| 80 remoteFrame, | 75 remoteFrame, |
| 81 remoteFrame->isRemoteFrame(), | 76 remoteFrame->isRemoteFrame(), |
| 82 remoteFrame.isRemoteFrame()); | 77 remoteFrame.isRemoteFrame()); |
| 83 | 78 |
| 84 } // namespace blink | 79 } // namespace blink |
| 85 | 80 |
| 86 #endif // RemoteFrame_h | 81 #endif // RemoteFrame_h |
| OLD | NEW |