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

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

Issue 2400243002: Remove grow box rect support, browser part. (Closed)
Patch Set: . Created 4 years, 2 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
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_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // gestures. 176 // gestures.
177 virtual bool CanOverscrollContent() const; 177 virtual bool CanOverscrollContent() const;
178 178
179 // Callback that allows vertical overscroll activies to be communicated to the 179 // Callback that allows vertical overscroll activies to be communicated to the
180 // delegate. |delta_y| is the total amount of overscroll. 180 // delegate. |delta_y| is the total amount of overscroll.
181 virtual void OverscrollUpdate(float delta_y) {} 181 virtual void OverscrollUpdate(float delta_y) {}
182 182
183 // Invoked when a vertical overscroll completes. 183 // Invoked when a vertical overscroll completes.
184 virtual void OverscrollComplete() {} 184 virtual void OverscrollComplete() {}
185 185
186 // Return the rect where to display the resize corner, if any, otherwise
187 // an empty rect.
188 virtual gfx::Rect GetRootWindowResizerRect() const;
189
190 // Invoked prior to showing before unload handler confirmation dialog. 186 // Invoked prior to showing before unload handler confirmation dialog.
191 virtual void WillRunBeforeUnloadConfirm() {} 187 virtual void WillRunBeforeUnloadConfirm() {}
192 188
193 // Returns true if javascript dialogs and unload alerts are suppressed. 189 // Returns true if javascript dialogs and unload alerts are suppressed.
194 // Default is false. 190 // Default is false.
195 virtual bool ShouldSuppressDialogs(WebContents* source); 191 virtual bool ShouldSuppressDialogs(WebContents* source);
196 192
197 // Returns whether pending NavigationEntries for aborted browser-initiated 193 // Returns whether pending NavigationEntries for aborted browser-initiated
198 // navigations should be preserved (and thus returned from GetVisibleURL). 194 // navigations should be preserved (and thus returned from GetVisibleURL).
199 // Defaults to false. 195 // Defaults to false.
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 // Called when |this| is no longer the WebContentsDelegate for |source|. 552 // Called when |this| is no longer the WebContentsDelegate for |source|.
557 void Detach(WebContents* source); 553 void Detach(WebContents* source);
558 554
559 // The WebContents that this is currently a delegate for. 555 // The WebContents that this is currently a delegate for.
560 std::set<WebContents*> attached_contents_; 556 std::set<WebContents*> attached_contents_;
561 }; 557 };
562 558
563 } // namespace content 559 } // namespace content
564 560
565 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 561 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698