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

Side by Side Diff: Source/web/WebPluginScrollbarImpl.cpp

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 5 years, 8 months 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
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 if (keyboard.isSystemKey || (keyboard.modifiers & WebInputEvent::ShiftKe y)) 352 if (keyboard.isSystemKey || (keyboard.modifiers & WebInputEvent::ShiftKe y))
353 return false; 353 return false;
354 354
355 keyCode = keyboard.windowsKeyCode; 355 keyCode = keyboard.windowsKeyCode;
356 } 356 }
357 blink::ScrollDirection scrollDirection; 357 blink::ScrollDirection scrollDirection;
358 blink::ScrollGranularity scrollGranularity; 358 blink::ScrollGranularity scrollGranularity;
359 if (WebViewImpl::mapKeyCodeForScroll(keyCode, &scrollDirection, &scrollGranu larity)) { 359 if (WebViewImpl::mapKeyCodeForScroll(keyCode, &scrollDirection, &scrollGranu larity)) {
360 // Will return false if scroll direction wasn't compatible with this scr ollbar. 360 // Will return false if scroll direction wasn't compatible with this scr ollbar.
361 return m_group->scroll(scrollDirection, scrollGranularity); 361 return m_group->scroll(scrollDirection, scrollGranularity).didScroll;
362 } 362 }
363 return false; 363 return false;
364 } 364 }
365 365
366 float WebPluginScrollbarImpl::elasticOverscroll() const 366 float WebPluginScrollbarImpl::elasticOverscroll() const
367 { 367 {
368 return m_scrollbar->elasticOverscroll(); 368 return m_scrollbar->elasticOverscroll();
369 } 369 }
370 370
371 void WebPluginScrollbarImpl::setElasticOverscroll(float elasticOverscroll) 371 void WebPluginScrollbarImpl::setElasticOverscroll(float elasticOverscroll)
372 { 372 {
373 m_scrollbar->setElasticOverscroll(elasticOverscroll); 373 m_scrollbar->setElasticOverscroll(elasticOverscroll);
374 } 374 }
375 375
376 } // namespace blink 376 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698