| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct NativeWebKeyboardEvent; | 24 struct NativeWebKeyboardEvent; |
| 25 struct OpenURLParams; | 25 struct OpenURLParams; |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 class ListValue; | 28 class ListValue; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 class BrowserContext; | 32 class BrowserContext; |
| 33 class DownloadItem; | 33 class DownloadItem; |
| 34 class IntentsHost; | |
| 35 class JavaScriptDialogCreator; | 34 class JavaScriptDialogCreator; |
| 35 class WebIntentsDispatcher; |
| 36 struct FileChooserParams; | 36 struct FileChooserParams; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace gfx { | 39 namespace gfx { |
| 40 class Point; | 40 class Point; |
| 41 class Rect; | 41 class Rect; |
| 42 class Size; | 42 class Size; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace history { | 45 namespace history { |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 const string16& title); | 322 const string16& title); |
| 323 | 323 |
| 324 // Register a new handler for Intents with the given action and type filter. | 324 // Register a new handler for Intents with the given action and type filter. |
| 325 virtual void RegisterIntentHandler(TabContents* tab, | 325 virtual void RegisterIntentHandler(TabContents* tab, |
| 326 const string16& action, | 326 const string16& action, |
| 327 const string16& type, | 327 const string16& type, |
| 328 const string16& href, | 328 const string16& href, |
| 329 const string16& title, | 329 const string16& title, |
| 330 const string16& disposition); | 330 const string16& disposition); |
| 331 | 331 |
| 332 // Web Intents notification handler. Takes ownership of the |intents_host|. | 332 // Web Intents notification handler. Takes ownership of the |
| 333 virtual void WebIntentDispatch(TabContents* tab, | 333 // |intents_dispatcher|. |
| 334 content::IntentsHost* intents_host); | 334 virtual void WebIntentDispatch( |
| 335 TabContents* tab, |
| 336 content::WebIntentsDispatcher* intents_dispatcher); |
| 335 | 337 |
| 336 // Result of string search in the page. This includes the number of matches | 338 // Result of string search in the page. This includes the number of matches |
| 337 // found and the selection rect (in screen coordinates) for the string found. | 339 // found and the selection rect (in screen coordinates) for the string found. |
| 338 // If |final_update| is false, it indicates that more results follow. | 340 // If |final_update| is false, it indicates that more results follow. |
| 339 virtual void FindReply(TabContents* tab, | 341 virtual void FindReply(TabContents* tab, |
| 340 int request_id, | 342 int request_id, |
| 341 int number_of_matches, | 343 int number_of_matches, |
| 342 const gfx::Rect& selection_rect, | 344 const gfx::Rect& selection_rect, |
| 343 int active_match_ordinal, | 345 int active_match_ordinal, |
| 344 bool final_update); | 346 bool final_update); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // Called when |this| is no longer the WebContentsDelegate for |source|. | 378 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 377 void Detach(TabContents* source); | 379 void Detach(TabContents* source); |
| 378 | 380 |
| 379 // The TabContents that this is currently a delegate for. | 381 // The TabContents that this is currently a delegate for. |
| 380 std::set<TabContents*> attached_contents_; | 382 std::set<TabContents*> attached_contents_; |
| 381 }; | 383 }; |
| 382 | 384 |
| 383 } // namespace content | 385 } // namespace content |
| 384 | 386 |
| 385 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |