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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 struct NativeWebKeyboardEvent; | 25 struct NativeWebKeyboardEvent; |
26 struct OpenURLParams; | 26 struct OpenURLParams; |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class ListValue; | 29 class ListValue; |
30 } | 30 } |
31 | 31 |
32 namespace content { | 32 namespace content { |
33 class BrowserContext; | 33 class BrowserContext; |
34 struct FileChooserParams; | 34 struct FileChooserParams; |
| 35 class IntentsHost; |
35 class JavaScriptDialogCreator; | 36 class JavaScriptDialogCreator; |
36 } | 37 } |
37 | 38 |
38 namespace gfx { | 39 namespace gfx { |
39 class Point; | 40 class Point; |
40 class Rect; | 41 class Rect; |
41 class Size; | 42 class Size; |
42 } | 43 } |
43 | 44 |
44 namespace history { | 45 namespace history { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 const string16& title); | 327 const string16& title); |
327 | 328 |
328 // Register a new handler for Intents with the given action and type filter. | 329 // Register a new handler for Intents with the given action and type filter. |
329 virtual void RegisterIntentHandler(TabContents* tab, | 330 virtual void RegisterIntentHandler(TabContents* tab, |
330 const string16& action, | 331 const string16& action, |
331 const string16& type, | 332 const string16& type, |
332 const string16& href, | 333 const string16& href, |
333 const string16& title, | 334 const string16& title, |
334 const string16& disposition); | 335 const string16& disposition); |
335 | 336 |
336 // WebIntent notification handler. | 337 // Web Intents notification handler. Takes ownership of the |intents_host|. |
337 virtual void WebIntentDispatch(TabContents* tab, | 338 virtual void WebIntentDispatch(TabContents* tab, |
338 int routing_id, | 339 content::IntentsHost* intents_host); |
339 const webkit_glue::WebIntentData& intent, | |
340 int intent_id); | |
341 | 340 |
342 // Result of string search in the page. This includes the number of matches | 341 // Result of string search in the page. This includes the number of matches |
343 // found and the selection rect (in screen coordinates) for the string found. | 342 // found and the selection rect (in screen coordinates) for the string found. |
344 // If |final_update| is false, it indicates that more results follow. | 343 // If |final_update| is false, it indicates that more results follow. |
345 virtual void FindReply(TabContents* tab, | 344 virtual void FindReply(TabContents* tab, |
346 int request_id, | 345 int request_id, |
347 int number_of_matches, | 346 int number_of_matches, |
348 const gfx::Rect& selection_rect, | 347 const gfx::Rect& selection_rect, |
349 int active_match_ordinal, | 348 int active_match_ordinal, |
350 bool final_update); | 349 bool final_update); |
(...skipping 29 matching lines...) Expand all Loading... |
380 void Attach(TabContents* source); | 379 void Attach(TabContents* source); |
381 | 380 |
382 // Called when |this| is no longer the TabContentsDelegate for |source|. | 381 // Called when |this| is no longer the TabContentsDelegate for |source|. |
383 void Detach(TabContents* source); | 382 void Detach(TabContents* source); |
384 | 383 |
385 // The TabContents that this is currently a delegate for. | 384 // The TabContents that this is currently a delegate for. |
386 std::set<TabContents*> attached_contents_; | 385 std::set<TabContents*> attached_contents_; |
387 }; | 386 }; |
388 | 387 |
389 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 388 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |