| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 // Notification that the preferred size of the contents has changed. | 266 // Notification that the preferred size of the contents has changed. |
| 267 // Only called if ShouldEnablePreferredSizeNotifications() returns true. | 267 // Only called if ShouldEnablePreferredSizeNotifications() returns true. |
| 268 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 268 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
| 269 | 269 |
| 270 // Notifies the delegate that something has changed about what content the | 270 // Notifies the delegate that something has changed about what content the |
| 271 // TabContents is displaying. Currently this is only fired when displaying | 271 // TabContents is displaying. Currently this is only fired when displaying |
| 272 // PDF using the internal PDF plugin. | 272 // PDF using the internal PDF plugin. |
| 273 virtual void ContentTypeChanged(TabContents* source); | 273 virtual void ContentTypeChanged(TabContents* source); |
| 274 | 274 |
| 275 // Sent when the user does a gesture that results in committing the match |
| 276 // preview. The delegate should replace |source| with the |source|'s match |
| 277 // preview TabContents. |
| 278 virtual void CommitMatchPreview(TabContents* source); |
| 279 |
| 275 protected: | 280 protected: |
| 276 virtual ~TabContentsDelegate(); | 281 virtual ~TabContentsDelegate(); |
| 277 }; | 282 }; |
| 278 | 283 |
| 279 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 284 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |