OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |