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

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

Issue 10377148: Revert 116712 - Source/WebCore: [chromium] DomStorage events handling needs TLC (2) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1137/
Patch Set: Created 8 years, 7 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 | « Source/WebKit/chromium/src/WebViewImpl.h ('k') | 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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 1254
1255 WebViewImpl* WebViewImpl::fromPage(Page* page) 1255 WebViewImpl* WebViewImpl::fromPage(Page* page)
1256 { 1256 {
1257 if (!page) 1257 if (!page)
1258 return 0; 1258 return 0;
1259 1259
1260 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(page->chrome ()->client()); 1260 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(page->chrome ()->client());
1261 return static_cast<WebViewImpl*>(chromeClient->webView()); 1261 return static_cast<WebViewImpl*>(chromeClient->webView());
1262 } 1262 }
1263 1263
1264 PageGroup* WebViewImpl::defaultPageGroup()
1265 {
1266 return PageGroup::pageGroup(pageGroupName);
1267 }
1268
1269 // WebWidget ------------------------------------------------------------------ 1264 // WebWidget ------------------------------------------------------------------
1270 1265
1271 void WebViewImpl::close() 1266 void WebViewImpl::close()
1272 { 1267 {
1273 RefPtr<WebFrameImpl> mainFrameImpl; 1268 RefPtr<WebFrameImpl> mainFrameImpl;
1274 1269
1275 if (m_page) { 1270 if (m_page) {
1276 // Initiate shutdown for the entire frameset. This will cause a lot of 1271 // Initiate shutdown for the entire frameset. This will cause a lot of
1277 // notifications to be sent. 1272 // notifications to be sent.
1278 if (m_page->mainFrame()) { 1273 if (m_page->mainFrame()) {
(...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after
3564 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); 3559 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event);
3565 3560
3566 if (page()) 3561 if (page())
3567 page()->pointerLockController()->dispatchLockedMouseEvent( 3562 page()->pointerLockController()->dispatchLockedMouseEvent(
3568 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), 3563 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent),
3569 eventType); 3564 eventType);
3570 } 3565 }
3571 #endif 3566 #endif
3572 3567
3573 } // namespace WebKit 3568 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698