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

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

Issue 367173003: [Android] Implementation of overscroll effect for Android L (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/scoped_ptr_hash_map.h" 9 #include "base/containers/scoped_ptr_hash_map.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 21 matching lines...) Expand all
32 virtual cc::UIResourceId GetUIResourceId(ResourceType type) OVERRIDE; 32 virtual cc::UIResourceId GetUIResourceId(ResourceType type) OVERRIDE;
33 33
34 private: 34 private:
35 friend class TestSystemUIResourceManagerImpl; 35 friend class TestSystemUIResourceManagerImpl;
36 class Entry; 36 class Entry;
37 37
38 // Start loading the resource bitmap. virtual for testing. 38 // Start loading the resource bitmap. virtual for testing.
39 virtual void BuildResource(ResourceType type); 39 virtual void BuildResource(ResourceType type);
40 40
41 Entry* GetEntry(ResourceType type); 41 Entry* GetEntry(ResourceType type);
42 static void LoadBitmap(ResourceType, SkBitmap* bitmap_holder);
43 void OnFinishedLoadBitmap(ResourceType, SkBitmap* bitmap_holder); 42 void OnFinishedLoadBitmap(ResourceType, SkBitmap* bitmap_holder);
44 43
45 scoped_ptr<Entry> resource_map_[RESOURCE_TYPE_LAST + 1]; 44 scoped_ptr<Entry> resource_map_[RESOURCE_TYPE_LAST + 1];
46 UIResourceProvider* ui_resource_provider_; 45 UIResourceProvider* ui_resource_provider_;
47 46
48 base::WeakPtrFactory<SystemUIResourceManagerImpl> weak_factory_; 47 base::WeakPtrFactory<SystemUIResourceManagerImpl> weak_factory_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(SystemUIResourceManagerImpl); 49 DISALLOW_COPY_AND_ASSIGN(SystemUIResourceManagerImpl);
51 }; 50 };
52 51
53 } // namespace content 52 } // namespace content
54 53
55 #endif // CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_ 54 #endif // CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/overscroll_glow.cc ('k') | content/browser/android/system_ui_resource_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698