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

Unified Diff: cc/proto/cc_conversions.cc

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/cc_conversions.h ('k') | cc/proto/cc_conversions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/cc_conversions.cc
diff --git a/cc/proto/cc_conversions.cc b/cc/proto/cc_conversions.cc
deleted file mode 100644
index 92da5634e2ef596a31334f01f237d30b50ef473b..0000000000000000000000000000000000000000
--- a/cc/proto/cc_conversions.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 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.
-
-#include "cc/proto/cc_conversions.h"
-
-#include "cc/base/region.h"
-#include "cc/proto/gfx_conversions.h"
-#include "cc/proto/region.pb.h"
-
-namespace cc {
-
-void RegionToProto(const Region& region, proto::Region* proto) {
- for (Region::Iterator it(region); it.has_rect(); it.next())
- RectToProto(it.rect(), proto->add_rects());
-}
-
-Region RegionFromProto(const proto::Region& proto) {
- Region region;
- for (int i = 0; i < proto.rects_size(); ++i)
- region.Union(ProtoToRect(proto.rects(i)));
- return region;
-}
-
-proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation
-ScrollbarOrientationToProto(const ScrollbarOrientation& orientation) {
- switch (orientation) {
- case ScrollbarOrientation::HORIZONTAL:
- return proto::SolidColorScrollbarLayerProperties::HORIZONTAL;
- case ScrollbarOrientation::VERTICAL:
- return proto::SolidColorScrollbarLayerProperties::VERTICAL;
- }
- return proto::SolidColorScrollbarLayerProperties::HORIZONTAL;
-}
-
-ScrollbarOrientation ScrollbarOrientationFromProto(
- const proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation&
- proto) {
- switch (proto) {
- case proto::SolidColorScrollbarLayerProperties::HORIZONTAL:
- return ScrollbarOrientation::HORIZONTAL;
- case proto::SolidColorScrollbarLayerProperties::VERTICAL:
- return ScrollbarOrientation::VERTICAL;
- }
- return ScrollbarOrientation::HORIZONTAL;
-}
-
-} // namespace cc
« no previous file with comments | « cc/proto/cc_conversions.h ('k') | cc/proto/cc_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698