OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/nine_patch_layer_impl.h" | 5 #include "cc/layers/nine_patch_layer_impl.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 #include "cc/quads/texture_draw_quad.h" | 10 #include "cc/quads/texture_draw_quad.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 list->AppendInteger(image_aperture_.size().height()); | 392 list->AppendInteger(image_aperture_.size().height()); |
393 result->Set("ImageAperture", list); | 393 result->Set("ImageAperture", list); |
394 | 394 |
395 list = new base::ListValue; | 395 list = new base::ListValue; |
396 list->AppendInteger(image_bounds_.width()); | 396 list->AppendInteger(image_bounds_.width()); |
397 list->AppendInteger(image_bounds_.height()); | 397 list->AppendInteger(image_bounds_.height()); |
398 result->Set("ImageBounds", list); | 398 result->Set("ImageBounds", list); |
399 | 399 |
400 result->Set("Border", MathUtil::AsValue(border_).release()); | 400 result->Set("Border", MathUtil::AsValue(border_).release()); |
401 | 401 |
402 base::FundamentalValue* fill_center = | 402 result->SetBoolean("FillCenter", fill_center_); |
403 base::Value::CreateBooleanValue(fill_center_); | |
404 result->Set("FillCenter", fill_center); | |
405 | 403 |
406 return result; | 404 return result; |
407 } | 405 } |
408 | 406 |
409 } // namespace cc | 407 } // namespace cc |
OLD | NEW |