OLD | NEW |
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 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 struct Referrer; | 46 struct Referrer; |
47 struct SSLStatus; | 47 struct SSLStatus; |
48 } | 48 } |
49 | 49 |
50 namespace gfx { | 50 namespace gfx { |
51 class Point; | 51 class Point; |
52 class Rect; | 52 class Rect; |
53 class Size; | 53 class Size; |
54 } | 54 } |
55 | 55 |
56 namespace WebKit { | 56 namespace blink { |
57 class WebLayer; | 57 class WebLayer; |
58 struct WebWindowFeatures; | 58 struct WebWindowFeatures; |
59 } | 59 } |
60 | 60 |
61 namespace content { | 61 namespace content { |
62 | 62 |
63 struct OpenURLParams; | 63 struct OpenURLParams; |
64 | 64 |
65 // Objects implement this interface to get notified about changes in the | 65 // Objects implement this interface to get notified about changes in the |
66 // WebContents and to provide necessary functionality. | 66 // WebContents and to provide necessary functionality. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual void HandlePointerActivate() {} | 271 virtual void HandlePointerActivate() {} |
272 | 272 |
273 virtual void HandleGestureBegin() {} | 273 virtual void HandleGestureBegin() {} |
274 virtual void HandleGestureEnd() {} | 274 virtual void HandleGestureEnd() {} |
275 | 275 |
276 // Called when an external drag event enters the web contents window. Return | 276 // Called when an external drag event enters the web contents window. Return |
277 // true to allow dragging and dropping on the web contents window or false to | 277 // true to allow dragging and dropping on the web contents window or false to |
278 // cancel the operation. This method is used by Chromium Embedded Framework. | 278 // cancel the operation. This method is used by Chromium Embedded Framework. |
279 virtual bool CanDragEnter(WebContents* source, | 279 virtual bool CanDragEnter(WebContents* source, |
280 const DropData& data, | 280 const DropData& data, |
281 WebKit::WebDragOperationsMask operations_allowed); | 281 blink::WebDragOperationsMask operations_allowed); |
282 | 282 |
283 // Render view drag n drop ended. | 283 // Render view drag n drop ended. |
284 virtual void DragEnded() {} | 284 virtual void DragEnded() {} |
285 | 285 |
286 // Shows the repost form confirmation dialog box. | 286 // Shows the repost form confirmation dialog box. |
287 virtual void ShowRepostFormWarningDialog(WebContents* source) {} | 287 virtual void ShowRepostFormWarningDialog(WebContents* source) {} |
288 | 288 |
289 // Allows delegate to override navigation to the history entries. | 289 // Allows delegate to override navigation to the history entries. |
290 // Returns true to allow WebContents to continue with the default processing. | 290 // Returns true to allow WebContents to continue with the default processing. |
291 virtual bool OnGoToEntryOffset(int offset); | 291 virtual bool OnGoToEntryOffset(int offset); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 // Called when |this| is no longer the WebContentsDelegate for |source|. | 460 // Called when |this| is no longer the WebContentsDelegate for |source|. |
461 void Detach(WebContents* source); | 461 void Detach(WebContents* source); |
462 | 462 |
463 // The WebContents that this is currently a delegate for. | 463 // The WebContents that this is currently a delegate for. |
464 std::set<WebContents*> attached_contents_; | 464 std::set<WebContents*> attached_contents_; |
465 }; | 465 }; |
466 | 466 |
467 } // namespace content | 467 } // namespace content |
468 | 468 |
469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |