| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // WebPluginScrollbar methods | 73 // WebPluginScrollbar methods |
| 74 virtual void setLocation(const WebRect&) override; | 74 virtual void setLocation(const WebRect&) override; |
| 75 virtual void setValue(int position) override; | 75 virtual void setValue(int position) override; |
| 76 virtual void setDocumentSize(int) override; | 76 virtual void setDocumentSize(int) override; |
| 77 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) ov
erride; | 77 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) ov
erride; |
| 78 virtual void paint(WebCanvas*, const WebRect&) override; | 78 virtual void paint(WebCanvas*, const WebRect&) override; |
| 79 virtual bool handleInputEvent(const WebInputEvent&) override; | 79 virtual bool handleInputEvent(const WebInputEvent&) override; |
| 80 virtual bool isAlphaLocked() const override; | 80 virtual bool isAlphaLocked() const override; |
| 81 virtual void setIsAlphaLocked(bool) override; | 81 virtual void setIsAlphaLocked(bool) override; |
| 82 virtual float elasticOverscroll() const override; |
| 83 virtual void setElasticOverscroll(float) override; |
| 82 | 84 |
| 83 private: | 85 private: |
| 84 bool onMouseDown(const WebInputEvent&); | 86 bool onMouseDown(const WebInputEvent&); |
| 85 bool onMouseUp(const WebInputEvent&); | 87 bool onMouseUp(const WebInputEvent&); |
| 86 bool onMouseMove(const WebInputEvent&); | 88 bool onMouseMove(const WebInputEvent&); |
| 87 bool onMouseLeave(const WebInputEvent&); | 89 bool onMouseLeave(const WebInputEvent&); |
| 88 bool onMouseWheel(const WebInputEvent&); | 90 bool onMouseWheel(const WebInputEvent&); |
| 89 bool onKeyDown(const WebInputEvent&); | 91 bool onKeyDown(const WebInputEvent&); |
| 90 | 92 |
| 91 ScrollbarGroup* m_group; | 93 ScrollbarGroup* m_group; |
| 92 WebPluginScrollbarClient* m_client; | 94 WebPluginScrollbarClient* m_client; |
| 93 | 95 |
| 94 int m_scrollOffset; | 96 int m_scrollOffset; |
| 95 RefPtrWillBePersistent<Scrollbar> m_scrollbar; | 97 RefPtrWillBePersistent<Scrollbar> m_scrollbar; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namespace blink | 100 } // namespace blink |
| 99 | 101 |
| 100 #endif | 102 #endif |
| OLD | NEW |