Index: ui/android/resources/nine_patch_resource.h |
diff --git a/ui/android/resources/nine_patch_resource.h b/ui/android/resources/nine_patch_resource.h |
index 11b6502dbc905b9fa2151a1332ad930b736ef29d..adece8c0fbedd36877f31270c5de7913373bfa8f 100644 |
--- a/ui/android/resources/nine_patch_resource.h |
+++ b/ui/android/resources/nine_patch_resource.h |
@@ -9,6 +9,10 @@ |
#include "ui/android/ui_android_export.h" |
#include "ui/gfx/geometry/insets_f.h" |
+namespace cc { |
+class NinePatchLayer; |
+} |
+ |
namespace ui { |
class UI_ANDROID_EXPORT NinePatchResource final : public Resource { |
@@ -20,6 +24,12 @@ class UI_ANDROID_EXPORT NinePatchResource final : public Resource { |
std::unique_ptr<Resource> CreateForCopy() override; |
+ // Updates draw properties on |layer| used to draw this resource. The |
+ // |content_location| is the rect of the content to be fit inside the resource |
+ // in the parent's coordinate space. |
+ void UpdateNinePatchLayer(cc::NinePatchLayer* layer, |
+ const gfx::Rect& content_location) const; |
+ |
gfx::Rect Border(const gfx::Size& bounds) const; |
gfx::Rect Border(const gfx::Size& bounds, const gfx::InsetsF& scale) const; |