resource_mapper.h 567 B

12345678910111213141516
  1. // Copyright 2020 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. #ifndef WEBLAYER_BROWSER_ANDROID_RESOURCE_MAPPER_H_
  5. #define WEBLAYER_BROWSER_ANDROID_RESOURCE_MAPPER_H_
  6. namespace weblayer {
  7. // Converts the given chromium |resource_id| (e.g. IDR_INFOBAR_TRANSLATE) to
  8. // an Android drawable resource ID. Returns 0 if a mapping wasn't found.
  9. int MapToJavaDrawableId(int resource_id);
  10. } // namespace weblayer
  11. #endif // WEBLAYER_BROWSER_ANDROID_RESOURCE_MAPPER_H_