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 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 class BrowserContext; | 32 class BrowserContext; |
33 class ColorChooser; | 33 class ColorChooser; |
34 class DownloadItem; | 34 class DownloadItem; |
35 class JavaScriptDialogManager; | 35 class JavaScriptDialogManager; |
36 class RenderViewHost; | 36 class RenderViewHost; |
37 class WebContents; | 37 class WebContents; |
38 class WebContentsImpl; | 38 class WebContentsImpl; |
39 class WebIntentsDispatcher; | |
40 struct ContextMenuParams; | 39 struct ContextMenuParams; |
41 struct FileChooserParams; | 40 struct FileChooserParams; |
42 struct NativeWebKeyboardEvent; | 41 struct NativeWebKeyboardEvent; |
43 struct SSLStatus; | 42 struct SSLStatus; |
44 } | 43 } |
45 | 44 |
46 namespace gfx { | 45 namespace gfx { |
47 class Point; | 46 class Point; |
48 class Rect; | 47 class Rect; |
49 class Size; | 48 class Size; |
50 } | 49 } |
51 | 50 |
52 namespace webkit_glue { | |
53 struct WebIntentData; | |
54 struct WebIntentServiceData; | |
55 } | |
56 | |
57 namespace WebKit { | 51 namespace WebKit { |
58 class WebLayer; | 52 class WebLayer; |
59 } | 53 } |
60 | 54 |
61 namespace content { | 55 namespace content { |
62 | 56 |
63 struct OpenURLParams; | 57 struct OpenURLParams; |
64 | 58 |
65 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; | 59 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; |
66 | 60 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 347 |
354 // Register a new handler for URL requests with the given scheme. | 348 // Register a new handler for URL requests with the given scheme. |
355 // |user_gesture| is true if the registration is made in the context of a user | 349 // |user_gesture| is true if the registration is made in the context of a user |
356 // gesture. | 350 // gesture. |
357 virtual void RegisterProtocolHandler(WebContents* web_contents, | 351 virtual void RegisterProtocolHandler(WebContents* web_contents, |
358 const std::string& protocol, | 352 const std::string& protocol, |
359 const GURL& url, | 353 const GURL& url, |
360 const string16& title, | 354 const string16& title, |
361 bool user_gesture) {} | 355 bool user_gesture) {} |
362 | 356 |
363 // Register a new Web Intents service. | |
364 // |user_gesture| is true if the registration is made in the context of a user | |
365 // gesture. |web_contents| is the context in which the registration was | |
366 // performed, and |data| is the service record being registered. | |
367 virtual void RegisterIntentHandler( | |
368 WebContents* web_contents, | |
369 const webkit_glue::WebIntentServiceData& data, | |
370 bool user_gesture) {} | |
371 | |
372 // Web Intents notification handler. See WebIntentsDispatcher for | |
373 // documentation of callee responsibility for the dispatcher. | |
374 virtual void WebIntentDispatch(WebContents* web_contents, | |
375 WebIntentsDispatcher* intents_dispatcher); | |
376 | |
377 // Result of string search in the page. This includes the number of matches | 357 // Result of string search in the page. This includes the number of matches |
378 // found and the selection rect (in screen coordinates) for the string found. | 358 // found and the selection rect (in screen coordinates) for the string found. |
379 // If |final_update| is false, it indicates that more results follow. | 359 // If |final_update| is false, it indicates that more results follow. |
380 virtual void FindReply(WebContents* web_contents, | 360 virtual void FindReply(WebContents* web_contents, |
381 int request_id, | 361 int request_id, |
382 int number_of_matches, | 362 int number_of_matches, |
383 const gfx::Rect& selection_rect, | 363 const gfx::Rect& selection_rect, |
384 int active_match_ordinal, | 364 int active_match_ordinal, |
385 bool final_update) {} | 365 bool final_update) {} |
386 | 366 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 // Called when |this| is no longer the WebContentsDelegate for |source|. | 428 // Called when |this| is no longer the WebContentsDelegate for |source|. |
449 void Detach(WebContents* source); | 429 void Detach(WebContents* source); |
450 | 430 |
451 // The WebContents that this is currently a delegate for. | 431 // The WebContents that this is currently a delegate for. |
452 std::set<WebContents*> attached_contents_; | 432 std::set<WebContents*> attached_contents_; |
453 }; | 433 }; |
454 | 434 |
455 } // namespace content | 435 } // namespace content |
456 | 436 |
457 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |