| Index: content/browser/android/system_ui_resource_manager_impl.h
|
| diff --git a/content/browser/android/system_ui_resource_manager_impl.h b/content/browser/android/system_ui_resource_manager_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ae3e7069bd1970c5b565ade19386b6efc0b40019
|
| --- /dev/null
|
| +++ b/content/browser/android/system_ui_resource_manager_impl.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
|
| +#define CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "ui/base/android/system_ui_resource.h"
|
| +#include "ui/base/android/system_ui_resource_manager.h"
|
| +
|
| +class SkBitmap;
|
| +
|
| +namespace cc {
|
| +class UIResourceBitmap;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class SystemUIResourceManagerImpl : public ui::SystemUIResourceManager {
|
| + public:
|
| + SystemUIResourceManagerImpl();
|
| +
|
| + protected:
|
| + virtual void BuildResource(ui::SystemUIResource::Type type) OVERRIDE;
|
| +
|
| + private:
|
| + static void LoadBitmap(ui::SystemUIResource::Type, SkBitmap* bitmap_holder);
|
| + void OnFinishedLoadBitmap(ui::SystemUIResource::Type,
|
| + SkBitmap* bitmap_holder);
|
| +
|
| + base::WeakPtrFactory<SystemUIResourceManagerImpl> weak_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SystemUIResourceManagerImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
|
|
|