OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WINDOW_WINDOW_RESOURCES_H_ | 5 #ifndef UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ |
6 #define VIEWS_WINDOW_WINDOW_RESOURCES_H_ | 6 #define UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class SkBitmap; | 9 class SkBitmap; |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 typedef int FramePartBitmap; | 13 typedef int FramePartBitmap; |
14 | 14 |
15 /////////////////////////////////////////////////////////////////////////////// | 15 /////////////////////////////////////////////////////////////////////////////// |
16 // WindowResources | 16 // WindowResources |
17 // | 17 // |
18 // An interface implemented by an object providing bitmaps to render the | 18 // An interface implemented by an object providing bitmaps to render the |
19 // contents of a window frame. The Window may swap in different | 19 // contents of a window frame. The Window may swap in different |
20 // implementations of this interface to render different modes. The definition | 20 // implementations of this interface to render different modes. The definition |
21 // of FramePartBitmap depends on the implementation. | 21 // of FramePartBitmap depends on the implementation. |
22 // | 22 // |
23 class WindowResources { | 23 class WindowResources { |
24 public: | 24 public: |
25 virtual ~WindowResources() { } | 25 virtual ~WindowResources() {} |
| 26 |
26 virtual SkBitmap* GetPartBitmap(FramePartBitmap part) const = 0; | 27 virtual SkBitmap* GetPartBitmap(FramePartBitmap part) const = 0; |
27 }; | 28 }; |
28 | 29 |
29 } // namespace views | 30 } // namespace views |
30 | 31 |
31 #endif // VIEWS_WINDOW_WINDOW_RESOURCES_H_ | 32 #endif // UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ |
OLD | NEW |