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

Unified Diff: cc/test/fake_painted_scrollbar_layer.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_painted_scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_painted_scrollbar_layer.h
diff --git a/cc/test/fake_painted_scrollbar_layer.h b/cc/test/fake_painted_scrollbar_layer.h
deleted file mode 100644
index 033d92071be3fb8f3ccbfda6d2bdae85021cf737..0000000000000000000000000000000000000000
--- a/cc/test/fake_painted_scrollbar_layer.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
-#define CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/layers/painted_scrollbar_layer.h"
-#include "cc/test/fake_scrollbar.h"
-
-namespace base { template<typename T> class AutoReset; }
-
-namespace cc {
-
-class FakePaintedScrollbarLayer : public PaintedScrollbarLayer {
- public:
- static scoped_refptr<FakePaintedScrollbarLayer>
- Create(bool paint_during_update, bool has_thumb, int scrolling_layer_id);
- int update_count() const { return update_count_; }
- void reset_update_count() { update_count_ = 0; }
-
- bool Update(ResourceUpdateQueue* queue,
- const OcclusionTracker<Layer>* occlusion) override;
-
- void PushPropertiesTo(LayerImpl* layer) override;
-
- scoped_ptr<base::AutoReset<bool>> IgnoreSetNeedsCommit();
-
- size_t push_properties_count() const { return push_properties_count_; }
- void reset_push_properties_count() { push_properties_count_ = 0; }
-
- // For unit tests
- UIResourceId track_resource_id() {
- return PaintedScrollbarLayer::track_resource_id();
- }
- UIResourceId thumb_resource_id() {
- return PaintedScrollbarLayer::thumb_resource_id();
- }
- FakeScrollbar* fake_scrollbar() {
- return fake_scrollbar_;
- }
- using PaintedScrollbarLayer::UpdateInternalContentScale;
- using PaintedScrollbarLayer::UpdateThumbAndTrackGeometry;
-
- private:
- FakePaintedScrollbarLayer(FakeScrollbar* fake_scrollbar,
- int scrolling_layer_id);
- ~FakePaintedScrollbarLayer() override;
-
- int update_count_;
- size_t push_properties_count_;
- FakeScrollbar* fake_scrollbar_;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_painted_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698