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_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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 | 215 |
216 // Invoked when the page loses mouse capture. | 216 // Invoked when the page loses mouse capture. |
217 virtual void LostCapture() {} | 217 virtual void LostCapture() {} |
218 | 218 |
219 // Notification that |contents| has gained focus. | 219 // Notification that |contents| has gained focus. |
220 virtual void WebContentsFocused(WebContents* contents) {} | 220 virtual void WebContentsFocused(WebContents* contents) {} |
221 | 221 |
222 // Asks the delegate if the given tab can download. | 222 // Asks the delegate if the given tab can download. |
223 virtual bool CanDownload(RenderViewHost* render_view_host, | 223 virtual bool CanDownload(RenderViewHost* render_view_host, |
224 int request_id, | 224 int request_id, |
225 const std::string& request_method); | 225 const std::string& request_method, |
226 bool has_auth); | |
joth
2013/04/04 03:10:15
@jam - in line with your recent CL https://coderev
jam
2013/04/04 17:13:48
oh, in that case that's a bug. i had gone through
| |
226 | 227 |
227 // Return much extra vertical space should be allotted to the | 228 // Return much extra vertical space should be allotted to the |
228 // render view widget during various animations (e.g. infobar closing). | 229 // render view widget during various animations (e.g. infobar closing). |
229 // This is used to make painting look smoother. | 230 // This is used to make painting look smoother. |
230 virtual int GetExtraRenderViewHeight() const; | 231 virtual int GetExtraRenderViewHeight() const; |
231 | 232 |
232 // Returns true if the context menu operation was handled by the delegate. | 233 // Returns true if the context menu operation was handled by the delegate. |
233 virtual bool HandleContextMenu(const content::ContextMenuParams& params); | 234 virtual bool HandleContextMenu(const content::ContextMenuParams& params); |
234 | 235 |
235 // Opens source view for given WebContents that is navigated to the given | 236 // Opens source view for given WebContents that is navigated to the given |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
428 // Called when |this| is no longer the WebContentsDelegate for |source|. | 429 // Called when |this| is no longer the WebContentsDelegate for |source|. |
429 void Detach(WebContents* source); | 430 void Detach(WebContents* source); |
430 | 431 |
431 // The WebContents that this is currently a delegate for. | 432 // The WebContents that this is currently a delegate for. |
432 std::set<WebContents*> attached_contents_; | 433 std::set<WebContents*> attached_contents_; |
433 }; | 434 }; |
434 | 435 |
435 } // namespace content | 436 } // namespace content |
436 | 437 |
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 438 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |