Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: third_party/WebKit/public/web/WebRemoteFrameClient.h

Issue 2723963003: Remove renderer-to-renderer input event forwarding for OOPIFs (Closed)
Patch Set: Correct test expectation Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 WebRemoteFrameClient_h 5 #ifndef WebRemoteFrameClient_h
6 #define WebRemoteFrameClient_h 6 #define WebRemoteFrameClient_h
7 7
8 #include "public/platform/WebFocusType.h" 8 #include "public/platform/WebFocusType.h"
9 #include "public/platform/WebSecurityOrigin.h" 9 #include "public/platform/WebSecurityOrigin.h"
10 #include "public/web/WebDOMMessageEvent.h" 10 #include "public/web/WebDOMMessageEvent.h"
11 #include "public/web/WebFrame.h" 11 #include "public/web/WebFrame.h"
12 12
13 namespace blink { 13 namespace blink {
14 class WebInputEvent;
15 enum class WebClientRedirectPolicy; 14 enum class WebClientRedirectPolicy;
16 enum class WebFrameLoadType; 15 enum class WebFrameLoadType;
17 struct WebRect; 16 struct WebRect;
18 17
19 class WebRemoteFrameClient { 18 class WebRemoteFrameClient {
20 public: 19 public:
21 // Specifies the reason for the detachment. 20 // Specifies the reason for the detachment.
22 enum class DetachType { Remove, Swap }; 21 enum class DetachType { Remove, Swap };
23 22
24 // Notify the embedder that it should remove this frame from the frame tree 23 // Notify the embedder that it should remove this frame from the frame tree
25 // and release any resources associated with it. 24 // and release any resources associated with it.
26 virtual void frameDetached(DetachType) {} 25 virtual void frameDetached(DetachType) {}
27 26
28 // Notifies the embedder that a postMessage was issued to a remote frame. 27 // Notifies the embedder that a postMessage was issued to a remote frame.
29 virtual void forwardPostMessage(WebLocalFrame* sourceFrame, 28 virtual void forwardPostMessage(WebLocalFrame* sourceFrame,
30 WebRemoteFrame* targetFrame, 29 WebRemoteFrame* targetFrame,
31 WebSecurityOrigin targetOrigin, 30 WebSecurityOrigin targetOrigin,
32 WebDOMMessageEvent) {} 31 WebDOMMessageEvent) {}
33 32
34 // A remote frame was asked to start a navigation. 33 // A remote frame was asked to start a navigation.
35 virtual void navigate(const WebURLRequest& request, 34 virtual void navigate(const WebURLRequest& request,
36 bool shouldReplaceCurrentEntry) {} 35 bool shouldReplaceCurrentEntry) {}
37 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} 36 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {}
38 37
39 // FIXME: Remove this method once we have input routing in the browser
40 // process. See http://crbug.com/339659.
41 virtual void forwardInputEvent(const WebInputEvent*) {}
42
43 virtual void frameRectsChanged(const WebRect&) {} 38 virtual void frameRectsChanged(const WebRect&) {}
44 39
45 virtual void updateRemoteViewportIntersection( 40 virtual void updateRemoteViewportIntersection(
46 const WebRect& viewportIntersection) {} 41 const WebRect& viewportIntersection) {}
47 42
48 virtual void visibilityChanged(bool visible) {} 43 virtual void visibilityChanged(bool visible) {}
49 44
50 // This frame updated its opener to another frame. 45 // This frame updated its opener to another frame.
51 virtual void didChangeOpener(WebFrame* opener) {} 46 virtual void didChangeOpener(WebFrame* opener) {}
52 47
53 // Continue sequential focus navigation in this frame. This is called when 48 // Continue sequential focus navigation in this frame. This is called when
54 // the |source| frame is searching for the next focusable element (e.g., in 49 // the |source| frame is searching for the next focusable element (e.g., in
55 // response to <tab>) and encounters a remote frame. 50 // response to <tab>) and encounters a remote frame.
56 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) {} 51 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) {}
57 52
58 // This frame was focused by another frame. 53 // This frame was focused by another frame.
59 virtual void frameFocused() {} 54 virtual void frameFocused() {}
60 }; 55 };
61 56
62 } // namespace blink 57 } // namespace blink
63 58
64 #endif // WebRemoteFrameClient_h 59 #endif // WebRemoteFrameClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698