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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 if (another) | 440 if (another) |
441 another->show(policy); | 441 another->show(policy); |
442 } | 442 } |
443 | 443 |
444 WebNavigationPolicy WebViewHost::decidePolicyForNavigation( | 444 WebNavigationPolicy WebViewHost::decidePolicyForNavigation( |
445 WebFrame*, const WebURLRequest&, WebNavigationType, WebNavigationPolicy defa
ultPolicy, bool) | 445 WebFrame*, const WebURLRequest&, WebNavigationType, WebNavigationPolicy defa
ultPolicy, bool) |
446 { | 446 { |
447 return defaultPolicy; | 447 return defaultPolicy; |
448 } | 448 } |
449 | 449 |
450 bool WebViewHost::canHandleRequest(WebFrame*, const WebURLRequest& request) | |
451 { | |
452 return true; | |
453 } | |
454 | |
455 WebURLError WebViewHost::cancelledError(WebFrame*, const WebURLRequest& request) | 450 WebURLError WebViewHost::cancelledError(WebFrame*, const WebURLRequest& request) |
456 { | 451 { |
457 return webkit_support::CreateCancelledError(request); | 452 return webkit_support::CreateCancelledError(request); |
458 } | 453 } |
459 | 454 |
460 void WebViewHost::unableToImplementPolicyWithError(WebFrame* frame, const WebURL
Error& error) | 455 void WebViewHost::unableToImplementPolicyWithError(WebFrame* frame, const WebURL
Error& error) |
461 { | 456 { |
462 } | 457 } |
463 | 458 |
464 void WebViewHost::didCreateDataSource(WebFrame*, WebDataSource* ds) | 459 void WebViewHost::didCreateDataSource(WebFrame*, WebDataSource* ds) |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 webView()->willExitFullScreen(); | 999 webView()->willExitFullScreen(); |
1005 webView()->didExitFullScreen(); | 1000 webView()->didExitFullScreen(); |
1006 } | 1001 } |
1007 | 1002 |
1008 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient() | 1003 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient() |
1009 { | 1004 { |
1010 if (!m_testMediaStreamClient.get()) | 1005 if (!m_testMediaStreamClient.get()) |
1011 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl
ient()); | 1006 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl
ient()); |
1012 return m_testMediaStreamClient.get(); | 1007 return m_testMediaStreamClient.get(); |
1013 } | 1008 } |
OLD | NEW |