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

Side by Side Diff: ui/base/android/system_ui_resource.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 UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_H_
6 #define UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_H_
7
8 #include "cc/resources/ui_resource_client.h"
9 #include "ui/base/ui_base_export.h"
10
11 namespace ui {
12
13 class UI_BASE_EXPORT SystemUIResourceClient {
14 public:
15 virtual void OnUIResourceIdChanged() = 0;
16 virtual ~SystemUIResourceClient() {}
17 };
18
19 class UI_BASE_EXPORT SystemUIResource {
20 public:
21 enum Type { OVERSCROLL_EDGE, OVERSCROLL_GLOW };
22
23 virtual cc::UIResourceId id() = 0;
jdduke (slow) 2014/07/12 01:01:09 Do you anticipate having multiple implementations
powei 2014/07/16 17:10:52 Done. Moved SystemUIResource to content
24 virtual void Load() = 0;
25 virtual void SetClient(SystemUIResourceClient* client) = 0;
26
27 virtual ~SystemUIResource() {}
28 };
29
30 } // namespace ui
31
32 #endif // UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698