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

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

Issue 554393008: [Athena] Simple pull to refresh implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 3 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 bool motion) {} 155 bool motion) {}
156 156
157 // Request the delegate to change the zoom level of the current tab. 157 // Request the delegate to change the zoom level of the current tab.
158 virtual void ContentsZoomChange(bool zoom_in) {} 158 virtual void ContentsZoomChange(bool zoom_in) {}
159 159
160 // Called to determine if the WebContents can be overscrolled with touch/wheel 160 // Called to determine if the WebContents can be overscrolled with touch/wheel
161 // gestures. 161 // gestures.
162 virtual bool CanOverscrollContent() const; 162 virtual bool CanOverscrollContent() const;
163 163
164 // Callback that allows vertical overscroll activies to be communicated to the 164 // Callback that allows vertical overscroll activies to be communicated to the
165 // delegate. 165 // delegate. |delta_y| is the total amount of overscroll.
166 virtual void OverscrollUpdate(int delta_y) {} 166 virtual void OverscrollUpdate(int delta_y) {}
167 167
168 // Invoked when a vertical overscroll completes.
169 virtual void OverscrollComplete() {}
170
168 // Return the rect where to display the resize corner, if any, otherwise 171 // Return the rect where to display the resize corner, if any, otherwise
169 // an empty rect. 172 // an empty rect.
170 virtual gfx::Rect GetRootWindowResizerRect() const; 173 virtual gfx::Rect GetRootWindowResizerRect() const;
171 174
172 // Invoked prior to showing before unload handler confirmation dialog. 175 // Invoked prior to showing before unload handler confirmation dialog.
173 virtual void WillRunBeforeUnloadConfirm() {} 176 virtual void WillRunBeforeUnloadConfirm() {}
174 177
175 // Returns true if javascript dialogs and unload alerts are suppressed. 178 // Returns true if javascript dialogs and unload alerts are suppressed.
176 // Default is false. 179 // Default is false.
177 virtual bool ShouldSuppressDialogs(); 180 virtual bool ShouldSuppressDialogs();
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // Called when |this| is no longer the WebContentsDelegate for |source|. 500 // Called when |this| is no longer the WebContentsDelegate for |source|.
498 void Detach(WebContents* source); 501 void Detach(WebContents* source);
499 502
500 // The WebContents that this is currently a delegate for. 503 // The WebContents that this is currently a delegate for.
501 std::set<WebContents*> attached_contents_; 504 std::set<WebContents*> attached_contents_;
502 }; 505 };
503 506
504 } // namespace content 507 } // namespace content
505 508
506 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 509 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698