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

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 2622733002: Mac Support for drag-and-drop tests that start dragging via mouse simulation.
Patch Set: . Created 3 years, 10 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
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 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/process/process.h" 17 #include "base/process/process.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "cc/output/compositor_frame.h" 20 #include "cc/output/compositor_frame.h"
21 #include "content/public/browser/browser_message_filter.h" 21 #include "content/public/browser/browser_message_filter.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_process_host_observer.h" 24 #include "content/public/browser/render_process_host_observer.h"
25 #include "content/public/browser/web_contents_delegate.h" 25 #include "content/public/browser/web_contents_delegate.h"
26 #include "content/public/browser/web_contents_observer.h" 26 #include "content/public/browser/web_contents_observer.h"
27 #include "content/public/common/page_type.h" 27 #include "content/public/common/page_type.h"
28 #include "ipc/message_filter.h" 28 #include "ipc/message_filter.h"
29 #include "storage/common/fileapi/file_system_types.h" 29 #include "storage/common/fileapi/file_system_types.h"
30 #include "third_party/WebKit/public/platform/WebDragOperation.h"
30 #include "third_party/WebKit/public/platform/WebInputEvent.h" 31 #include "third_party/WebKit/public/platform/WebInputEvent.h"
31 #include "third_party/WebKit/public/platform/WebMouseEvent.h" 32 #include "third_party/WebKit/public/platform/WebMouseEvent.h"
32 #include "ui/accessibility/ax_node_data.h" 33 #include "ui/accessibility/ax_node_data.h"
33 #include "ui/accessibility/ax_tree_update.h" 34 #include "ui/accessibility/ax_tree_update.h"
34 #include "ui/events/keycodes/dom/dom_code.h" 35 #include "ui/events/keycodes/dom/dom_code.h"
35 #include "ui/events/keycodes/dom/dom_key.h" 36 #include "ui/events/keycodes/dom/dom_key.h"
36 #include "ui/events/keycodes/keyboard_codes.h" 37 #include "ui/events/keycodes/keyboard_codes.h"
37 #include "url/gurl.h" 38 #include "url/gurl.h"
38 39
39 #if defined(OS_WIN) 40 #if defined(OS_WIN)
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 GURL file_path, 754 GURL file_path,
754 std::string blob_uuid, 755 std::string blob_uuid,
755 int64_t position); 756 int64_t position);
756 757
757 private: 758 private:
758 PwnMessageHelper(); // Not instantiable. 759 PwnMessageHelper(); // Not instantiable.
759 760
760 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); 761 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper);
761 }; 762 };
762 763
764 // DragStartCallback should return |true| if the callback handled the drag start
765 // request and wants to suppress passing the drag start request to the OS layer.
766 // Otherwise (to continue handling the drag start request as usual), return
767 // false.
768 using DragStartCallback =
769 base::Callback<bool(const DropData& drop_data,
770 blink::WebDragOperationsMask drag_operations_mask)>;
771 void RegisterDragStartCallback(DragStartCallback callback);
772
763 } // namespace content 773 } // namespace content
764 774
765 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 775 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698