| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // Moves the selection down/up one item, taking care of looping back to the | 236 // Moves the selection down/up one item, taking care of looping back to the |
| 237 // first/last element if m_loopSelectionNavigation is true. | 237 // first/last element if m_loopSelectionNavigation is true. |
| 238 void selectPreviousRow(); | 238 void selectPreviousRow(); |
| 239 void selectNextRow(); | 239 void selectNextRow(); |
| 240 | 240 |
| 241 int scrollX() const { return scrollPosition().x(); } | 241 int scrollX() const { return scrollPosition().x(); } |
| 242 int scrollY() const { return scrollPosition().y(); } | 242 int scrollY() const { return scrollPosition().y(); } |
| 243 void updateScrollbars(IntPoint desiredOffset); | 243 void updateScrollbars(IntPoint desiredOffset); |
| 244 void setHasVerticalScrollbar(bool); | 244 void setHasVerticalScrollbar(bool); |
| 245 Scrollbar* scrollbarAtWindowPoint(const IntPoint& windowPoint); | 245 Scrollbar* scrollbarAtRootFramePoint(const IntPoint& pointInRootFrame); |
| 246 IntRect contentsToWindow(const IntRect&) const; | 246 IntRect contentsToWindow(const IntRect&) const; |
| 247 void setContentsSize(const IntSize&); | 247 void setContentsSize(const IntSize&); |
| 248 void adjustScrollbarExistence(); | 248 void adjustScrollbarExistence(); |
| 249 void updateScrollbarGeometry(); | 249 void updateScrollbarGeometry(); |
| 250 IntRect windowClipRect() const; | 250 IntRect windowClipRect() const; |
| 251 | 251 |
| 252 // If the device is a touch screen we increase the height of menu items | 252 // If the device is a touch screen we increase the height of menu items |
| 253 // to make it easier to unambiguously touch them. | 253 // to make it easier to unambiguously touch them. |
| 254 bool m_deviceSupportsTouch; | 254 bool m_deviceSupportsTouch; |
| 255 | 255 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 RawPtrWillBeMember<PopupContainer> m_container; | 313 RawPtrWillBeMember<PopupContainer> m_container; |
| 314 | 314 |
| 315 RefPtrWillBeMember<Scrollbar> m_verticalScrollbar; | 315 RefPtrWillBeMember<Scrollbar> m_verticalScrollbar; |
| 316 IntSize m_contentsSize; | 316 IntSize m_contentsSize; |
| 317 IntPoint m_scrollOffset; | 317 IntPoint m_scrollOffset; |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace blink | 320 } // namespace blink |
| 321 | 321 |
| 322 #endif | 322 #endif |
| OLD | NEW |