Chromium Code Reviews| Index: cc/resources/shared_ui_resource.h |
| diff --git a/cc/resources/shared_ui_resource.h b/cc/resources/shared_ui_resource.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..281a46fbaf095220e9223c90dc33d6804ee3b001 |
| --- /dev/null |
| +++ b/cc/resources/shared_ui_resource.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2013 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 CC_RESOURCES_SHARED_UI_RESOURCE_H_ |
| +#define CC_RESOURCES_SHARED_UI_RESOURCE_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "cc/base/cc_export.h" |
| +#include "cc/resources/ui_resource.h" |
| +#include "cc/resources/ui_resource_client.h" |
| +#include "ui/gfx/size.h" |
| + |
| +namespace cc { |
| + |
| +class LayerTreeHost; |
| + |
| +class CC_EXPORT SharedUIResource : public UIResource { |
|
danakj
2013/08/27 15:42:48
And can you add a comment here as well, such that
powei
2013/08/27 22:39:28
Done. Removed.
|
| + public: |
| + static scoped_ptr<SharedUIResource> Create(UIResourceId id) { |
| + return make_scoped_ptr(new SharedUIResource(id)); |
| + } |
| + |
| + // UIResource |
|
danakj
2013/08/27 15:42:48
// UIResource implementation.
powei
2013/08/27 22:39:28
Done.
|
| + virtual UIResourceId id() OVERRIDE { return id_; } |
|
danakj
2013/08/27 15:42:48
since this is virtual, the definition needs to go
powei
2013/08/27 22:39:28
Done.
|
| + |
| + private: |
| + explicit SharedUIResource(UIResourceId id) : id_(id) {} |
| + |
| + UIResourceId id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SharedUIResource); |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_RESOURCES_SHARED_UI_RESOURCE_H_ |