| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ScrollbarTheme&); | 48 ScrollbarTheme&); |
| 49 | 49 |
| 50 bool hasButtons(WebScrollbar*) override; | 50 bool hasButtons(WebScrollbar*) override; |
| 51 bool hasThumb(WebScrollbar*) override; | 51 bool hasThumb(WebScrollbar*) override; |
| 52 WebRect trackRect(WebScrollbar*) override; | 52 WebRect trackRect(WebScrollbar*) override; |
| 53 WebRect thumbRect(WebScrollbar*) override; | 53 WebRect thumbRect(WebScrollbar*) override; |
| 54 WebRect backButtonStartRect(WebScrollbar*) override; | 54 WebRect backButtonStartRect(WebScrollbar*) override; |
| 55 WebRect backButtonEndRect(WebScrollbar*) override; | 55 WebRect backButtonEndRect(WebScrollbar*) override; |
| 56 WebRect forwardButtonStartRect(WebScrollbar*) override; | 56 WebRect forwardButtonStartRect(WebScrollbar*) override; |
| 57 WebRect forwardButtonEndRect(WebScrollbar*) override; | 57 WebRect forwardButtonEndRect(WebScrollbar*) override; |
| 58 WebSize ninePatchThumbCanvasSize(WebScrollbar*) override; |
| 59 WebRect ninePatchThumbAperture(WebScrollbar*) override; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 explicit WebScrollbarThemeGeometryNative(ScrollbarTheme&); | 62 explicit WebScrollbarThemeGeometryNative(ScrollbarTheme&); |
| 61 | 63 |
| 62 // The theme is not owned by this class. It is assumed that the theme is a | 64 // The theme is not owned by this class. It is assumed that the theme is a |
| 63 // static pointer and its lifetime is essentially infinite. Only thread-safe | 65 // static pointer and its lifetime is essentially infinite. Only thread-safe |
| 64 // functions on the theme can be called by this theme. | 66 // functions on the theme can be called by this theme. |
| 65 ScrollbarTheme& m_theme; | 67 ScrollbarTheme& m_theme; |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace blink | 70 } // namespace blink |
| 69 | 71 |
| 70 #endif | 72 #endif |
| OLD | NEW |