OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 private: | 66 private: |
67 // The theme is not owned by this class. It is assumed that the theme is a | 67 // The theme is not owned by this class. It is assumed that the theme is a |
68 // static pointer and its lifetime is essentially infinite. The functions | 68 // static pointer and its lifetime is essentially infinite. The functions |
69 // called from the painter may not be thread-safe, so all calls must be made | 69 // called from the painter may not be thread-safe, so all calls must be made |
70 // from the same thread that it is created on. | 70 // from the same thread that it is created on. |
71 ScrollbarTheme* m_theme; | 71 ScrollbarTheme* m_theme; |
72 | 72 |
73 // It is assumed that the constructor of this paint object is responsible | 73 // It is assumed that the constructor of this paint object is responsible |
74 // for the lifetime of this scrollbar. The painter has to use the real | 74 // for the lifetime of this scrollbar. The painter has to use the real |
75 // scrollbar (and not a WebScrollbar wrapper) due to static_casts for | 75 // scrollbar (and not a WebScrollbar wrapper) due to static_casts for |
76 // RenderScrollbar and pointer-based HashMap lookups for Lion scrollbars. | 76 // LayoutScrollbar and pointer-based HashMap lookups for Lion scrollbars. |
77 Scrollbar* m_scrollbar; | 77 Scrollbar* m_scrollbar; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace blink | 80 } // namespace blink |
81 | 81 |
82 #endif | 82 #endif |
OLD | NEW |