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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 11420084: Merge 133009 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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 | no next file » | 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 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 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 hidePopups(); 1430 hidePopups();
1431 ASSERT(!m_pagePopup); 1431 ASSERT(!m_pagePopup);
1432 1432
1433 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypePage); 1433 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypePage);
1434 ASSERT(popupWidget); 1434 ASSERT(popupWidget);
1435 m_pagePopup = static_cast<WebPagePopupImpl*>(popupWidget); 1435 m_pagePopup = static_cast<WebPagePopupImpl*>(popupWidget);
1436 if (!m_pagePopup->init(this, client, originBoundsInRootView)) { 1436 if (!m_pagePopup->init(this, client, originBoundsInRootView)) {
1437 m_pagePopup->closePopup(); 1437 m_pagePopup->closePopup();
1438 m_pagePopup = 0; 1438 m_pagePopup = 0;
1439 } 1439 }
1440
1441 if (Frame* frame = focusedWebCoreFrame())
1442 frame->selection()->setCaretVisible(false);
1443 return m_pagePopup.get(); 1440 return m_pagePopup.get();
1444 } 1441 }
1445 1442
1446 void WebViewImpl::closePagePopup(PagePopup* popup) 1443 void WebViewImpl::closePagePopup(PagePopup* popup)
1447 { 1444 {
1448 ASSERT(popup); 1445 ASSERT(popup);
1449 WebPagePopupImpl* popupImpl = static_cast<WebPagePopupImpl*>(popup); 1446 WebPagePopupImpl* popupImpl = static_cast<WebPagePopupImpl*>(popup);
1450 ASSERT(m_pagePopup.get() == popupImpl); 1447 ASSERT(m_pagePopup.get() == popupImpl);
1451 if (m_pagePopup.get() != popupImpl) 1448 if (m_pagePopup.get() != popupImpl)
1452 return; 1449 return;
1453 m_pagePopup->closePopup(); 1450 m_pagePopup->closePopup();
1454 m_pagePopup = 0; 1451 m_pagePopup = 0;
1455
1456 if (Frame* frame = focusedWebCoreFrame())
1457 frame->selection()->pageActivationChanged();
1458 } 1452 }
1459 #endif 1453 #endif
1460 1454
1461 void WebViewImpl::hideAutofillPopup() 1455 void WebViewImpl::hideAutofillPopup()
1462 { 1456 {
1463 if (m_autofillPopupShowing) { 1457 if (m_autofillPopupShowing) {
1464 m_autofillPopup->hidePopup(); 1458 m_autofillPopup->hidePopup();
1465 m_autofillPopupShowing = false; 1459 m_autofillPopupShowing = false;
1466 } 1460 }
1467 } 1461 }
(...skipping 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after
4243 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); 4237 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event);
4244 4238
4245 if (page()) 4239 if (page())
4246 page()->pointerLockController()->dispatchLockedMouseEvent( 4240 page()->pointerLockController()->dispatchLockedMouseEvent(
4247 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), 4241 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent),
4248 eventType); 4242 eventType);
4249 } 4243 }
4250 #endif 4244 #endif
4251 4245
4252 } // namespace WebKit 4246 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698