| 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 // Invoked when the preferred size of the contents has been changed. |
| 342 virtual void UpdatePreferredSize(TabContents* source, |
| 343 const gfx::Size& pref_size); |
| 344 |
| 341 protected: | 345 protected: |
| 342 virtual ~TabContentsDelegate(); | 346 virtual ~TabContentsDelegate(); |
| 343 | 347 |
| 344 private: | 348 private: |
| 345 friend class TabContents; | 349 friend class TabContents; |
| 346 | 350 |
| 347 // Called when |this| becomes the TabContentsDelegate for |source|. | 351 // Called when |this| becomes the TabContentsDelegate for |source|. |
| 348 void Attach(TabContents* source); | 352 void Attach(TabContents* source); |
| 349 | 353 |
| 350 // Called when |this| is no longer the TabContentsDelegate for |source|. | 354 // Called when |this| is no longer the TabContentsDelegate for |source|. |
| 351 void Detach(TabContents* source); | 355 void Detach(TabContents* source); |
| 352 | 356 |
| 353 // The TabContents that this is currently a delegate for. | 357 // The TabContents that this is currently a delegate for. |
| 354 std::set<TabContents*> attached_contents_; | 358 std::set<TabContents*> attached_contents_; |
| 355 }; | 359 }; |
| 356 | 360 |
| 357 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 361 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |