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

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

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/StorageNamespaceProxy.cpp ('k') | Source/web/WebViewImpl.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 * 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 WebCursorInfo cursorInfo; 686 WebCursorInfo cursorInfo;
687 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) 687 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
688 event->setDefaultHandled(); 688 event->setDefaultHandled();
689 689
690 // A windowless plugin can change the cursor in response to a mouse move 690 // A windowless plugin can change the cursor in response to a mouse move
691 // event. We need to reflect the changed cursor in the frame view as the 691 // event. We need to reflect the changed cursor in the frame view as the
692 // mouse is moved in the boundaries of the windowless plugin. 692 // mouse is moved in the boundaries of the windowless plugin.
693 Page* page = parentView->frame()->page(); 693 Page* page = parentView->frame()->page();
694 if (!page) 694 if (!page)
695 return; 695 return;
696 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(page->chrome ().client()); 696 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(&page->chrom e().client());
697 chromeClient->setCursorForPlugin(cursorInfo); 697 chromeClient->setCursorForPlugin(cursorInfo);
698 } 698 }
699 699
700 void WebPluginContainerImpl::handleDragEvent(MouseEvent* event) 700 void WebPluginContainerImpl::handleDragEvent(MouseEvent* event)
701 { 701 {
702 ASSERT(event->isDragEvent()); 702 ASSERT(event->isDragEvent());
703 703
704 WebDragStatus dragStatus = WebDragStatusUnknown; 704 WebDragStatus dragStatus = WebDragStatusUnknown;
705 if (event->type() == eventNames().dragenterEvent) 705 if (event->type() == eventNames().dragenterEvent)
706 dragStatus = WebDragStatusEnter; 706 dragStatus = WebDragStatusEnter;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 // Take our element and get the clip rect from the enclosing layer and 881 // Take our element and get the clip rect from the enclosing layer and
882 // frame view. 882 // frame view.
883 clipRect.intersect( 883 clipRect.intersect(
884 m_element->document()->view()->windowClipRectForFrameOwner(m_element , true)); 884 m_element->document()->view()->windowClipRectForFrameOwner(m_element , true));
885 } 885 }
886 886
887 return clipRect; 887 return clipRect;
888 } 888 }
889 889
890 } // namespace WebKit 890 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/StorageNamespaceProxy.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698