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

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: fix comment 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/test/test_web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698