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

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

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again Created 5 years, 10 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/frame/PinchViewport.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // 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
88 // coordinates are in partial CSS pixels. 88 // coordinates are in partial CSS pixels.
89 void setLocation(const FloatPoint&); 89 void setLocation(const FloatPoint&);
90 void move(const FloatPoint&); 90 void move(const FloatPoint&);
91 FloatPoint location() const { return m_offset; } 91 FloatPoint location() const { return m_offset; }
92 92
93 // 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.
94 void setSize(const IntSize&); 94 void setSize(const IntSize&);
95 IntSize size() const { return m_size; } 95 IntSize size() const { return m_size; }
96 96
97 // Gets the scaled size, i.e. the viewport in root view space.
98 FloatSize visibleSize() const;
99
97 // Resets the viewport to initial state. 100 // Resets the viewport to initial state.
98 void reset(); 101 void reset();
99 102
100 // Let the viewport know that the main frame changed size (either through sc reen 103 // Let the viewport know that the main frame changed size (either through sc reen
101 // rotation on Android or window resize elsewhere). 104 // rotation on Android or window resize elsewhere).
102 void mainFrameDidChangeSize(); 105 void mainFrameDidChangeSize();
103 106
104 // Sets scale and location in one operation, preventing intermediate clampin g. 107 // Sets scale and location in one operation, preventing intermediate clampin g.
105 void setScaleAndLocation(float scale, const FloatPoint& location); 108 void setScaleAndLocation(float scale, const FloatPoint& location);
106 void setScale(float); 109 void setScale(float);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. 210 // Offset of the pinch viewport from the main frame's origin, in CSS pixels.
208 FloatPoint m_offset; 211 FloatPoint m_offset;
209 float m_scale; 212 float m_scale;
210 IntSize m_size; 213 IntSize m_size;
211 float m_topControlsAdjustment; 214 float m_topControlsAdjustment;
212 }; 215 };
213 216
214 } // namespace blink 217 } // namespace blink
215 218
216 #endif // PinchViewport_h 219 #endif // PinchViewport_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698