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

Side by Side Diff: chrome/browser/automation/automation_provider_win.cc

Issue 3014001: ChromeFrame tabs would hang at times while closing. This would randomly occur... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/keyboard_codes.h" 8 #include "base/keyboard_codes.h"
9 #include "chrome/browser/automation/automation_extension_function.h" 9 #include "chrome/browser/automation/automation_extension_function.h"
10 #include "chrome/browser/automation/extension_automation_constants.h" 10 #include "chrome/browser/automation/extension_automation_constants.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 int handle, int navigation_index, 583 int handle, int navigation_index,
584 AutomationMsg_NavigationResponseValues* status) { 584 AutomationMsg_NavigationResponseValues* status) {
585 *status = AUTOMATION_MSG_NAVIGATION_ERROR; 585 *status = AUTOMATION_MSG_NAVIGATION_ERROR;
586 586
587 if (tab_tracker_->ContainsHandle(handle)) { 587 if (tab_tracker_->ContainsHandle(handle)) {
588 NavigationController* tab = tab_tracker_->GetResource(handle); 588 NavigationController* tab = tab_tracker_->GetResource(handle);
589 tab->GoToIndex(navigation_index); 589 tab->GoToIndex(navigation_index);
590 *status = AUTOMATION_MSG_NAVIGATION_SUCCESS; 590 *status = AUTOMATION_MSG_NAVIGATION_SUCCESS;
591 } 591 }
592 } 592 }
593
594 void AutomationProvider::OnRunUnloadHandlers(
595 int handle, gfx::NativeWindow notification_window,
596 int notification_message) {
597 ExternalTabContainer* external_tab = GetExternalTabForHandle(handle);
598 if (external_tab) {
599 external_tab->RunUnloadHandlers(notification_window, notification_message);
600 }
601 }
602
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/chrome_frame_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698