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

Side by Side Diff: cc/layers/nine_patch_layer_impl.cc

Issue 399433005: Extirpate CreateBooleanValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/boolean/bool Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | components/policy/core/browser/autofill_policy_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | components/policy/core/browser/autofill_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698