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

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

Issue 2873083002: Propagate viewport intersection across OOPIFs at the correct time (Closed)
Patch Set: Created 3 years, 7 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 RemoteFrameView_h 5 #ifndef RemoteFrameView_h
6 #define RemoteFrameView_h 6 #define RemoteFrameView_h
7 7
8 #include "platform/FrameViewBase.h" 8 #include "platform/FrameViewBase.h"
9 #include "platform/geometry/IntRect.h" 9 #include "platform/geometry/IntRect.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 18 matching lines...) Expand all
29 29
30 void Dispose() override; 30 void Dispose() override;
31 // Override to notify remote frame that its viewport size has changed. 31 // Override to notify remote frame that its viewport size has changed.
32 void FrameRectsChanged() override; 32 void FrameRectsChanged() override;
33 void InvalidateRect(const IntRect&) override; 33 void InvalidateRect(const IntRect&) override;
34 void SetFrameRect(const IntRect&) override; 34 void SetFrameRect(const IntRect&) override;
35 void Hide() override; 35 void Hide() override;
36 void Show() override; 36 void Show() override;
37 void SetParentVisible(bool) override; 37 void SetParentVisible(bool) override;
38 38
39 void UpdateRemoteViewportIntersection();
40
39 DECLARE_VIRTUAL_TRACE(); 41 DECLARE_VIRTUAL_TRACE();
40 42
41 private: 43 private:
42 explicit RemoteFrameView(RemoteFrame*); 44 explicit RemoteFrameView(RemoteFrame*);
43 45
44 void UpdateRemoteViewportIntersection();
45
46 // The properties and handling of the cycle between RemoteFrame 46 // The properties and handling of the cycle between RemoteFrame
47 // and its RemoteFrameView corresponds to that between LocalFrame 47 // and its RemoteFrameView corresponds to that between LocalFrame
48 // and FrameView. Please see the FrameView::m_frame comment for 48 // and FrameView. Please see the FrameView::m_frame comment for
49 // details. 49 // details.
50 Member<RemoteFrame> remote_frame_; 50 Member<RemoteFrame> remote_frame_;
51 51
52 IntRect last_viewport_intersection_; 52 IntRect last_viewport_intersection_;
53 }; 53 };
54 54
55 DEFINE_TYPE_CASTS(RemoteFrameView, 55 DEFINE_TYPE_CASTS(RemoteFrameView,
56 FrameViewBase, 56 FrameViewBase,
57 frameViewBase, 57 frameViewBase,
58 frameViewBase->IsRemoteFrameView(), 58 frameViewBase->IsRemoteFrameView(),
59 frameViewBase.IsRemoteFrameView()); 59 frameViewBase.IsRemoteFrameView());
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // RemoteFrameView_h 63 #endif // RemoteFrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/RemoteFrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698