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

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

Issue 10377119: Plumb event flags (shift/alt/ctrl modifiers) for drag/drop events to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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) 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 // screen argument. 1189 // screen argument.
1190 const gfx::Point screen; 1190 const gfx::Point screen;
1191 1191
1192 int operations = 0; 1192 int operations = 0;
1193 operations |= WebKit::WebDragOperationCopy; 1193 operations |= WebKit::WebDragOperationCopy;
1194 operations |= WebKit::WebDragOperationLink; 1194 operations |= WebKit::WebDragOperationLink;
1195 operations |= WebKit::WebDragOperationMove; 1195 operations |= WebKit::WebDragOperationMove;
1196 1196
1197 view->DragTargetDragEnter( 1197 view->DragTargetDragEnter(
1198 drop_data, client, screen, 1198 drop_data, client, screen,
1199 static_cast<WebKit::WebDragOperationsMask>(operations)); 1199 static_cast<WebKit::WebDragOperationsMask>(operations), 0);
1200 new DragTargetDropAckNotificationObserver(this, reply_message); 1200 new DragTargetDropAckNotificationObserver(this, reply_message);
1201 view->DragTargetDrop(client, screen); 1201 view->DragTargetDrop(client, screen, 0);
1202 } 1202 }
1203 1203
1204 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) { 1204 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) {
1205 *tab_count = -1; // -1 is the error code 1205 *tab_count = -1; // -1 is the error code
1206 1206
1207 if (browser_tracker_->ContainsHandle(handle)) { 1207 if (browser_tracker_->ContainsHandle(handle)) {
1208 Browser* browser = browser_tracker_->GetResource(handle); 1208 Browser* browser = browser_tracker_->GetResource(handle);
1209 *tab_count = browser->tab_count(); 1209 *tab_count = browser->tab_count();
1210 } 1210 }
1211 } 1211 }
(...skipping 5946 matching lines...) Expand 10 before | Expand all | Expand 10 after
7158 *browser_handle = browser_tracker_->Add(browser); 7158 *browser_handle = browser_tracker_->Add(browser);
7159 *success = true; 7159 *success = true;
7160 } 7160 }
7161 } 7161 }
7162 } 7162 }
7163 7163
7164 void TestingAutomationProvider::OnRemoveProvider() { 7164 void TestingAutomationProvider::OnRemoveProvider() {
7165 if (g_browser_process) 7165 if (g_browser_process)
7166 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 7166 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
7167 } 7167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698