OLD | NEW |
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 "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2470 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE { | 2470 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE { |
2471 return getter_return_value_; | 2471 return getter_return_value_; |
2472 } | 2472 } |
2473 | 2473 |
2474 virtual bool IsExternalFlingActive() const OVERRIDE { return false; } | 2474 virtual bool IsExternalFlingActive() const OVERRIDE { return false; } |
2475 | 2475 |
2476 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE { | 2476 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE { |
2477 page_scale_factor_ = page_scale_factor; | 2477 page_scale_factor_ = page_scale_factor; |
2478 } | 2478 } |
2479 | 2479 |
2480 virtual void SetScrollableSize(gfx::SizeF scrollable_size) OVERRIDE { | 2480 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE { |
2481 scrollable_size_ = scrollable_size; | 2481 scrollable_size_ = scrollable_size; |
2482 } | 2482 } |
2483 | 2483 |
2484 gfx::Vector2dF last_set_scroll_offset() { | 2484 gfx::Vector2dF last_set_scroll_offset() { |
2485 return last_set_scroll_offset_; | 2485 return last_set_scroll_offset_; |
2486 } | 2486 } |
2487 | 2487 |
2488 void set_getter_return_value(gfx::Vector2dF value) { | 2488 void set_getter_return_value(gfx::Vector2dF value) { |
2489 getter_return_value_ = value; | 2489 getter_return_value_ = value; |
2490 } | 2490 } |
(...skipping 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5435 &set_needs_redraw_count)); | 5435 &set_needs_redraw_count)); |
5436 // Empty damage rect won't signal the monitor. | 5436 // Empty damage rect won't signal the monitor. |
5437 host_impl_->SetNeedsRedrawRect(gfx::Rect()); | 5437 host_impl_->SetNeedsRedrawRect(gfx::Rect()); |
5438 EXPECT_EQ(0, set_needs_commit_count); | 5438 EXPECT_EQ(0, set_needs_commit_count); |
5439 EXPECT_EQ(2, set_needs_redraw_count); | 5439 EXPECT_EQ(2, set_needs_redraw_count); |
5440 } | 5440 } |
5441 } | 5441 } |
5442 | 5442 |
5443 } // namespace | 5443 } // namespace |
5444 } // namespace cc | 5444 } // namespace cc |
OLD | NEW |