OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 28 matching lines...) Expand all Loading... |
39 #include "WebConsoleMessage.h" | 39 #include "WebConsoleMessage.h" |
40 #include "WebContextMenuData.h" | 40 #include "WebContextMenuData.h" |
41 #include "WebDOMMessageEvent.h" | 41 #include "WebDOMMessageEvent.h" |
42 #include "WebDataSource.h" | 42 #include "WebDataSource.h" |
43 #include "WebDeviceOrientationClientMock.h" | 43 #include "WebDeviceOrientationClientMock.h" |
44 #include "platform/WebDragData.h" | 44 #include "platform/WebDragData.h" |
45 #include "WebElement.h" | 45 #include "WebElement.h" |
46 #include "WebFrame.h" | 46 #include "WebFrame.h" |
47 #include "WebGeolocationClientMock.h" | 47 #include "WebGeolocationClientMock.h" |
48 #include "WebHistoryItem.h" | 48 #include "WebHistoryItem.h" |
| 49 #include "WebIntent.h" |
49 #include "WebKit.h" | 50 #include "WebKit.h" |
50 #include "WebNode.h" | 51 #include "WebNode.h" |
51 #include "WebPluginParams.h" | 52 #include "WebPluginParams.h" |
52 #include "WebPopupMenu.h" | 53 #include "WebPopupMenu.h" |
53 #include "WebPopupType.h" | 54 #include "WebPopupType.h" |
54 #include "WebRange.h" | 55 #include "WebRange.h" |
55 #include "platform/WebRect.h" | 56 #include "platform/WebRect.h" |
56 #include "WebScreenInfo.h" | 57 #include "WebScreenInfo.h" |
57 #include "platform/WebSize.h" | 58 #include "platform/WebSize.h" |
58 #include "WebSpeechInputControllerMock.h" | 59 #include "WebSpeechInputControllerMock.h" |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 bool WebViewHost::willCheckAndDispatchMessageEvent(WebFrame* source, WebSecurity
Origin target, WebDOMMessageEvent event) | 1278 bool WebViewHost::willCheckAndDispatchMessageEvent(WebFrame* source, WebSecurity
Origin target, WebDOMMessageEvent event) |
1278 { | 1279 { |
1279 if (m_shell->layoutTestController()->shouldInterceptPostMessage()) { | 1280 if (m_shell->layoutTestController()->shouldInterceptPostMessage()) { |
1280 fputs("intercepted postMessage\n", stdout); | 1281 fputs("intercepted postMessage\n", stdout); |
1281 return true; | 1282 return true; |
1282 } | 1283 } |
1283 | 1284 |
1284 return false; | 1285 return false; |
1285 } | 1286 } |
1286 | 1287 |
| 1288 void WebViewHost::dispatchIntent(WebFrame* source, const WebIntentRequest& reque
st) |
| 1289 { |
| 1290 printf("Received Web Intent: action=%s type=%s\n", |
| 1291 request.intent().action().utf8().data(), |
| 1292 request.intent().type().utf8().data()); |
| 1293 m_currentRequest = request; |
| 1294 } |
| 1295 |
1287 // Public functions ----------------------------------------------------------- | 1296 // Public functions ----------------------------------------------------------- |
1288 | 1297 |
1289 WebViewHost::WebViewHost(TestShell* shell) | 1298 WebViewHost::WebViewHost(TestShell* shell) |
1290 : m_shell(shell) | 1299 : m_shell(shell) |
1291 , m_webWidget(0) | 1300 , m_webWidget(0) |
1292 , m_lastRequestedTextCheckingCompletion(0) | 1301 , m_lastRequestedTextCheckingCompletion(0) |
1293 { | 1302 { |
1294 reset(); | 1303 reset(); |
1295 } | 1304 } |
1296 | 1305 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 } | 1781 } |
1773 | 1782 |
1774 // Simulate a print by going into print mode and then exit straight away. | 1783 // Simulate a print by going into print mode and then exit straight away. |
1775 void WebViewHost::printPage(WebKit::WebFrame* frame) | 1784 void WebViewHost::printPage(WebKit::WebFrame* frame) |
1776 { | 1785 { |
1777 WebSize pageSizeInPixels = webWidget()->size(); | 1786 WebSize pageSizeInPixels = webWidget()->size(); |
1778 | 1787 |
1779 frame->printBegin(pageSizeInPixels); | 1788 frame->printBegin(pageSizeInPixels); |
1780 frame->printEnd(); | 1789 frame->printEnd(); |
1781 } | 1790 } |
OLD | NEW |