| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 | 641 |
| 642 void ChromeClientImpl::SetCursorForPlugin(const WebCursorInfo& cursor, | 642 void ChromeClientImpl::SetCursorForPlugin(const WebCursorInfo& cursor, |
| 643 LocalFrame* local_frame) { | 643 LocalFrame* local_frame) { |
| 644 SetCursor(cursor, local_frame); | 644 SetCursor(cursor, local_frame); |
| 645 } | 645 } |
| 646 | 646 |
| 647 void ChromeClientImpl::SetCursorOverridden(bool overridden) { | 647 void ChromeClientImpl::SetCursorOverridden(bool overridden) { |
| 648 cursor_overridden_ = overridden; | 648 cursor_overridden_ = overridden; |
| 649 } | 649 } |
| 650 | 650 |
| 651 void ChromeClientImpl::AutoscrollStart(WebFloatPoint viewport_point, |
| 652 LocalFrame* local_frame) { |
| 653 LocalFrame& local_root = local_frame->LocalFrameRoot(); |
| 654 if (WebFrameWidgetBase* widget = |
| 655 WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget()) |
| 656 widget->Client()->AutoscrollStart(viewport_point); |
| 657 } |
| 658 |
| 659 void ChromeClientImpl::AutoscrollFling(WebFloatSize velocity, |
| 660 LocalFrame* local_frame) { |
| 661 LocalFrame& local_root = local_frame->LocalFrameRoot(); |
| 662 if (WebFrameWidgetBase* widget = |
| 663 WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget()) |
| 664 widget->Client()->AutoscrollFling(velocity); |
| 665 } |
| 666 |
| 667 void ChromeClientImpl::AutoscrollEnd(LocalFrame* local_frame) { |
| 668 LocalFrame& local_root = local_frame->LocalFrameRoot(); |
| 669 if (WebFrameWidgetBase* widget = |
| 670 WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget()) |
| 671 widget->Client()->AutoscrollEnd(); |
| 672 } |
| 673 |
| 651 String ChromeClientImpl::AcceptLanguages() { | 674 String ChromeClientImpl::AcceptLanguages() { |
| 652 return web_view_->Client()->AcceptLanguages(); | 675 return web_view_->Client()->AcceptLanguages(); |
| 653 } | 676 } |
| 654 | 677 |
| 655 void ChromeClientImpl::AttachRootGraphicsLayer(GraphicsLayer* root_layer, | 678 void ChromeClientImpl::AttachRootGraphicsLayer(GraphicsLayer* root_layer, |
| 656 LocalFrame* local_frame) { | 679 LocalFrame* local_frame) { |
| 657 DCHECK(!RuntimeEnabledFeatures::SlimmingPaintV2Enabled()); | 680 DCHECK(!RuntimeEnabledFeatures::SlimmingPaintV2Enabled()); |
| 658 WebLocalFrameImpl* web_frame = | 681 WebLocalFrameImpl* web_frame = |
| 659 WebLocalFrameImpl::FromFrame(local_frame)->LocalRoot(); | 682 WebLocalFrameImpl::FromFrame(local_frame)->LocalRoot(); |
| 660 | 683 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 std::unique_ptr<WebFrameScheduler> ChromeClientImpl::CreateFrameScheduler( | 1111 std::unique_ptr<WebFrameScheduler> ChromeClientImpl::CreateFrameScheduler( |
| 1089 BlameContext* blame_context) { | 1112 BlameContext* blame_context) { |
| 1090 return web_view_->Scheduler()->CreateFrameScheduler(blame_context); | 1113 return web_view_->Scheduler()->CreateFrameScheduler(blame_context); |
| 1091 } | 1114 } |
| 1092 | 1115 |
| 1093 double ChromeClientImpl::LastFrameTimeMonotonic() const { | 1116 double ChromeClientImpl::LastFrameTimeMonotonic() const { |
| 1094 return web_view_->LastFrameTimeMonotonic(); | 1117 return web_view_->LastFrameTimeMonotonic(); |
| 1095 } | 1118 } |
| 1096 | 1119 |
| 1097 } // namespace blink | 1120 } // namespace blink |
| OLD | NEW |