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

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

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: 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_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/process/kill.h" 21 #include "base/process/kill.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/renderer_host/render_widget_host_impl.h" 23 #include "content/browser/renderer_host/render_widget_host_impl.h"
24 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" 24 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h"
25 #include "content/browser/site_instance_impl.h" 25 #include "content/browser/site_instance_impl.h"
26 #include "content/common/drag_event_source_info.h"
27 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
28 #include "content/public/browser/render_process_host_observer.h" 27 #include "content/public/browser/render_process_host_observer.h"
29 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
30 #include "content/public/common/window_container_type.h" 29 #include "content/public/common/window_container_type.h"
31 #include "net/base/load_states.h" 30 #include "net/base/load_states.h"
32 #include "third_party/WebKit/public/web/WebAXEnums.h" 31 #include "third_party/WebKit/public/web/WebAXEnums.h"
33 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 32 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
34 #include "third_party/WebKit/public/web/WebPopupType.h" 33 #include "third_party/WebKit/public/web/WebPopupType.h"
35 #include "third_party/skia/include/core/SkColor.h" 34 #include "third_party/skia/include/core/SkColor.h"
36 #include "ui/base/window_open_disposition.h" 35 #include "ui/base/window_open_disposition.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 void OnShowFullscreenWidget(int route_id); 286 void OnShowFullscreenWidget(int route_id);
288 void OnRenderProcessGone(int status, int error_code); 287 void OnRenderProcessGone(int status, int error_code);
289 void OnUpdateState(const PageState& state); 288 void OnUpdateState(const PageState& state);
290 void OnUpdateTargetURL(const GURL& url); 289 void OnUpdateTargetURL(const GURL& url);
291 void OnClose(); 290 void OnClose();
292 void OnRequestMove(const gfx::Rect& pos); 291 void OnRequestMove(const gfx::Rect& pos);
293 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); 292 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level);
294 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); 293 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size);
295 void OnPasteFromSelectionClipboard(); 294 void OnPasteFromSelectionClipboard();
296 void OnRouteCloseEvent(); 295 void OnRouteCloseEvent();
297 void OnStartDragging(const DropData& drop_data,
298 blink::WebDragOperationsMask operations_allowed,
299 const SkBitmap& bitmap,
300 const gfx::Vector2d& bitmap_offset_in_dip,
301 const DragEventSourceInfo& event_info);
302 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); 296 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
303 void OnTakeFocus(bool reverse); 297 void OnTakeFocus(bool reverse);
304 void OnFocusedNodeChanged(bool is_editable_node, 298 void OnFocusedNodeChanged(bool is_editable_node,
305 const gfx::Rect& node_bounds_in_viewport); 299 const gfx::Rect& node_bounds_in_viewport);
306 void OnClosePageACK(); 300 void OnClosePageACK();
307 void OnDidZoomURL(double zoom_level, const GURL& url); 301 void OnDidZoomURL(double zoom_level, const GURL& url);
308 void OnFocusedNodeTouched(bool editable); 302 void OnFocusedNodeTouched(bool editable);
309 void OnFocus(); 303 void OnFocus();
310 304
311 private: 305 private:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 bool render_view_ready_on_process_launch_; 390 bool render_view_ready_on_process_launch_;
397 391
398 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 392 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
399 393
400 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 394 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
401 }; 395 };
402 396
403 } // namespace content 397 } // namespace content
404 398
405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698