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

Side by Side Diff: content/browser/android/system_ui_resource_manager_impl.h

Issue 377013002: android: Use UIResource for overscroll glow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments. moved resource loading to its own class. Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
10 #include "ui/base/android/system_ui_resource.h"
11 #include "ui/base/android/system_ui_resource_manager.h"
12
13 class SkBitmap;
14
15 namespace cc {
16 class UIResourceBitmap;
17 }
18
19 namespace content {
20
21 class SystemUIResourceManagerImpl : public ui::SystemUIResourceManager {
22 public:
23 SystemUIResourceManagerImpl();
24
25 protected:
26 virtual void BuildResource(ui::SystemUIResource::Type type) OVERRIDE;
27
28 private:
29 static void LoadBitmap(ui::SystemUIResource::Type, SkBitmap* bitmap_holder);
30 void OnFinishedLoadBitmap(ui::SystemUIResource::Type,
31 SkBitmap* bitmap_holder);
32
33 base::WeakPtrFactory<SystemUIResourceManagerImpl> weak_factory_;
34
35 DISALLOW_COPY_AND_ASSIGN(SystemUIResourceManagerImpl);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698