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

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

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 5 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Invoked when the page loses mouse capture. 239 // Invoked when the page loses mouse capture.
240 virtual void LostCapture() {} 240 virtual void LostCapture() {}
241 241
242 // Asks the delegate if the given tab can download. 242 // Asks the delegate if the given tab can download.
243 // Invoking the |callback| synchronously is OK. 243 // Invoking the |callback| synchronously is OK.
244 virtual void CanDownload(const GURL& url, 244 virtual void CanDownload(const GURL& url,
245 const std::string& request_method, 245 const std::string& request_method,
246 const base::Callback<void(bool)>& callback); 246 const base::Callback<void(bool)>& callback);
247 247
248 // Returns true if the context menu operation was handled by the delegate. 248 // Returns true if the context menu operation was handled by the delegate.
249 virtual bool HandleContextMenu(const content::ContextMenuParams& params); 249 virtual bool HandleContextMenu(RenderFrameHost* render_frame_host,
250 const content::ContextMenuParams& params);
250 251
251 // Opens source view for given WebContents that is navigated to the given 252 // Opens source view for given WebContents that is navigated to the given
252 // page url. 253 // page url.
253 virtual void ViewSourceForTab(WebContents* source, const GURL& page_url); 254 virtual void ViewSourceForTab(WebContents* source, const GURL& page_url);
254 255
255 // Opens source view for the given subframe. 256 // Opens source view for the given subframe.
256 virtual void ViewSourceForFrame(WebContents* source, 257 virtual void ViewSourceForFrame(WebContents* source,
257 const GURL& url, 258 const GURL& url,
258 const PageState& page_state); 259 const PageState& page_state);
259 260
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // Called when |this| is no longer the WebContentsDelegate for |source|. 542 // Called when |this| is no longer the WebContentsDelegate for |source|.
542 void Detach(WebContents* source); 543 void Detach(WebContents* source);
543 544
544 // The WebContents that this is currently a delegate for. 545 // The WebContents that this is currently a delegate for.
545 std::set<WebContents*> attached_contents_; 546 std::set<WebContents*> attached_contents_;
546 }; 547 };
547 548
548 } // namespace content 549 } // namespace content
549 550
550 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 551 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698