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

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

Issue 26564006: Cleanup: Add conversion interface for WebWidget derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | Source/web/WebHelperPluginImpl.h » ('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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 getPopupMenuInfo(popupContainer, &popupInfo); 708 getPopupMenuInfo(popupContainer, &popupInfo);
709 webwidget = m_webView->client()->createPopupMenu(popupInfo); 709 webwidget = m_webView->client()->createPopupMenu(popupInfo);
710 } else { 710 } else {
711 webwidget = m_webView->client()->createPopupMenu( 711 webwidget = m_webView->client()->createPopupMenu(
712 convertPopupType(popupContainer->popupType())); 712 convertPopupType(popupContainer->popupType()));
713 // We only notify when the WebView has to handle the popup, as when 713 // We only notify when the WebView has to handle the popup, as when
714 // the popup is handled externally, the fact that a popup is showing is 714 // the popup is handled externally, the fact that a popup is showing is
715 // transparent to the WebView. 715 // transparent to the WebView.
716 m_webView->popupOpened(popupContainer); 716 m_webView->popupOpened(popupContainer);
717 } 717 }
718 static_cast<WebPopupMenuImpl*>(webwidget)->initialize(popupContainer, bounds ); 718 toWebPopupMenuImpl(webwidget)->initialize(popupContainer, bounds);
719 } 719 }
720 720
721 void ChromeClientImpl::popupClosed(WebCore::PopupContainer* popupContainer) 721 void ChromeClientImpl::popupClosed(WebCore::PopupContainer* popupContainer)
722 { 722 {
723 m_webView->popupClosed(popupContainer); 723 m_webView->popupClosed(popupContainer);
724 } 724 }
725 725
726 void ChromeClientImpl::setCursor(const WebCore::Cursor& cursor) 726 void ChromeClientImpl::setCursor(const WebCore::Cursor& cursor)
727 { 727 {
728 setCursor(WebCursorInfo(cursor)); 728 setCursor(WebCursorInfo(cursor));
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 { 1007 {
1008 } 1008 }
1009 1009
1010 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 1010 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1011 { 1011 {
1012 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1012 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1013 } 1013 }
1014 #endif 1014 #endif
1015 1015
1016 } // namespace WebKit 1016 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebHelperPluginImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698