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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 virtual void RegisterProtocolHandler(TabContents* tab, | 316 virtual void RegisterProtocolHandler(TabContents* tab, |
317 const std::string& protocol, | 317 const std::string& protocol, |
318 const GURL& url, | 318 const GURL& url, |
319 const string16& title); | 319 const string16& title); |
320 | 320 |
321 // Register a new handler for Intents with the given action and type filter. | 321 // Register a new handler for Intents with the given action and type filter. |
322 virtual void RegisterIntentHandler(TabContents* tab, | 322 virtual void RegisterIntentHandler(TabContents* tab, |
323 const string16& action, | 323 const string16& action, |
324 const string16& type, | 324 const string16& type, |
325 const string16& href, | 325 const string16& href, |
326 const string16& title); | 326 const string16& title, |
| 327 const string16& disposition); |
327 | 328 |
328 // WebIntent notification handler. | 329 // WebIntent notification handler. |
329 virtual void WebIntentDispatch(TabContents* tab, | 330 virtual void WebIntentDispatch(TabContents* tab, |
330 int routing_id, | 331 int routing_id, |
331 const webkit_glue::WebIntentData& intent, | 332 const webkit_glue::WebIntentData& intent, |
332 int intent_id); | 333 int intent_id); |
333 | 334 |
334 // Result of string search in the page. This includes the number of matches | 335 // Result of string search in the page. This includes the number of matches |
335 // found and the selection rect (in screen coordinates) for the string found. | 336 // found and the selection rect (in screen coordinates) for the string found. |
336 // If |final_update| is false, it indicates that more results follow. | 337 // If |final_update| is false, it indicates that more results follow. |
(...skipping 29 matching lines...) Expand all Loading... |
366 void Attach(TabContents* source); | 367 void Attach(TabContents* source); |
367 | 368 |
368 // Called when |this| is no longer the TabContentsDelegate for |source|. | 369 // Called when |this| is no longer the TabContentsDelegate for |source|. |
369 void Detach(TabContents* source); | 370 void Detach(TabContents* source); |
370 | 371 |
371 // The TabContents that this is currently a delegate for. | 372 // The TabContents that this is currently a delegate for. |
372 std::set<TabContents*> attached_contents_; | 373 std::set<TabContents*> attached_contents_; |
373 }; | 374 }; |
374 | 375 |
375 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 376 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |