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

Side by Side Diff: cc/resources/ui_resource.h

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing and addressing previous comments Created 7 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_UI_RESOURCE_H_
6 #define CC_RESOURCES_UI_RESOURCE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/resources/ui_resource_bitmap.h"
11 #include "cc/resources/ui_resource_client.h"
12 #include "ui/gfx/size.h"
13
14 namespace cc {
15
16 class CC_EXPORT UIResource {
17 public:
18 virtual UIResourceId id() = 0;
19 virtual gfx::Size GetSize() = 0;
aelias_OOO_until_Jul13 2013/08/22 04:55:52 Could we instead add a GetUIResourceSize(UIResourc
powei 2013/08/22 17:58:47 I added this function. But we might need to keep
aelias_OOO_until_Jul13 2013/08/27 18:40:49 I think we should delete UIResource and SharedUIRe
powei 2013/08/27 19:04:57 Yes, I agree they seem to be redundant classes.
aelias_OOO_until_Jul13 2013/08/27 19:07:23 Yeah, it's probably more acceptable as a private c
20 };
21
22 } // namespace cc
23
24 #endif // CC_RESOURCES_UI_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698