| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 343 |
| 350 // Register a new handler for URL requests with the given scheme. | 344 // Register a new handler for URL requests with the given scheme. |
| 351 // |user_gesture| is true if the registration is made in the context of a user | 345 // |user_gesture| is true if the registration is made in the context of a user |
| 352 // gesture. | 346 // gesture. |
| 353 virtual void RegisterProtocolHandler(WebContents* web_contents, | 347 virtual void RegisterProtocolHandler(WebContents* web_contents, |
| 354 const std::string& protocol, | 348 const std::string& protocol, |
| 355 const GURL& url, | 349 const GURL& url, |
| 356 const string16& title, | 350 const string16& title, |
| 357 bool user_gesture) {} | 351 bool user_gesture) {} |
| 358 | 352 |
| 359 // Register a new Web Intents service. | |
| 360 // |user_gesture| is true if the registration is made in the context of a user | |
| 361 // gesture. |web_contents| is the context in which the registration was | |
| 362 // performed, and |data| is the service record being registered. | |
| 363 virtual void RegisterIntentHandler( | |
| 364 WebContents* web_contents, | |
| 365 const webkit_glue::WebIntentServiceData& data, | |
| 366 bool user_gesture) {} | |
| 367 | |
| 368 // Web Intents notification handler. See WebIntentsDispatcher for | |
| 369 // documentation of callee responsibility for the dispatcher. | |
| 370 virtual void WebIntentDispatch(WebContents* web_contents, | |
| 371 WebIntentsDispatcher* intents_dispatcher); | |
| 372 | |
| 373 // Result of string search in the page. This includes the number of matches | 353 // Result of string search in the page. This includes the number of matches |
| 374 // found and the selection rect (in screen coordinates) for the string found. | 354 // found and the selection rect (in screen coordinates) for the string found. |
| 375 // If |final_update| is false, it indicates that more results follow. | 355 // If |final_update| is false, it indicates that more results follow. |
| 376 virtual void FindReply(WebContents* web_contents, | 356 virtual void FindReply(WebContents* web_contents, |
| 377 int request_id, | 357 int request_id, |
| 378 int number_of_matches, | 358 int number_of_matches, |
| 379 const gfx::Rect& selection_rect, | 359 const gfx::Rect& selection_rect, |
| 380 int active_match_ordinal, | 360 int active_match_ordinal, |
| 381 bool final_update) {} | 361 bool final_update) {} |
| 382 | 362 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // Called when |this| is no longer the WebContentsDelegate for |source|. | 424 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 445 void Detach(WebContents* source); | 425 void Detach(WebContents* source); |
| 446 | 426 |
| 447 // The WebContents that this is currently a delegate for. | 427 // The WebContents that this is currently a delegate for. |
| 448 std::set<WebContents*> attached_contents_; | 428 std::set<WebContents*> attached_contents_; |
| 449 }; | 429 }; |
| 450 | 430 |
| 451 } // namespace content | 431 } // namespace content |
| 452 | 432 |
| 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 433 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |