| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 const string16& title); | 331 const string16& title); |
| 332 | 332 |
| 333 // WebIntent notification handler. | 333 // WebIntent notification handler. |
| 334 virtual void WebIntentDispatch(TabContents* tab, | 334 virtual void WebIntentDispatch(TabContents* tab, |
| 335 int routing_id, | 335 int routing_id, |
| 336 const string16& action, | 336 const string16& action, |
| 337 const string16& type, | 337 const string16& type, |
| 338 const string16& data, | 338 const string16& data, |
| 339 int intent_id); | 339 int intent_id); |
| 340 | 340 |
| 341 // Result of string search in the page. This includes the number of matches |
| 342 // found and the selection rect (in screen coordinates) for the string found. |
| 343 // If |final_update| is false, it indicates that more results follow. |
| 344 virtual void FindReply(TabContents* tab, |
| 345 int request_id, |
| 346 int number_of_matches, |
| 347 const gfx::Rect& selection_rect, |
| 348 int active_match_ordinal, |
| 349 bool final_update); |
| 350 |
| 341 protected: | 351 protected: |
| 342 virtual ~TabContentsDelegate(); | 352 virtual ~TabContentsDelegate(); |
| 343 | 353 |
| 344 private: | 354 private: |
| 345 friend class TabContents; | 355 friend class TabContents; |
| 346 | 356 |
| 347 // Called when |this| becomes the TabContentsDelegate for |source|. | 357 // Called when |this| becomes the TabContentsDelegate for |source|. |
| 348 void Attach(TabContents* source); | 358 void Attach(TabContents* source); |
| 349 | 359 |
| 350 // Called when |this| is no longer the TabContentsDelegate for |source|. | 360 // Called when |this| is no longer the TabContentsDelegate for |source|. |
| 351 void Detach(TabContents* source); | 361 void Detach(TabContents* source); |
| 352 | 362 |
| 353 // The TabContents that this is currently a delegate for. | 363 // The TabContents that this is currently a delegate for. |
| 354 std::set<TabContents*> attached_contents_; | 364 std::set<TabContents*> attached_contents_; |
| 355 }; | 365 }; |
| 356 | 366 |
| 357 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 367 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |