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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrame.h

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added WebContentsImpl::ForwardVisibilityChangeToInnerContents(bool) Created 5 years 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 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"
(...skipping 29 matching lines...) Expand all
40 void disconnectOwnerElement() override; 40 void disconnectOwnerElement() override;
41 bool prepareForCommit() override; 41 bool prepareForCommit() override;
42 bool shouldClose() override; 42 bool shouldClose() override;
43 43
44 // FIXME: Remove this method once we have input routing in the browser 44 // FIXME: Remove this method once we have input routing in the browser
45 // process. See http://crbug.com/339659. 45 // process. See http://crbug.com/339659.
46 void forwardInputEvent(Event*); 46 void forwardInputEvent(Event*);
47 47
48 void frameRectsChanged(const IntRect& frameRect); 48 void frameRectsChanged(const IntRect& frameRect);
49 49
50 void visibilityChanged(bool visible);
51
50 void setRemotePlatformLayer(WebLayer*); 52 void setRemotePlatformLayer(WebLayer*);
51 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } 53 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; }
52 54
53 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); 55 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
54 void createView(); 56 void createView();
55 57
56 RemoteFrameView* view() const; 58 RemoteFrameView* view() const;
57 59
58 private: 60 private:
59 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 61 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
(...skipping 13 matching lines...) Expand all
73 inline RemoteFrameView* RemoteFrame::view() const 75 inline RemoteFrameView* RemoteFrame::view() const
74 { 76 {
75 return m_view.get(); 77 return m_view.get();
76 } 78 }
77 79
78 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 80 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
79 81
80 } // namespace blink 82 } // namespace blink
81 83
82 #endif // RemoteFrame_h 84 #endif // RemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698