| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ |
| 7 | 7 |
| 8 class TabContents; | 8 class TabContents; |
| 9 class BrowserWindow; |
| 9 | 10 |
| 10 class ConstrainedWindowTabHelperDelegate { | 11 class ConstrainedWindowTabHelperDelegate { |
| 11 public: | 12 public: |
| 12 // Invoked prior to the TabContents showing a constrained window. | 13 // Invoked prior to the TabContents showing a constrained window. |
| 13 virtual void WillShowConstrainedWindow(TabContents* source); | 14 virtual void WillShowConstrainedWindow(TabContents* source); |
| 14 | 15 |
| 15 // Returns true if constrained windows should be focused. Default is true. | 16 // Returns true if constrained windows should be focused. Default is true. |
| 16 virtual bool ShouldFocusConstrainedWindow(); | 17 virtual bool ShouldFocusConstrainedWindow(); |
| 17 | 18 |
| 18 // Changes the blocked state of |tab_contents|. TabContentses are considered | 19 // Changes the blocked state of |tab_contents|. TabContentses are considered |
| 19 // blocked while displaying a tab modal dialog. During that time renderer host | 20 // blocked while displaying a tab modal dialog. During that time renderer host |
| 20 // will ignore any UI interaction within TabContents outside of the | 21 // will ignore any UI interaction within TabContents outside of the |
| 21 // currently displaying dialog. | 22 // currently displaying dialog. |
| 22 virtual void SetTabContentBlocked(TabContents* tab_contents, bool blocked); | 23 virtual void SetTabContentBlocked(TabContents* tab_contents, bool blocked); |
| 23 | 24 |
| 25 // Returns the window for this Browser. |
| 26 virtual BrowserWindow* GetBrowserWindow(); |
| 27 |
| 24 protected: | 28 protected: |
| 25 virtual ~ConstrainedWindowTabHelperDelegate(); | 29 virtual ~ConstrainedWindowTabHelperDelegate(); |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 #endif // CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ | 32 #endif // CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_DELEGATE_H_ |
| OLD | NEW |