| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 // screen argument. | 1009 // screen argument. |
| 1010 const gfx::Point screen; | 1010 const gfx::Point screen; |
| 1011 | 1011 |
| 1012 int operations = 0; | 1012 int operations = 0; |
| 1013 operations |= WebKit::WebDragOperationCopy; | 1013 operations |= WebKit::WebDragOperationCopy; |
| 1014 operations |= WebKit::WebDragOperationLink; | 1014 operations |= WebKit::WebDragOperationLink; |
| 1015 operations |= WebKit::WebDragOperationMove; | 1015 operations |= WebKit::WebDragOperationMove; |
| 1016 | 1016 |
| 1017 view->DragTargetDragEnter( | 1017 view->DragTargetDragEnter( |
| 1018 drop_data, client, screen, | 1018 drop_data, client, screen, |
| 1019 static_cast<WebKit::WebDragOperationsMask>(operations)); | 1019 static_cast<WebKit::WebDragOperationsMask>(operations), 0); |
| 1020 new DragTargetDropAckNotificationObserver(this, reply_message); | 1020 new DragTargetDropAckNotificationObserver(this, reply_message); |
| 1021 view->DragTargetDrop(client, screen); | 1021 view->DragTargetDrop(client, screen, 0); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) { | 1024 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) { |
| 1025 *tab_count = -1; // -1 is the error code | 1025 *tab_count = -1; // -1 is the error code |
| 1026 | 1026 |
| 1027 if (browser_tracker_->ContainsHandle(handle)) { | 1027 if (browser_tracker_->ContainsHandle(handle)) { |
| 1028 Browser* browser = browser_tracker_->GetResource(handle); | 1028 Browser* browser = browser_tracker_->GetResource(handle); |
| 1029 *tab_count = browser->tab_count(); | 1029 *tab_count = browser->tab_count(); |
| 1030 } | 1030 } |
| 1031 } | 1031 } |
| (...skipping 5518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6550 | 6550 |
| 6551 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( | 6551 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( |
| 6552 IPC::Message* reply_message) { | 6552 IPC::Message* reply_message) { |
| 6553 new WaitForProcessLauncherThreadToGoIdleObserver(this, reply_message); | 6553 new WaitForProcessLauncherThreadToGoIdleObserver(this, reply_message); |
| 6554 } | 6554 } |
| 6555 | 6555 |
| 6556 void TestingAutomationProvider::OnRemoveProvider() { | 6556 void TestingAutomationProvider::OnRemoveProvider() { |
| 6557 if (g_browser_process) | 6557 if (g_browser_process) |
| 6558 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6558 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6559 } | 6559 } |
| OLD | NEW |