| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/native_widget_types.h" | 9 #include "base/gfx/native_widget_types.h" |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 return source; | 86 return source; |
| 87 } | 87 } |
| 88 | 88 |
| 89 // Notification that some of our content has changed size as | 89 // Notification that some of our content has changed size as |
| 90 // part of an animation. | 90 // part of an animation. |
| 91 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; | 91 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; |
| 92 | 92 |
| 93 // Notification that the starredness of the current URL changed. | 93 // Notification that the starredness of the current URL changed. |
| 94 virtual void URLStarredChanged(TabContents* source, bool starred) = 0; | 94 virtual void URLStarredChanged(TabContents* source, bool starred) = 0; |
| 95 | 95 |
| 96 // Notification that the target URL has changed | 96 // Notification that the target URL has changed. |
| 97 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0; | 97 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0; |
| 98 | 98 |
| 99 // Notification that the constrained child windows have changed. |
| 100 virtual void ChildWindowsChanged(TabContents* source) = 0; |
| 101 |
| 99 // Notification that there was a mouse event | 102 // Notification that there was a mouse event |
| 100 virtual void ContentsMouseEvent(TabContents* source, bool motion) { } | 103 virtual void ContentsMouseEvent(TabContents* source, bool motion) { } |
| 101 | 104 |
| 102 // Request the delegate to change the zoom level of the current tab. | 105 // Request the delegate to change the zoom level of the current tab. |
| 103 virtual void ContentsZoomChange(bool zoom_in) { } | 106 virtual void ContentsZoomChange(bool zoom_in) { } |
| 104 | 107 |
| 105 // Check whether this contents is inside a window dedicated to running a web | 108 // Check whether this contents is inside a window dedicated to running a web |
| 106 // application. | 109 // application. |
| 107 virtual bool IsApplication() const { return false; } | 110 virtual bool IsApplication() const { return false; } |
| 108 | 111 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 232 |
| 230 // Shows the repost form confirmation dialog box. | 233 // Shows the repost form confirmation dialog box. |
| 231 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents) {} | 234 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents) {} |
| 232 | 235 |
| 233 protected: | 236 protected: |
| 234 ~TabContentsDelegate() {} | 237 ~TabContentsDelegate() {} |
| 235 | 238 |
| 236 }; | 239 }; |
| 237 | 240 |
| 238 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 241 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |