[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / base / cursor / cursor_loader_ozone.h
blob402cdc2bb6b07ff5c4b2afb8c9de421fb080a467
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.
5 #ifndef UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_
6 #define UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_
8 #include <map>
10 #include "ui/base/cursor/cursor.h"
11 #include "ui/base/cursor/cursor_loader.h"
13 namespace ui {
15 class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
16 public:
17 CursorLoaderOzone();
18 virtual ~CursorLoaderOzone();
20 // CursorLoader overrides:
21 virtual void LoadImageCursor(int id,
22 int resource_id,
23 const gfx::Point& hot) OVERRIDE;
24 virtual void LoadAnimatedCursor(int id,
25 int resource_id,
26 const gfx::Point& hot,
27 int frame_delay_ms) OVERRIDE;
28 virtual void UnloadAll() OVERRIDE;
29 virtual void SetPlatformCursor(gfx::NativeCursor* cursor) OVERRIDE;
31 private:
32 // Pointers are owned by ResourceBundle and must not be freed here.
33 typedef std::map<int, PlatformCursor> ImageCursorMap;
34 ImageCursorMap cursors_;
36 DISALLOW_COPY_AND_ASSIGN(CursorLoaderOzone);
39 } // namespace ui
41 #endif // UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_