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; | 15 class Event; |
16 class IntRect; | |
17 class LocalFrame; | 16 class LocalFrame; |
18 class RemoteFrameClient; | 17 class RemoteFrameClient; |
19 class RemoteFrameView; | 18 class RemoteFrameView; |
20 class WebLayer; | 19 class WebLayer; |
21 class WindowProxyManager; | 20 class WindowProxyManager; |
22 struct FrameLoadRequest; | 21 struct FrameLoadRequest; |
23 | 22 |
24 class CORE_EXPORT RemoteFrame final : public Frame { | 23 class CORE_EXPORT RemoteFrame final : public Frame { |
25 public: | 24 public: |
26 static RemoteFrame* create(RemoteFrameClient*, FrameHost*, FrameOwner*); | 25 static RemoteFrame* create(RemoteFrameClient*, FrameHost*, FrameOwner*); |
(...skipping 13 matching lines...) Expand all Loading... |
40 RemoteSecurityContext* securityContext() const override; | 39 RemoteSecurityContext* securityContext() const override; |
41 void printNavigationErrorMessage(const Frame&, const char* reason) override {} | 40 void printNavigationErrorMessage(const Frame&, const char* reason) override {} |
42 bool prepareForCommit() override; | 41 bool prepareForCommit() override; |
43 bool shouldClose() override; | 42 bool shouldClose() override; |
44 void setDocumentHasReceivedUserGesture() override; | 43 void setDocumentHasReceivedUserGesture() override; |
45 | 44 |
46 // FIXME: Remove this method once we have input routing in the browser | 45 // FIXME: Remove this method once we have input routing in the browser |
47 // process. See http://crbug.com/339659. | 46 // process. See http://crbug.com/339659. |
48 void forwardInputEvent(Event*); | 47 void forwardInputEvent(Event*); |
49 | 48 |
50 void frameRectsChanged(const IntRect& frameRect); | |
51 | |
52 void visibilityChanged(bool visible); | |
53 | |
54 void setWebLayer(WebLayer*); | 49 void setWebLayer(WebLayer*); |
55 WebLayer* webLayer() const { return m_webLayer; } | 50 WebLayer* webLayer() const { return m_webLayer; } |
56 | 51 |
57 void advanceFocus(WebFocusType, LocalFrame* source); | 52 void advanceFocus(WebFocusType, LocalFrame* source); |
58 | 53 |
59 void setView(RemoteFrameView*); | 54 void setView(RemoteFrameView*); |
60 void createView(); | 55 void createView(); |
61 | 56 |
62 RemoteFrameView* view() const; | 57 RemoteFrameView* view() const; |
63 | 58 |
(...skipping 25 matching lines...) Expand all Loading... |
89 | 84 |
90 DEFINE_TYPE_CASTS(RemoteFrame, | 85 DEFINE_TYPE_CASTS(RemoteFrame, |
91 Frame, | 86 Frame, |
92 remoteFrame, | 87 remoteFrame, |
93 remoteFrame->isRemoteFrame(), | 88 remoteFrame->isRemoteFrame(), |
94 remoteFrame.isRemoteFrame()); | 89 remoteFrame.isRemoteFrame()); |
95 | 90 |
96 } // namespace blink | 91 } // namespace blink |
97 | 92 |
98 #endif // RemoteFrame_h | 93 #endif // RemoteFrame_h |
OLD | NEW |