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

Side by Side Diff: webkit/glue/webplugin_impl.cc

Issue 62011: WebKit merge 42132:42199 (Chrome side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « WEBKIT_MERGE_REVISION ('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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "webkit/glue/webplugin_impl.h" 6 #include "webkit/glue/webplugin_impl.h"
7 7
8 #include "Cursor.h" 8 #include "Cursor.h"
9 #include "Document.h" 9 #include "Document.h"
10 #include "DocumentLoader.h" 10 #include "DocumentLoader.h"
11 #include "Event.h" 11 #include "Event.h"
12 #include "EventNames.h" 12 #include "EventNames.h"
13 #include "FloatPoint.h" 13 #include "FloatPoint.h"
14 #include "FormData.h" 14 #include "FormData.h"
15 #include "FormState.h"
15 #include "FocusController.h" 16 #include "FocusController.h"
16 #include "Frame.h" 17 #include "Frame.h"
17 #include "FrameLoader.h" 18 #include "FrameLoader.h"
18 #include "FrameLoadRequest.h" 19 #include "FrameLoadRequest.h"
19 #include "FrameTree.h" 20 #include "FrameTree.h"
20 #include "FrameView.h" 21 #include "FrameView.h"
21 #include "GraphicsContext.h" 22 #include "GraphicsContext.h"
23 #include "HTMLFormElement.h"
22 #include "HTMLNames.h" 24 #include "HTMLNames.h"
23 #include "HTMLPlugInElement.h" 25 #include "HTMLPlugInElement.h"
24 #include "IntRect.h" 26 #include "IntRect.h"
25 #include "KURL.h" 27 #include "KURL.h"
26 #include "KeyboardEvent.h" 28 #include "KeyboardEvent.h"
27 #include "MouseEvent.h" 29 #include "MouseEvent.h"
28 #include "Page.h" 30 #include "Page.h"
29 #include "PlatformContextSkia.h" 31 #include "PlatformContextSkia.h"
30 #include "PlatformMouseEvent.h" 32 #include "PlatformMouseEvent.h"
31 #include "PlatformString.h" 33 #include "PlatformString.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // since proceeding may do something unintentional. 509 // since proceeding may do something unintentional.
508 ASSERT_NOT_REACHED(); 510 ASSERT_NOT_REACHED();
509 return ROUTED; 511 return ROUTED;
510 } 512 }
511 } 513 }
512 WebCore::FrameLoadRequest load_request(request); 514 WebCore::FrameLoadRequest load_request(request);
513 load_request.setFrameName(str_target); 515 load_request.setFrameName(str_target);
514 WebCore::FrameLoader *loader = frame()->loader(); 516 WebCore::FrameLoader *loader = frame()->loader();
515 // we actually don't know whether usergesture is true or false, 517 // we actually don't know whether usergesture is true or false,
516 // passing true since all we can do is assume it is okay. 518 // passing true since all we can do is assume it is okay.
517 loader->loadFrameRequestWithFormAndValues( 519 loader->loadFrameRequest(
518 load_request, 520 load_request,
519 false, // lock history 521 false, // lock history
520 false, // lock back forward list 522 false, // lock back forward list
521 0, // event 523 0, // event
522 0, // form element 524 0); // form state
523 HashMap<WebCore::String, WebCore::String>());
524 525
525 // load() can cause the frame to go away. 526 // load() can cause the frame to go away.
526 if (webframe_) { 527 if (webframe_) {
527 WebPluginDelegate* last_plugin = webframe_->plugin_delegate(); 528 WebPluginDelegate* last_plugin = webframe_->plugin_delegate();
528 if (last_plugin) { 529 if (last_plugin) {
529 last_plugin->DidFinishLoadWithReason(NPRES_USER_BREAK); 530 last_plugin->DidFinishLoadWithReason(NPRES_USER_BREAK);
530 webframe_->set_plugin_delegate(NULL); 531 webframe_->set_plugin_delegate(NULL);
531 } 532 }
532 533
533 if (notify) 534 if (notify)
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 client_index = clients_.erase(client_index); 1426 client_index = clients_.erase(client_index);
1426 if (resource_client) 1427 if (resource_client)
1427 resource_client->DidFail(); 1428 resource_client->DidFail();
1428 } 1429 }
1429 1430
1430 // This needs to be called now and not in the destructor since the 1431 // This needs to be called now and not in the destructor since the
1431 // webframe_ might not be valid anymore. 1432 // webframe_ might not be valid anymore.
1432 webframe_->set_plugin_delegate(NULL); 1433 webframe_->set_plugin_delegate(NULL);
1433 webframe_ = NULL; 1434 webframe_ = NULL;
1434 } 1435 }
OLDNEW
« no previous file with comments | « WEBKIT_MERGE_REVISION ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698