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

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

Issue 749333002: Plumbing for frame-specific WebWidgets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect ) 483 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect )
484 { 484 {
485 invalidateContentsAndRootView(updateRect); 485 invalidateContentsAndRootView(updateRect);
486 } 486 }
487 487
488 void ChromeClientImpl::scheduleAnimation() 488 void ChromeClientImpl::scheduleAnimation()
489 { 489 {
490 m_webView->scheduleAnimation(); 490 m_webView->scheduleAnimation();
491 } 491 }
492 492
493 void ChromeClientImpl::scheduleAnimationForFrame(LocalFrame* localRoot)
494 {
495 // FIXME: This will proxy to a WebWidget attached to the WebLocalFrameImpl.
496 scheduleAnimation();
497 }
498
493 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const 499 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const
494 { 500 {
495 IntRect screenRect(rect); 501 IntRect screenRect(rect);
496 502
497 if (m_webView->client()) { 503 if (m_webView->client()) {
498 WebRect windowRect = m_webView->client()->windowRect(); 504 WebRect windowRect = m_webView->client()->windowRect();
499 screenRect.move(windowRect.x, windowRect.y); 505 screenRect.move(windowRect.x, windowRect.y);
500 } 506 }
501 507
502 return screenRect; 508 return screenRect;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 if (pluginContainer) 686 if (pluginContainer)
681 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh angArea, verticalOverhangArea, dirtyRect); 687 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh angArea, verticalOverhangArea, dirtyRect);
682 return false; 688 return false;
683 } 689 }
684 690
685 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const 691 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const
686 { 692 {
687 return m_webView->graphicsLayerFactory(); 693 return m_webView->graphicsLayerFactory();
688 } 694 }
689 695
690 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) 696 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr ame* localRoot)
691 { 697 {
698 // FIXME: Add call to frame's widget for non-zero frames.
692 m_webView->setRootGraphicsLayer(rootLayer); 699 m_webView->setRootGraphicsLayer(rootLayer);
693 } 700 }
694 701
695 void ChromeClientImpl::enterFullScreenForElement(Element* element) 702 void ChromeClientImpl::enterFullScreenForElement(Element* element)
696 { 703 {
697 m_webView->enterFullScreenForElement(element); 704 m_webView->enterFullScreenForElement(element);
698 } 705 }
699 706
700 void ChromeClientImpl::exitFullScreenForElement(Element* element) 707 void ChromeClientImpl::exitFullScreenForElement(Element* element)
701 { 708 {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 { 863 {
857 // FIXME: remove. See http://crbug.com/425756 864 // FIXME: remove. See http://crbug.com/425756
858 if (m_webView->autofillClient()) 865 if (m_webView->autofillClient())
859 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put)); 866 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put));
860 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document(). frame()); 867 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document(). frame());
861 if (webframe->autofillClient()) 868 if (webframe->autofillClient())
862 webframe->autofillClient()->openTextDataListChooser(WebInputElement(&inp ut)); 869 webframe->autofillClient()->openTextDataListChooser(WebInputElement(&inp ut));
863 } 870 }
864 871
865 } // namespace blink 872 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698