| 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_CONSTRAINED_WINDOW_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_IMPL_H_ |
| 6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_IMPL_H_ | 6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "chrome/browser/constrained_window.h" | 9 #include "chrome/browser/constrained_window.h" |
| 10 #include "chrome/browser/tab_contents_delegate.h" | 10 #include "chrome/browser/tab_contents_delegate.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual bool IsSuppressedConstrainedWindow() const; | 47 virtual bool IsSuppressedConstrainedWindow() const; |
| 48 virtual void WasHidden(); | 48 virtual void WasHidden(); |
| 49 virtual void DidBecomeSelected(); | 49 virtual void DidBecomeSelected(); |
| 50 virtual std::wstring GetWindowTitle() const; | 50 virtual std::wstring GetWindowTitle() const; |
| 51 virtual void UpdateWindowTitle(); | 51 virtual void UpdateWindowTitle(); |
| 52 virtual const gfx::Rect& GetCurrentBounds() const; | 52 virtual const gfx::Rect& GetCurrentBounds() const; |
| 53 | 53 |
| 54 // Overridden from PageNavigator (TabContentsDelegate's base interface): | 54 // Overridden from PageNavigator (TabContentsDelegate's base interface): |
| 55 virtual void OpenURLFromTab(TabContents* source, | 55 virtual void OpenURLFromTab(TabContents* source, |
| 56 const GURL& url, | 56 const GURL& url, |
| 57 const GURL& referrer, |
| 57 WindowOpenDisposition disposition, | 58 WindowOpenDisposition disposition, |
| 58 PageTransition::Type transition); | 59 PageTransition::Type transition); |
| 59 | 60 |
| 60 // Overridden from TabContentsDelegate: | 61 // Overridden from TabContentsDelegate: |
| 61 virtual void NavigationStateChanged(const TabContents* source, | 62 virtual void NavigationStateChanged(const TabContents* source, |
| 62 unsigned changed_flags); | 63 unsigned changed_flags); |
| 63 virtual void ReplaceContents(TabContents* source, | 64 virtual void ReplaceContents(TabContents* source, |
| 64 TabContents* new_contents); | 65 TabContents* new_contents); |
| 65 virtual void AddNewContents(TabContents* source, | 66 virtual void AddNewContents(TabContents* source, |
| 66 TabContents* new_contents, | 67 TabContents* new_contents, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // The animation class which animates constrained windows onto the page. | 198 // The animation class which animates constrained windows onto the page. |
| 198 scoped_ptr<ConstrainedWindowAnimation> animation_; | 199 scoped_ptr<ConstrainedWindowAnimation> animation_; |
| 199 | 200 |
| 200 // Current display rectangle (relative to owner_'s visible area). | 201 // Current display rectangle (relative to owner_'s visible area). |
| 201 gfx::Rect current_bounds_; | 202 gfx::Rect current_bounds_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowImpl); | 204 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowImpl); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_IMPL_H_ | 207 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_IMPL_H_ |
| OLD | NEW |