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

Unified Diff: ui/base/android/system_ui_resource_manager.h

Issue 377013002: android: Use UIResource for overscroll glow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/android/system_ui_resource_manager.h
diff --git a/ui/base/android/system_ui_resource_manager.h b/ui/base/android/system_ui_resource_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..472850b4ed324b53e943e6a3a088a3acc9c6df04
--- /dev/null
+++ b/ui/base/android/system_ui_resource_manager.h
@@ -0,0 +1,26 @@
+// 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 UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_H_
+#define UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_H_
+
+#include "ui/base/ui_base_export.h"
+
+namespace ui {
+
+class SystemUIResourceLayer;
+
+class UI_BASE_EXPORT SystemUIResourceManager {
+ public:
+ enum Type { OVERSCROLL_EDGE, OVERSCROLL_GLOW };
+
+ virtual ~SystemUIResourceManager() {}
+
+ virtual void Subscribe(Type type, SystemUIResourceLayer* layer) = 0;
+ virtual void Unsubscribe(Type type, SystemUIResourceLayer* layer) = 0;
+};
+
+} // namespace ui
+
+#endif // UI_BASE_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698