OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ |
6 #define CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ | 6 #define CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual void AddNewContents(TabContents* source, | 85 virtual void AddNewContents(TabContents* source, |
86 TabContents* new_contents, | 86 TabContents* new_contents, |
87 WindowOpenDisposition disposition, | 87 WindowOpenDisposition disposition, |
88 const gfx::Rect& initial_pos, | 88 const gfx::Rect& initial_pos, |
89 bool user_gesture); | 89 bool user_gesture); |
90 virtual void ActivateContents(TabContents* contents) { } | 90 virtual void ActivateContents(TabContents* contents) { } |
91 virtual void LoadingStateChanged(TabContents* source) { } | 91 virtual void LoadingStateChanged(TabContents* source) { } |
92 virtual void CloseContents(TabContents* source); | 92 virtual void CloseContents(TabContents* source); |
93 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 93 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
94 virtual bool IsPopup(TabContents* source); | 94 virtual bool IsPopup(TabContents* source); |
| 95 virtual bool IsEmbedded(TabContents* source); |
95 virtual TabContents* GetConstrainingContents(TabContents* source); | 96 virtual TabContents* GetConstrainingContents(TabContents* source); |
96 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } | 97 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } |
97 virtual void URLStarredChanged(TabContents* source, bool starred) { } | 98 virtual void URLStarredChanged(TabContents* source, bool starred) { } |
98 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } | 99 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } |
99 | 100 |
100 // Override from Animation: | 101 // Override from Animation: |
101 virtual void AnimateToState(double state); | 102 virtual void AnimateToState(double state); |
102 | 103 |
103 protected: | 104 protected: |
104 // Override from views::ContainerWin: | 105 // Override from views::ContainerWin: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // bounds while animating in or out). | 155 // bounds while animating in or out). |
155 gfx::Rect bounds_; | 156 gfx::Rect bounds_; |
156 | 157 |
157 // The bottom right corner of where we should appear in our parent window. | 158 // The bottom right corner of where we should appear in our parent window. |
158 gfx::Point anchor_point_; | 159 gfx::Point anchor_point_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainer); | 161 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainer); |
161 }; | 162 }; |
162 | 163 |
163 #endif | 164 #endif |
OLD | NEW |