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

Side by Side Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reupload the same thing Created 7 years, 9 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 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 #include "webkit/compositor_bindings/web_layer_impl.h" 5 #include "webkit/compositor_bindings/web_layer_impl.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "cc/animation.h" 8 #include "cc/animation.h"
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 #include "cc/region.h" 10 #include "cc/region.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 317 }
318 318
319 void WebLayerImpl::setFixedToContainerLayer(bool enable) { 319 void WebLayerImpl::setFixedToContainerLayer(bool enable) {
320 layer_->setFixedToContainerLayer(enable); 320 layer_->setFixedToContainerLayer(enable);
321 } 321 }
322 322
323 bool WebLayerImpl::fixedToContainerLayer() const { 323 bool WebLayerImpl::fixedToContainerLayer() const {
324 return layer_->fixedToContainerLayer(); 324 return layer_->fixedToContainerLayer();
325 } 325 }
326 326
327 void WebLayerImpl::setFixedToRightEdge(bool enable) {
328 layer_->setFixedToRightEdge(enable);
329 }
330
331 bool WebLayerImpl::fixedToRightEdge() const {
332 return layer_->fixedToRightEdge();
333 }
334
335 void WebLayerImpl::setFixedToBottomEdge(bool enable) {
336 layer_->setFixedToBottomEdge(enable);
337 }
338
339 bool WebLayerImpl::fixedToBottomEdge() const {
340 return layer_->fixedToBottomEdge();
341 }
342
327 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scroll_client) { 343 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scroll_client) {
328 layer_->setLayerScrollClient(scroll_client); 344 layer_->setLayerScrollClient(scroll_client);
329 } 345 }
330 346
331 Layer* WebLayerImpl::layer() const { return layer_.get(); } 347 Layer* WebLayerImpl::layer() const { return layer_.get(); }
332 348
333 } // namespace WebKit 349 } // namespace WebKit
OLDNEW
« cc/layer_tree_host_common.cc ('K') | « webkit/compositor_bindings/web_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698