Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: content/public/browser/web_contents_view.h

Issue 16632009: Set AllowOverlappingViews for history overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698