| 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 // TODO(maruel): Remove once UINT and HWND are replaced / typedef. | 8 // TODO(maruel): Remove once UINT and HWND are replaced / typedef. |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // it needs to do. | 71 // it needs to do. |
| 72 virtual void CloseContents(TabContents* source) = 0; | 72 virtual void CloseContents(TabContents* source) = 0; |
| 73 | 73 |
| 74 // Request the delegate to move this tab contents to the specified position | 74 // Request the delegate to move this tab contents to the specified position |
| 75 // in screen coordinates. | 75 // in screen coordinates. |
| 76 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) = 0; | 76 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) = 0; |
| 77 | 77 |
| 78 // Called to determine if the TabContents is contained in a popup window. | 78 // Called to determine if the TabContents is contained in a popup window. |
| 79 virtual bool IsPopup(TabContents* source) = 0; | 79 virtual bool IsPopup(TabContents* source) = 0; |
| 80 | 80 |
| 81 // Called to determine if the TabContents is contained in an embedded window. |
| 82 virtual bool IsEmbedded(TabContents* source) = 0; |
| 83 |
| 81 // Returns the tab which contains the specified tab content if it is | 84 // Returns the tab which contains the specified tab content if it is |
| 82 // constrained, NULL otherwise. | 85 // constrained, NULL otherwise. |
| 83 virtual TabContents* GetConstrainingContents(TabContents* source) { | 86 virtual TabContents* GetConstrainingContents(TabContents* source) { |
| 84 return NULL; | 87 return NULL; |
| 85 } | 88 } |
| 86 | 89 |
| 87 // Notification that some of our content has changed size as | 90 // Notification that some of our content has changed size as |
| 88 // part of an animation. | 91 // part of an animation. |
| 89 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; | 92 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; |
| 90 | 93 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool* proceed_to_fire_unload) { | 141 bool* proceed_to_fire_unload) { |
| 139 *proceed_to_fire_unload = true; | 142 *proceed_to_fire_unload = true; |
| 140 } | 143 } |
| 141 | 144 |
| 142 // Send IPC to external host. Default implementation is do nothing. | 145 // Send IPC to external host. Default implementation is do nothing. |
| 143 virtual void ForwardMessageToExternalHost(const std::string& receiver, | 146 virtual void ForwardMessageToExternalHost(const std::string& receiver, |
| 144 const std::string& message) {}; | 147 const std::string& message) {}; |
| 145 }; | 148 }; |
| 146 | 149 |
| 147 #endif // CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ | 150 #endif // CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |