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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void RemoveKeyPressEventCallback( 167 void RemoveKeyPressEventCallback(
168 const KeyPressEventCallback& callback) override; 168 const KeyPressEventCallback& callback) override;
169 void AddMouseEventCallback(const MouseEventCallback& callback) override; 169 void AddMouseEventCallback(const MouseEventCallback& callback) override;
170 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; 170 void RemoveMouseEventCallback(const MouseEventCallback& callback) override;
171 void AddInputEventObserver( 171 void AddInputEventObserver(
172 RenderWidgetHost::InputEventObserver* observer) override; 172 RenderWidgetHost::InputEventObserver* observer) override;
173 void RemoveInputEventObserver( 173 void RemoveInputEventObserver(
174 RenderWidgetHost::InputEventObserver* observer) override; 174 RenderWidgetHost::InputEventObserver* observer) override;
175 void GetScreenInfo(content::ScreenInfo* result) override; 175 void GetScreenInfo(content::ScreenInfo* result) override;
176 void HandleCompositorProto(const std::vector<uint8_t>& proto) override; 176 void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
177 // |drop_data| must have been filtered. The embedder should call
178 // FilterDropData before passing the drop data to RWHI.
179 void DragTargetDragEnter(const DropData& drop_data,
180 const gfx::Point& client_pt,
181 const gfx::Point& screen_pt,
182 blink::WebDragOperationsMask operations_allowed,
183 int key_modifiers) override;
184 void DragTargetDragOver(const gfx::Point& client_pt,
185 const gfx::Point& screen_pt,
186 blink::WebDragOperationsMask operations_allowed,
187 int key_modifiers) override;
188 void DragTargetDragLeave() override;
189 // |drop_data| must have been filtered. The embedder should call
190 // FilterDropData before passing the drop data to RWHI.
191 void DragTargetDrop(const DropData& drop_data,
192 const gfx::Point& client_pt,
193 const gfx::Point& screen_pt,
194 int key_modifiers) override;
177 195
178 // Notification that the screen info has changed. 196 // Notification that the screen info has changed.
179 void NotifyScreenInfoChanged(); 197 void NotifyScreenInfoChanged();
180 198
181 // Forces redraw in the renderer and when the update reaches the browser 199 // Forces redraw in the renderer and when the update reaches the browser
182 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 200 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
183 using GetSnapshotFromBrowserCallback = 201 using GetSnapshotFromBrowserCallback =
184 base::Callback<void(const unsigned char*, size_t)>; 202 base::Callback<void(const unsigned char*, size_t)>;
185 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); 203 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback);
186 204
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 #endif 880 #endif
863 881
864 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 882 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
865 883
866 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 884 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
867 }; 885 };
868 886
869 } // namespace content 887 } // namespace content
870 888
871 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 889 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698