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

Side by Side Diff: Source/core/frame/PinchViewport.h

Issue 636363003: Fix fullscreen elements in pinch viewport mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 years, 2 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); 73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*);
74 GraphicsLayer* rootGraphicsLayer() 74 GraphicsLayer* rootGraphicsLayer()
75 { 75 {
76 return m_rootTransformLayer.get(); 76 return m_rootTransformLayer.get();
77 } 77 }
78 GraphicsLayer* containerLayer() 78 GraphicsLayer* containerLayer()
79 { 79 {
80 return m_innerViewportContainerLayer.get(); 80 return m_innerViewportContainerLayer.get();
81 } 81 }
82 GraphicsLayer* scrollLayer()
83 {
84 return m_innerViewportScrollLayer.get();
85 }
82 86
83 // Sets the location of the inner viewport relative to the outer viewport. T he 87 // Sets the location of the inner viewport relative to the outer viewport. T he
84 // coordinates are in partial CSS pixels. 88 // coordinates are in partial CSS pixels.
85 void setLocation(const FloatPoint&); 89 void setLocation(const FloatPoint&);
86 void move(const FloatPoint&); 90 void move(const FloatPoint&);
87 FloatPoint location() const { return m_offset; } 91 FloatPoint location() const { return m_offset; }
88 92
89 // Sets the size of the inner viewport when unscaled in CSS pixels. 93 // Sets the size of the inner viewport when unscaled in CSS pixels.
90 // This will be clamped to the size of the outer viewport (the main frame). 94 // This will be clamped to the size of the outer viewport (the main frame).
91 void setSize(const IntSize&); 95 void setSize(const IntSize&);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 181
178 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. 182 // Offset of the pinch viewport from the main frame's origin, in CSS pixels.
179 FloatPoint m_offset; 183 FloatPoint m_offset;
180 float m_scale; 184 float m_scale;
181 IntSize m_size; 185 IntSize m_size;
182 }; 186 };
183 187
184 } // namespace blink 188 } // namespace blink
185 189
186 #endif // PinchViewport_h 190 #endif // PinchViewport_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698