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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Returns the current drop data, if any. | 79 // Returns the current drop data, if any. |
80 virtual WebDropData* GetDropData() const = 0; | 80 virtual WebDropData* GetDropData() const = 0; |
81 | 81 |
82 // Get the bounds of the View, relative to the parent. | 82 // Get the bounds of the View, relative to the parent. |
83 virtual gfx::Rect GetViewBounds() const = 0; | 83 virtual gfx::Rect GetViewBounds() const = 0; |
84 | 84 |
85 #if defined(OS_MACOSX) | 85 #if defined(OS_MACOSX) |
86 // The web contents view assumes that its view will never be overlapped by | 86 // The web contents view assumes that its view will never be overlapped by |
87 // another view (either partially or fully). This allows it to perform | 87 // another view (either partially or fully). This allows it to perform |
88 // optimizations. If the view is in a view hierarchy where it might be | 88 // optimizations. If the view is in a view hierarchy where it might be |
89 // overlapped by another view, notify the view by calling this with |true| | 89 // overlapped by another view, notify the view by calling this with |true|. |
90 // before it draws for the first time. After the first draw, do not change | |
91 // this setting. | |
92 virtual void SetAllowOverlappingViews(bool overlapping) = 0; | 90 virtual void SetAllowOverlappingViews(bool overlapping) = 0; |
| 91 |
| 92 // Returns true if overlapping views are allowed, false otherwise. |
| 93 virtual bool GetAllowOverlappingViews() const = 0; |
93 #endif | 94 #endif |
94 }; | 95 }; |
95 | 96 |
96 } // namespace content | 97 } // namespace content |
97 | 98 |
98 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 99 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |