OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // Return an iterator for the last constrained window in this tab contents. | 49 // Return an iterator for the last constrained window in this tab contents. |
50 ConstrainedWindowList::iterator constrained_window_end() { | 50 ConstrainedWindowList::iterator constrained_window_end() { |
51 return child_windows_.end(); | 51 return child_windows_.end(); |
52 } | 52 } |
53 | 53 |
54 private: | 54 private: |
55 // Overridden from TabContentsObserver: | 55 // Overridden from TabContentsObserver: |
56 virtual void DidNavigateMainFrame( | 56 virtual void DidNavigateMainFrame( |
57 const content::LoadCommittedDetails& details, | 57 const content::LoadCommittedDetails& details, |
58 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 58 const content::FrameNavigateParams& params) OVERRIDE; |
59 virtual void DidGetIgnoredUIEvent() OVERRIDE; | 59 virtual void DidGetIgnoredUIEvent() OVERRIDE; |
60 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 60 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
61 | 61 |
62 // Our owning TabContentsWrapper. | 62 // Our owning TabContentsWrapper. |
63 TabContentsWrapper* wrapper_; | 63 TabContentsWrapper* wrapper_; |
64 | 64 |
65 // Delegate for notifying our owner about stuff. Not owned by us. | 65 // Delegate for notifying our owner about stuff. Not owned by us. |
66 ConstrainedWindowTabHelperDelegate* delegate_; | 66 ConstrainedWindowTabHelperDelegate* delegate_; |
67 | 67 |
68 // All active constrained windows. | 68 // All active constrained windows. |
69 ConstrainedWindowList child_windows_; | 69 ConstrainedWindowList child_windows_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowTabHelper); | 71 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowTabHelper); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_H_ | 74 #endif // CHROME_BROWSER_UI_CONSTRAINED_WINDOW_TAB_HELPER_H_ |
OLD | NEW |