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

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: patch 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 // screen argument. 1173 // screen argument.
1174 const gfx::Point screen; 1174 const gfx::Point screen;
1175 1175
1176 int operations = 0; 1176 int operations = 0;
1177 operations |= WebKit::WebDragOperationCopy; 1177 operations |= WebKit::WebDragOperationCopy;
1178 operations |= WebKit::WebDragOperationLink; 1178 operations |= WebKit::WebDragOperationLink;
1179 operations |= WebKit::WebDragOperationMove; 1179 operations |= WebKit::WebDragOperationMove;
1180 1180
1181 view->DragTargetDragEnter( 1181 view->DragTargetDragEnter(
1182 drop_data, client, screen, 1182 drop_data, client, screen,
1183 static_cast<WebKit::WebDragOperationsMask>(operations)); 1183 static_cast<WebKit::WebDragOperationsMask>(operations), 0);
1184 new DragTargetDropAckNotificationObserver(this, reply_message); 1184 new DragTargetDropAckNotificationObserver(this, reply_message);
1185 view->DragTargetDrop(client, screen); 1185 view->DragTargetDrop(client, screen, 0);
1186 } 1186 }
1187 1187
1188 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) { 1188 void TestingAutomationProvider::GetTabCount(int handle, int* tab_count) {
1189 *tab_count = -1; // -1 is the error code 1189 *tab_count = -1; // -1 is the error code
1190 1190
1191 if (browser_tracker_->ContainsHandle(handle)) { 1191 if (browser_tracker_->ContainsHandle(handle)) {
1192 Browser* browser = browser_tracker_->GetResource(handle); 1192 Browser* browser = browser_tracker_->GetResource(handle);
1193 *tab_count = browser->tab_count(); 1193 *tab_count = browser->tab_count();
1194 } 1194 }
1195 } 1195 }
(...skipping 5930 matching lines...) Expand 10 before | Expand all | Expand 10 after
7126 *browser_handle = browser_tracker_->Add(browser); 7126 *browser_handle = browser_tracker_->Add(browser);
7127 *success = true; 7127 *success = true;
7128 } 7128 }
7129 } 7129 }
7130 } 7130 }
7131 7131
7132 void TestingAutomationProvider::OnRemoveProvider() { 7132 void TestingAutomationProvider::OnRemoveProvider() {
7133 if (g_browser_process) 7133 if (g_browser_process)
7134 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 7134 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
7135 } 7135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698