| OLD | NEW |
| 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_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ | 5 #ifndef UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ | 6 #define UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ |
| 7 | 7 |
| 8 #include "cc/resources/ui_resource_client.h" | 8 #include "cc/resources/ui_resource_client.h" |
| 9 #include "content/common/content_export.h" | 9 #include "ui/base/ui_base_export.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace ui { |
| 12 | 12 |
| 13 class UIResourceProvider; | 13 class UIResourceProvider; |
| 14 | 14 |
| 15 // Android's UIResourceClient has one extra callback (UIResourceIsInvalid). | 15 // Android's UIResourceClient has one extra callback (UIResourceIsInvalid). |
| 16 // This signal is intended for the case when the LayerTreeHost is cleared and | 16 // This signal is intended for the case when the LayerTreeHost is cleared and |
| 17 // the user needs to recreate their resources. | 17 // the user needs to recreate their resources. |
| 18 // TODO(powei): This interface can be removed once crbug.com/374906 has been | 18 // TODO(powei): This interface can be removed once crbug.com/374906 has been |
| 19 // addressed. | 19 // addressed. |
| 20 class CONTENT_EXPORT UIResourceClientAndroid : public cc::UIResourceClient { | 20 class UI_BASE_EXPORT UIResourceClientAndroid : public cc::UIResourceClient { |
| 21 public: | 21 public: |
| 22 // This method indicates that the UI resource the user holds is no longer | 22 // This method indicates that the UI resource the user holds is no longer |
| 23 // valid. The user should not call DeleteUIResource on any resource generated | 23 // valid. The user should not call DeleteUIResource on any resource generated |
| 24 // before this signal. | 24 // before this signal. |
| 25 virtual void UIResourceIsInvalid() = 0; | 25 virtual void UIResourceIsInvalid() = 0; |
| 26 |
| 27 virtual cc::UIResourceId id() = 0; |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 } // namespace content | 30 } // namespace ui |
| 29 | 31 |
| 30 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ | 32 #endif // UI_BASE_ANDROID_UI_RESOURCE_CLIENT_ANDROID_H_ |
| OLD | NEW |