| 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 namespace content { | 8 namespace content { |
| 9 class WebContents; | 9 class WebContents; |
| 10 } | 10 } |
| 11 class BrowserWindow; |
| 11 | 12 |
| 12 class ConstrainedWindowTabHelperDelegate { | 13 class ConstrainedWindowTabHelperDelegate { |
| 13 public: | 14 public: |
| 14 // Returns true if constrained windows should be focused. Default is true. | 15 // Returns true if constrained windows should be focused. Default is true. |
| 15 virtual bool ShouldFocusConstrainedWindow(); | 16 virtual bool ShouldFocusConstrainedWindow(); |
| 16 | 17 |
| 17 // Changes the blocked state of |tab_contents|. WebContentses are considered | 18 // Changes the blocked state of |tab_contents|. WebContentses are considered |
| 18 // blocked while displaying a tab modal dialog. During that time renderer host | 19 // blocked while displaying a tab modal dialog. During that time renderer host |
| 19 // will ignore any UI interaction within WebContents outside of the | 20 // will ignore any UI interaction within WebContents outside of the |
| 20 // currently displaying dialog. | 21 // currently displaying dialog. |
| 21 virtual void SetTabContentBlocked(content::WebContents* web_contents, | 22 virtual void SetTabContentBlocked(content::WebContents* web_contents, |
| 22 bool blocked); | 23 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 |