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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 25 matching lines...) Expand all
36 #include "content/common/drag_event_source_info.h" 36 #include "content/common/drag_event_source_info.h"
37 #include "content/common/input/input_event_ack_state.h" 37 #include "content/common/input/input_event_ack_state.h"
38 #include "content/common/input/synthetic_gesture_packet.h" 38 #include "content/common/input/synthetic_gesture_packet.h"
39 #include "content/common/view_message_enums.h" 39 #include "content/common/view_message_enums.h"
40 #include "content/public/browser/readback_types.h" 40 #include "content/public/browser/readback_types.h"
41 #include "content/public/browser/render_widget_host.h" 41 #include "content/public/browser/render_widget_host.h"
42 #include "content/public/common/page_zoom.h" 42 #include "content/public/common/page_zoom.h"
43 #include "content/public/common/url_constants.h" 43 #include "content/public/common/url_constants.h"
44 #include "ipc/ipc_listener.h" 44 #include "ipc/ipc_listener.h"
45 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 45 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
46 #include "third_party/WebKit/public/platform/WebDragOperation.h"
46 #include "ui/base/ime/text_input_mode.h" 47 #include "ui/base/ime/text_input_mode.h"
47 #include "ui/base/ime/text_input_type.h" 48 #include "ui/base/ime/text_input_type.h"
48 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 49 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
49 #include "ui/events/latency_info.h" 50 #include "ui/events/latency_info.h"
50 #include "ui/gfx/native_widget_types.h" 51 #include "ui/gfx/native_widget_types.h"
51 52
52 struct FrameHostMsg_HittestData_Params; 53 struct FrameHostMsg_HittestData_Params;
53 struct ViewHostMsg_SelectionBounds_Params; 54 struct ViewHostMsg_SelectionBounds_Params;
54 struct ViewHostMsg_UpdateRect_Params; 55 struct ViewHostMsg_UpdateRect_Params;
55 56
(...skipping 20 matching lines...) Expand all
76 namespace content { 77 namespace content {
77 78
78 class BrowserAccessibilityManager; 79 class BrowserAccessibilityManager;
79 class InputRouter; 80 class InputRouter;
80 class MockRenderWidgetHost; 81 class MockRenderWidgetHost;
81 class RenderWidgetHostOwnerDelegate; 82 class RenderWidgetHostOwnerDelegate;
82 class SyntheticGestureController; 83 class SyntheticGestureController;
83 class TimeoutMonitor; 84 class TimeoutMonitor;
84 class TouchEmulator; 85 class TouchEmulator;
85 class WebCursor; 86 class WebCursor;
87 struct DropData;
86 struct EditCommand; 88 struct EditCommand;
87 struct ResizeParams; 89 struct ResizeParams;
88 struct ScreenInfo; 90 struct ScreenInfo;
89 struct TextInputState; 91 struct TextInputState;
90 92
91 // This implements the RenderWidgetHost interface that is exposed to 93 // This implements the RenderWidgetHost interface that is exposed to
92 // embedders of content, and adds things only visible to content. 94 // embedders of content, and adds things only visible to content.
93 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, 95 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
94 public InputRouterClient, 96 public InputRouterClient,
95 public InputAckHandler, 97 public InputAckHandler,
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 571 }
570 572
571 bool renderer_initialized() const { return renderer_initialized_; } 573 bool renderer_initialized() const { return renderer_initialized_; }
572 574
573 bool needs_begin_frames() const { return needs_begin_frames_; } 575 bool needs_begin_frames() const { return needs_begin_frames_; }
574 576
575 base::WeakPtr<RenderWidgetHostImpl> GetWeakPtr() { 577 base::WeakPtr<RenderWidgetHostImpl> GetWeakPtr() {
576 return weak_factory_.GetWeakPtr(); 578 return weak_factory_.GetWeakPtr();
577 } 579 }
578 580
581 using DragStartCallback =
582 base::Callback<bool(const DropData& drop_data,
583 blink::WebDragOperationsMask drag_operations_mask)>;
584 static void RegisterDragStartCallbackForTesting(DragStartCallback callback);
585
579 protected: 586 protected:
580 // --------------------------------------------------------------------------- 587 // ---------------------------------------------------------------------------
581 // The following method is overridden by RenderViewHost to send upwards to 588 // The following method is overridden by RenderViewHost to send upwards to
582 // its delegate. 589 // its delegate.
583 590
584 // Callback for notification that we failed to receive any rendered graphics 591 // Callback for notification that we failed to receive any rendered graphics
585 // from a newly loaded page. Used for testing. 592 // from a newly loaded page. Used for testing.
586 virtual void NotifyNewContentRenderingTimeoutForTesting() {} 593 virtual void NotifyNewContentRenderingTimeoutForTesting() {}
587 594
588 // --------------------------------------------------------------------------- 595 // ---------------------------------------------------------------------------
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 #endif 914 #endif
908 915
909 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 916 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
910 917
911 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 918 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
912 }; 919 };
913 920
914 } // namespace content 921 } // namespace content
915 922
916 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 923 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/data/drag_and_drop/image_source.html ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698