| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 TestData m_testData; | 163 TestData m_testData; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 class TapHandlingWebViewClient : public FrameTestHelpers::TestWebViewClient { | 166 class TapHandlingWebViewClient : public FrameTestHelpers::TestWebViewClient { |
| 167 public: | 167 public: |
| 168 // WebViewClient methods | 168 // WebViewClient methods |
| 169 void didHandleGestureEvent(const WebGestureEvent& event, | 169 void didHandleGestureEvent(const WebGestureEvent& event, |
| 170 bool eventCancelled) override { | 170 bool eventCancelled) override { |
| 171 if (event.type == WebInputEvent::GestureTap) { | 171 if (event.type() == WebInputEvent::GestureTap) { |
| 172 m_tapX = event.x; | 172 m_tapX = event.x; |
| 173 m_tapY = event.y; | 173 m_tapY = event.y; |
| 174 } else if (event.type == WebInputEvent::GestureLongPress) { | 174 } else if (event.type() == WebInputEvent::GestureLongPress) { |
| 175 m_longpressX = event.x; | 175 m_longpressX = event.x; |
| 176 m_longpressY = event.y; | 176 m_longpressY = event.y; |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 // Local methods | 180 // Local methods |
| 181 void reset() { | 181 void reset() { |
| 182 m_tapX = -1; | 182 m_tapX = -1; |
| 183 m_tapY = -1; | 183 m_tapY = -1; |
| 184 m_longpressX = -1; | 184 m_longpressX = -1; |
| (...skipping 4167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4352 frame->printBegin(printParams, WebNode()); | 4352 frame->printBegin(printParams, WebNode()); |
| 4353 webView->resize(WebSize(500, 500)); | 4353 webView->resize(WebSize(500, 500)); |
| 4354 EXPECT_EQ(500, vwElement->offsetWidth()); | 4354 EXPECT_EQ(500, vwElement->offsetWidth()); |
| 4355 | 4355 |
| 4356 webView->resize(WebSize(800, 600)); | 4356 webView->resize(WebSize(800, 600)); |
| 4357 frame->printEnd(); | 4357 frame->printEnd(); |
| 4358 EXPECT_EQ(800, vwElement->offsetWidth()); | 4358 EXPECT_EQ(800, vwElement->offsetWidth()); |
| 4359 } | 4359 } |
| 4360 | 4360 |
| 4361 } // namespace blink | 4361 } // namespace blink |
| OLD | NEW |