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

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

Issue 377013002: android: Use UIResource for overscroll glow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/ui_resource_client_android.h
diff --git a/content/public/browser/android/ui_resource_client_android.h b/ui/base/android/ui_resource_client_android.h
similarity index 68%
rename from content/public/browser/android/ui_resource_client_android.h
rename to ui/base/android/ui_resource_client_android.h
index 83228bd0f56ffba83f7b6a162ae17cfe8c42c510..345ff40a57e48582aab4dfe9b843131f93f9d3f1 100644
--- a/content/public/browser/android/ui_resource_client_android.h
+++ b/ui/base/android/ui_resource_client_android.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_
-#define CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_
+#ifndef UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_
+#define UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_
#include "cc/resources/ui_resource_client.h"
-#include "content/common/content_export.h"
+#include "ui/base/ui_base_export.h"
-namespace content {
+namespace ui {
class UIResourceProvider;
@@ -17,14 +17,16 @@ class UIResourceProvider;
// the user needs to recreate their resources.
// TODO(powei): This interface can be removed once crbug.com/374906 has been
// addressed.
-class CONTENT_EXPORT UIResourceClientAndroid : public cc::UIResourceClient {
+class UI_BASE_EXPORT UIResourceClientAndroid : public cc::UIResourceClient {
public:
// This method indicates that the UI resource the user holds is no longer
// valid. The user should not call DeleteUIResource on any resource generated
// before this signal.
virtual void UIResourceIsInvalid() = 0;
+
+ virtual cc::UIResourceId id() = 0;
};
-} // namespace content
+} // namespace ui
-#endif // CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_
+#endif // UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698