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

Unified Diff: runtime/bin/resources.h

Issue 19231005: Initial NOOP VM Service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/resources.h
diff --git a/runtime/bin/resources.h b/runtime/bin/resources.h
index 0f3f7c369941bd0b1343d86c2b0847212e3bd47e..6ee066ad810949e688b1da936130c5d62d83501e 100644
--- a/runtime/bin/resources.h
+++ b/runtime/bin/resources.h
@@ -30,6 +30,14 @@ class Resources {
return kNoSuchInstance;
}
+ static intptr_t get_resource_count() {
+ return builtin_resources_count_;
+ }
+
+ static const char* get_resource_path(intptr_t i) {
+ return get_resource(i)->path_;
+ }
+
private:
struct resource_map_entry {
const char* path_;
@@ -46,9 +54,6 @@ class Resources {
return &builtin_resources_[i];
}
- static intptr_t get_resource_count() {
- return builtin_resources_count_; }
-
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Resources);
};

Powered by Google App Engine
This is Rietveld 408576698