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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Splitting up patch Created 7 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
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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process.h" 16 #include "base/process.h"
17 #include "content/browser/renderer_host/render_view_host_delegate.h" 17 #include "content/browser/renderer_host/render_view_host_delegate.h"
18 #include "content/browser/renderer_host/render_widget_host_delegate.h" 18 #include "content/browser/renderer_host/render_widget_host_delegate.h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 19 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/render_view_host_manager.h" 20 #include "content/browser/web_contents/render_view_host_manager.h"
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.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/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/renderer_preferences.h" 25 #include "content/public/common/renderer_preferences.h"
26 #include "content/public/common/three_d_api_types.h" 26 #include "content/public/common/three_d_api_types.h"
27 #include "net/base/load_states.h" 27 #include "net/base/load_states.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
28 #include "ui/gfx/rect_f.h" 29 #include "ui/gfx/rect_f.h"
29 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
30 #include "webkit/glue/resource_type.h" 31 #include "webkit/glue/resource_type.h"
31 32
32 struct BrowserPluginHostMsg_ResizeGuest_Params; 33 struct BrowserPluginHostMsg_ResizeGuest_Params;
33 struct ViewHostMsg_DateTimeDialogValue_Params; 34 struct ViewHostMsg_DateTimeDialogValue_Params;
34 struct ViewMsg_PostMessage_Params; 35 struct ViewMsg_PostMessage_Params;
35 36
36 namespace content { 37 namespace content {
37 class BrowserPluginEmbedder; 38 class BrowserPluginEmbedder;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Gets the current fullscreen render widget's routing ID. Returns 166 // Gets the current fullscreen render widget's routing ID. Returns
166 // MSG_ROUTING_NONE when there is no fullscreen render widget. 167 // MSG_ROUTING_NONE when there is no fullscreen render widget.
167 int GetFullscreenWidgetRoutingID() const; 168 int GetFullscreenWidgetRoutingID() const;
168 169
169 // Invoked when visible SSL state (as defined by SSLStatus) changes. 170 // Invoked when visible SSL state (as defined by SSLStatus) changes.
170 void DidChangeVisibleSSLState(); 171 void DidChangeVisibleSSLState();
171 172
172 // Invoked before a form repost warning is shown. 173 // Invoked before a form repost warning is shown.
173 void NotifyBeforeFormRepostWarningShow(); 174 void NotifyBeforeFormRepostWarningShow();
174 175
176
177 // Informs the render view host and the BrowserPluginEmbedder, if present, of
178 // a Drag Source End.
179 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
180 int screen_y, WebKit::WebDragOperation operation);
181
182 // Informs the render view host and the BrowserPluginEmbedder, if present, of
183 // a Drag Source Move.
184 void DragSourceMovedTo(int client_x, int client_y,
185 int screen_x, int screen_y);
186
175 // WebContents ------------------------------------------------------ 187 // WebContents ------------------------------------------------------
176 virtual WebContentsDelegate* GetDelegate() OVERRIDE; 188 virtual WebContentsDelegate* GetDelegate() OVERRIDE;
177 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; 189 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;
178 virtual NavigationControllerImpl& GetController() OVERRIDE; 190 virtual NavigationControllerImpl& GetController() OVERRIDE;
179 virtual const NavigationControllerImpl& GetController() const OVERRIDE; 191 virtual const NavigationControllerImpl& GetController() const OVERRIDE;
180 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 192 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
181 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 193 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
182 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; 194 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
183 virtual void GetRenderViewHostAtPosition( 195 virtual void GetRenderViewHostAtPosition(
184 int x, 196 int x,
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 // Maps the ids of pending image downloads to their callbacks 895 // Maps the ids of pending image downloads to their callbacks
884 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 896 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
885 ImageDownloadMap image_download_map_; 897 ImageDownloadMap image_download_map_;
886 898
887 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 899 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
888 }; 900 };
889 901
890 } // namespace content 902 } // namespace content
891 903
892 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 904 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest_helper.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698