| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 90 // before it draws for the first time. After the first draw, do not change |
| 91 // this setting. | 91 // this setting. |
| 92 virtual void SetAllowOverlappingViews(bool overlapping) = 0; | 92 virtual void SetAllowOverlappingViews(bool overlapping) = 0; |
| 93 |
| 94 // Returns true if overlapping views are allowed, false otherwise. |
| 95 virtual bool GetAllowOverlappingViews() const = 0; |
| 93 #endif | 96 #endif |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace content | 99 } // namespace content |
| 97 | 100 |
| 98 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 101 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
| OLD | NEW |