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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 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 | Annotate | Revision Log
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_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/navigation_type.h" 15 #include "content/public/browser/navigation_type.h"
16 #include "content/public/common/media_stream_request.h" 16 #include "content/public/common/media_stream_request.h"
17 #include "content/public/common/page_transition_types.h" 17 #include "content/public/common/page_transition_types.h"
18 #include "content/public/common/window_container_type.h" 18 #include "content/public/common/window_container_type.h"
19 #include "third_party/WebKit/public/web/WebDragOperation.h" 19 #include "third_party/WebKit/public/web/WebDragOperation.h"
20 #include "third_party/skia/include/core/SkColor.h" 20 #include "third_party/skia/include/core/SkColor.h"
21 #include "ui/base/window_open_disposition.h" 21 #include "ui/base/window_open_disposition.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 #include "ui/gfx/rect_f.h" 23 #include "ui/gfx/rect_f.h"
24 #include "ui/gfx/vector2d.h" 24 #include "ui/gfx/vector2d.h"
25 25
26 class GURL; 26 class GURL;
27 struct WebDropData;
28 27
29 namespace base { 28 namespace base {
30 class FilePath; 29 class FilePath;
31 class ListValue; 30 class ListValue;
32 } 31 }
33 32
34 namespace content { 33 namespace content {
35 class BrowserContext; 34 class BrowserContext;
36 class ColorChooser; 35 class ColorChooser;
37 class DownloadItem; 36 class DownloadItem;
38 class JavaScriptDialogManager; 37 class JavaScriptDialogManager;
39 class PageState; 38 class PageState;
40 class RenderViewHost; 39 class RenderViewHost;
41 class WebContents; 40 class WebContents;
42 class WebContentsImpl; 41 class WebContentsImpl;
43 struct ContextMenuParams; 42 struct ContextMenuParams;
43 struct DropData;
44 struct FileChooserParams; 44 struct FileChooserParams;
45 struct NativeWebKeyboardEvent; 45 struct NativeWebKeyboardEvent;
46 struct SSLStatus; 46 struct SSLStatus;
47 } 47 }
48 48
49 namespace gfx { 49 namespace gfx {
50 class Point; 50 class Point;
51 class Rect; 51 class Rect;
52 class Size; 52 class Size;
53 } 53 }
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // pressed, or a touch-gesture begins). 265 // pressed, or a touch-gesture begins).
266 virtual void HandlePointerActivate() {} 266 virtual void HandlePointerActivate() {}
267 267
268 virtual void HandleGestureBegin() {} 268 virtual void HandleGestureBegin() {}
269 virtual void HandleGestureEnd() {} 269 virtual void HandleGestureEnd() {}
270 270
271 // Called when an external drag event enters the web contents window. Return 271 // Called when an external drag event enters the web contents window. Return
272 // true to allow dragging and dropping on the web contents window or false to 272 // true to allow dragging and dropping on the web contents window or false to
273 // cancel the operation. This method is used by Chromium Embedded Framework. 273 // cancel the operation. This method is used by Chromium Embedded Framework.
274 virtual bool CanDragEnter(WebContents* source, 274 virtual bool CanDragEnter(WebContents* source,
275 const WebDropData& data, 275 const DropData& data,
276 WebKit::WebDragOperationsMask operations_allowed); 276 WebKit::WebDragOperationsMask operations_allowed);
277 277
278 // Render view drag n drop ended. 278 // Render view drag n drop ended.
279 virtual void DragEnded() {} 279 virtual void DragEnded() {}
280 280
281 // Shows the repost form confirmation dialog box. 281 // Shows the repost form confirmation dialog box.
282 virtual void ShowRepostFormWarningDialog(WebContents* source) {} 282 virtual void ShowRepostFormWarningDialog(WebContents* source) {}
283 283
284 // Allows delegate to override navigation to the history entries. 284 // Allows delegate to override navigation to the history entries.
285 // Returns true to allow WebContents to continue with the default processing. 285 // Returns true to allow WebContents to continue with the default processing.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // Called when |this| is no longer the WebContentsDelegate for |source|. 440 // Called when |this| is no longer the WebContentsDelegate for |source|.
441 void Detach(WebContents* source); 441 void Detach(WebContents* source);
442 442
443 // The WebContents that this is currently a delegate for. 443 // The WebContents that this is currently a delegate for.
444 std::set<WebContents*> attached_contents_; 444 std::set<WebContents*> attached_contents_;
445 }; 445 };
446 446
447 } // namespace content 447 } // namespace content
448 448
449 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 449 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698