| 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 |
| 128 // Whether the specified tab can be reloaded. | 132 // Whether the specified tab can be reloaded. |
| 129 // Reloading can be disabled e. g. for the DevTools window. | 133 // Reloading can be disabled e. g. for the DevTools window. |
| 130 virtual bool CanReloadContents(TabContents* source) const; | 134 virtual bool CanReloadContents(TabContents* source) const; |
| 131 | 135 |
| 132 // Return the rect where to display the resize corner, if any, otherwise | 136 // Return the rect where to display the resize corner, if any, otherwise |
| 133 // an empty rect. | 137 // an empty rect. |
| 134 virtual gfx::Rect GetRootWindowResizerRect() const; | 138 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 135 | 139 |
| 136 // Show a dialog with HTML content. |delegate| contains a pointer to the | 140 // Show a dialog with HTML content. |delegate| contains a pointer to the |
| 137 // delegate who knows how to display the dialog (which file URL and JSON | 141 // delegate who knows how to display the dialog (which file URL and JSON |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 269 |
| 266 // Notification that the preferred size of the contents has changed. | 270 // Notification that the preferred size of the contents has changed. |
| 267 // Only called if ShouldEnablePreferredSizeNotifications() returns true. | 271 // Only called if ShouldEnablePreferredSizeNotifications() returns true. |
| 268 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 272 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
| 269 | 273 |
| 270 protected: | 274 protected: |
| 271 ~TabContentsDelegate(); | 275 ~TabContentsDelegate(); |
| 272 }; | 276 }; |
| 273 | 277 |
| 274 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 278 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |