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 16 matching lines...) Expand all Loading... |
27 #define WebScrollbarThemeGeometryNative_h | 27 #define WebScrollbarThemeGeometryNative_h |
28 | 28 |
29 #include "public/platform/WebRect.h" | 29 #include "public/platform/WebRect.h" |
30 #include "public/platform/WebScrollbarThemeGeometry.h" | 30 #include "public/platform/WebScrollbarThemeGeometry.h" |
31 #include "wtf/PassOwnPtr.h" | 31 #include "wtf/PassOwnPtr.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 class ScrollbarTheme; | 34 class ScrollbarTheme; |
35 } | 35 } |
36 | 36 |
37 namespace WebKit { | 37 namespace blink { |
38 | 38 |
39 class WebScrollbar; | 39 class WebScrollbar; |
40 | 40 |
41 class WebScrollbarThemeGeometryNative : public WebScrollbarThemeGeometry { | 41 class WebScrollbarThemeGeometryNative : public WebScrollbarThemeGeometry { |
42 public: | 42 public: |
43 static PassOwnPtr<WebScrollbarThemeGeometryNative> create(WebCore::Scrollbar
Theme*); | 43 static PassOwnPtr<WebScrollbarThemeGeometryNative> create(WebCore::Scrollbar
Theme*); |
44 | 44 |
45 // WebScrollbarThemeGeometry overrides | 45 // WebScrollbarThemeGeometry overrides |
46 virtual WebScrollbarThemeGeometryNative* clone() const OVERRIDE; | 46 virtual WebScrollbarThemeGeometryNative* clone() const OVERRIDE; |
47 virtual int thumbPosition(WebScrollbar*) OVERRIDE; | 47 virtual int thumbPosition(WebScrollbar*) OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
63 | 63 |
64 private: | 64 private: |
65 explicit WebScrollbarThemeGeometryNative(WebCore::ScrollbarTheme*); | 65 explicit WebScrollbarThemeGeometryNative(WebCore::ScrollbarTheme*); |
66 | 66 |
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. Only thread-safe | 68 // static pointer and its lifetime is essentially infinite. Only thread-safe |
69 // functions on the theme can be called by this theme. | 69 // functions on the theme can be called by this theme. |
70 WebCore::ScrollbarTheme* m_theme; | 70 WebCore::ScrollbarTheme* m_theme; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace WebKit | 73 } // namespace blink |
74 | 74 |
75 #endif | 75 #endif |
OLD | NEW |