| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void OnContentSettingsChange(TabContents* source); | 118 virtual void OnContentSettingsChange(TabContents* source); |
| 119 | 119 |
| 120 // Check whether this contents is inside a window dedicated to running a web | 120 // Check whether this contents is inside a window dedicated to running a web |
| 121 // application. | 121 // application. |
| 122 virtual bool IsApplication() const; | 122 virtual bool IsApplication() const; |
| 123 | 123 |
| 124 // Detach the given tab and convert it to a "webapp" view. The tab must be | 124 // Detach the given tab and convert it to a "webapp" view. The tab must be |
| 125 // a TabContents with a valid WebApp set. | 125 // a TabContents with a valid WebApp set. |
| 126 virtual void ConvertContentsToApplication(TabContents* source); | 126 virtual void ConvertContentsToApplication(TabContents* source); |
| 127 | 127 |
| 128 // Whether this tab can be blurred through a javascript obj.blur() | |
| 129 // call. ConstrainedWindows shouldn't be able to be blurred. | |
| 130 virtual bool CanBlur() const; | |
| 131 | |
| 132 // Whether the specified tab can be reloaded. | 128 // Whether the specified tab can be reloaded. |
| 133 // Reloading can be disabled e. g. for the DevTools window. | 129 // Reloading can be disabled e. g. for the DevTools window. |
| 134 virtual bool CanReloadContents(TabContents* source) const; | 130 virtual bool CanReloadContents(TabContents* source) const; |
| 135 | 131 |
| 136 // Return the rect where to display the resize corner, if any, otherwise | 132 // Return the rect where to display the resize corner, if any, otherwise |
| 137 // an empty rect. | 133 // an empty rect. |
| 138 virtual gfx::Rect GetRootWindowResizerRect() const; | 134 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 139 | 135 |
| 140 // Show a dialog with HTML content. |delegate| contains a pointer to the | 136 // Show a dialog with HTML content. |delegate| contains a pointer to the |
| 141 // delegate who knows how to display the dialog (which file URL and JSON | 137 // delegate who knows how to display the dialog (which file URL and JSON |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 268 |
| 273 // Notification that the preferred size of the contents has changed. | 269 // Notification that the preferred size of the contents has changed. |
| 274 // Only called if ShouldEnablePreferredSizeNotifications() returns true. | 270 // Only called if ShouldEnablePreferredSizeNotifications() returns true. |
| 275 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 271 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
| 276 | 272 |
| 277 protected: | 273 protected: |
| 278 ~TabContentsDelegate(); | 274 ~TabContentsDelegate(); |
| 279 }; | 275 }; |
| 280 | 276 |
| 281 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 277 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |