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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class Scrollbar; | 39 class Scrollbar; |
40 class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar { | 40 class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar { |
41 USING_FAST_MALLOC(WebScrollbarImpl); | 41 USING_FAST_MALLOC(WebScrollbarImpl); |
42 WTF_MAKE_NONCOPYABLE(WebScrollbarImpl); | 42 WTF_MAKE_NONCOPYABLE(WebScrollbarImpl); |
43 | 43 |
44 public: | 44 public: |
45 static std::unique_ptr<WebScrollbarImpl> create(Scrollbar* scrollbar) { | 45 static std::unique_ptr<WebScrollbarImpl> create(Scrollbar* scrollbar) { |
46 return wrapUnique(new WebScrollbarImpl(scrollbar)); | 46 return WTF::wrapUnique(new WebScrollbarImpl(scrollbar)); |
47 } | 47 } |
48 | 48 |
49 // Implement WebScrollbar methods | 49 // Implement WebScrollbar methods |
50 bool isOverlay() const override; | 50 bool isOverlay() const override; |
51 int value() const override; | 51 int value() const override; |
52 WebPoint location() const override; | 52 WebPoint location() const override; |
53 WebSize size() const override; | 53 WebSize size() const override; |
54 bool enabled() const override; | 54 bool enabled() const override; |
55 int maximum() const override; | 55 int maximum() const override; |
56 int totalSize() const override; | 56 int totalSize() const override; |
(...skipping 11 matching lines...) Expand all Loading... |
68 | 68 |
69 private: | 69 private: |
70 explicit WebScrollbarImpl(Scrollbar*); | 70 explicit WebScrollbarImpl(Scrollbar*); |
71 | 71 |
72 Persistent<Scrollbar> m_scrollbar; | 72 Persistent<Scrollbar> m_scrollbar; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace blink | 75 } // namespace blink |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |