Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: sky/engine/platform/exported/WebScrollbarImpl.cpp

Issue 720713003: Remove WebScroll* (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y
17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25 #include "config.h"
26
27 #include "platform/exported/WebScrollbarImpl.h"
28
29 #include "platform/geometry/IntRect.h"
30 #include "platform/scroll/Scrollbar.h"
31
32 namespace blink {
33
34 WebScrollbarImpl::WebScrollbarImpl(Scrollbar* scrollbar)
35 : m_scrollbar(scrollbar)
36 {
37 }
38
39 bool WebScrollbarImpl::isOverlay() const
40 {
41 return m_scrollbar->isOverlayScrollbar();
42 }
43
44 int WebScrollbarImpl::value() const
45 {
46 return m_scrollbar->value();
47 }
48
49 WebPoint WebScrollbarImpl::location() const
50 {
51 return m_scrollbar->location();
52 }
53
54 WebSize WebScrollbarImpl::size() const
55 {
56 return m_scrollbar->size();
57 }
58
59 bool WebScrollbarImpl::enabled() const
60 {
61 return m_scrollbar->enabled();
62 }
63
64 int WebScrollbarImpl::maximum() const
65 {
66 return m_scrollbar->maximum();
67 }
68
69 int WebScrollbarImpl::totalSize() const
70 {
71 return m_scrollbar->totalSize();
72 }
73
74 bool WebScrollbarImpl::isScrollableAreaActive() const
75 {
76 return m_scrollbar->isScrollableAreaActive();
77 }
78
79 WebScrollbar::ScrollbarPart WebScrollbarImpl::pressedPart() const
80 {
81 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->pressedPart());
82 }
83
84 WebScrollbar::ScrollbarPart WebScrollbarImpl::hoveredPart() const
85 {
86 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->hoveredPart());
87 }
88
89 WebScrollbar::ScrollbarOverlayStyle WebScrollbarImpl::scrollbarOverlayStyle() co nst
90 {
91 return static_cast<WebScrollbar::ScrollbarOverlayStyle>(m_scrollbar->scrollb arOverlayStyle());
92 }
93
94 WebScrollbar::Orientation WebScrollbarImpl::orientation() const
95 {
96 return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation());
97 }
98
99 bool WebScrollbarImpl::isLeftSideVerticalScrollbar() const
100 {
101 return m_scrollbar->isLeftSideVerticalScrollbar();
102 }
103
104 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/exported/WebScrollbarImpl.h ('k') | sky/engine/platform/exported/WebScrollbarThemeGeometryNative.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698