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

Side by Side Diff: cc/layer_impl.h

Issue 12082012: Implement desktop compatibility viewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aelias
Patch Set: Created 7 years, 11 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 | « no previous file | cc/layer_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; } 223 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; }
224 void setScrollDelta(const gfx::Vector2dF&); 224 void setScrollDelta(const gfx::Vector2dF&);
225 225
226 const gfx::Transform& implTransform() const { return m_implTransform; } 226 const gfx::Transform& implTransform() const { return m_implTransform; }
227 void setImplTransform(const gfx::Transform& transform); 227 void setImplTransform(const gfx::Transform& transform);
228 228
229 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; } 229 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; }
230 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta); 230 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta);
231 231
232 const gfx::Vector2d& desktopCompatibilityViewportOffsetFromScrollPosition() { return m_desktopCompatibilityViewportOffsetFromScrollPosition; }
233 void setDesktopCompatibilityViewportOffsetFromScrollPosition(const gfx::Vect or2d& desktopCompatibilityViewportOffsetFromScrollPosition) { m_desktopCompatibi lityViewportOffsetFromScrollPosition = desktopCompatibilityViewportOffsetFromScr ollPosition; }
234
235 const gfx::Vector2dF& desktopCompatibilityViewportOffsetFromScrollPositionDe lta() { return m_desktopCompatibilityViewportOffsetFromScrollPositionDelta; }
236 void setDesktopCompatibilityViewportOffsetFromScrollPositionDelta(const gfx: :Vector2dF& desktopCompatibilityViewportOffsetFromScrollPositionDelta) { m_deskt opCompatibilityViewportOffsetFromScrollPositionDelta = desktopCompatibilityViewp ortOffsetFromScrollPositionDelta; }
237
238 const gfx::Vector2d& sentDesktopCompatibilityViewportOffsetFromScrollPositio nDelta() { return m_sentDesktopCompatibilityViewportOffsetFromScrollPositionDelt a; }
239 void setSentDesktopCompatibilityViewportOffsetFromScrollPositionDelta(const gfx::Vector2d& sentDesktopCompatibilityViewportOffsetFromScrollPositionDelta) { m_sentDesktopCompatibilityViewportOffsetFromScrollPositionDelta = sentDesktopCom patibilityViewportOffsetFromScrollPositionDelta; }
240
232 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll 241 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll
233 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll); 242 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll);
234 243
235 bool scrollable() const { return m_scrollable; } 244 bool scrollable() const { return m_scrollable; }
236 void setScrollable(bool scrollable) { m_scrollable = scrollable; } 245 void setScrollable(bool scrollable) { m_scrollable = scrollable; }
237 246
238 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } 247 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; }
239 void setShouldScrollOnMainThread(bool shouldScrollOnMainThread) { m_shouldSc rollOnMainThread = shouldScrollOnMainThread; } 248 void setShouldScrollOnMainThread(bool shouldScrollOnMainThread) { m_shouldSc rollOnMainThread = shouldScrollOnMainThread; }
240 249
241 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } 250 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Set for the layer that other layers are fixed to. 393 // Set for the layer that other layers are fixed to.
385 bool m_isContainerForFixedPositionLayers; 394 bool m_isContainerForFixedPositionLayers;
386 // This is true if the layer should be fixed to the closest ancestor contain er. 395 // This is true if the layer should be fixed to the closest ancestor contain er.
387 bool m_fixedToContainerLayer; 396 bool m_fixedToContainerLayer;
388 397
389 gfx::Vector2dF m_scrollDelta; 398 gfx::Vector2dF m_scrollDelta;
390 gfx::Vector2d m_sentScrollDelta; 399 gfx::Vector2d m_sentScrollDelta;
391 gfx::Vector2d m_maxScrollOffset; 400 gfx::Vector2d m_maxScrollOffset;
392 gfx::Transform m_implTransform; 401 gfx::Transform m_implTransform;
393 gfx::Vector2dF m_lastScrollOffset; 402 gfx::Vector2dF m_lastScrollOffset;
403 // For root scroll layer only.
404 gfx::Vector2d m_desktopCompatibilityViewportOffsetFromScrollPosition;
405 gfx::Vector2dF m_desktopCompatibilityViewportOffsetFromScrollPositionDelta;
406 gfx::Vector2d m_sentDesktopCompatibilityViewportOffsetFromScrollPositionDelt a;
394 407
395 // The global depth value of the center of the layer. This value is used 408 // The global depth value of the center of the layer. This value is used
396 // to sort layers from back to front. 409 // to sort layers from back to front.
397 float m_drawDepth; 410 float m_drawDepth;
398 411
399 // Debug layer name. 412 // Debug layer name.
400 std::string m_debugName; 413 std::string m_debugName;
401 414
402 WebKit::WebFilterOperations m_filters; 415 WebKit::WebFilterOperations m_filters;
403 WebKit::WebFilterOperations m_backgroundFilters; 416 WebKit::WebFilterOperations m_backgroundFilters;
(...skipping 22 matching lines...) Expand all
426 // Group of properties that need to be computed based on the layer tree 439 // Group of properties that need to be computed based on the layer tree
427 // hierarchy before layers can be drawn. 440 // hierarchy before layers can be drawn.
428 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 441 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
429 442
430 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 443 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
431 }; 444 };
432 445
433 } 446 }
434 447
435 #endif // CC_LAYER_IMPL_H_ 448 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698