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

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

Issue 9390015: Get rid of ShowPageInfo on WebContents and WebContentsDelegate. Chrome shouldn't have to go throu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix gtk+mac Created 8 years, 10 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_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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // render view widget during various animations (e.g. infobar closing). 217 // render view widget during various animations (e.g. infobar closing).
218 // This is used to make painting look smoother. 218 // This is used to make painting look smoother.
219 virtual int GetExtraRenderViewHeight() const; 219 virtual int GetExtraRenderViewHeight() const;
220 220
221 // Returns true if the context menu operation was handled by the delegate. 221 // Returns true if the context menu operation was handled by the delegate.
222 virtual bool HandleContextMenu(const content::ContextMenuParams& params); 222 virtual bool HandleContextMenu(const content::ContextMenuParams& params);
223 223
224 // Returns true if the context menu command was handled 224 // Returns true if the context menu command was handled
225 virtual bool ExecuteContextMenuCommand(int command); 225 virtual bool ExecuteContextMenuCommand(int command);
226 226
227 // Shows the page info using the specified information.
228 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL
229 // information for that page/frame. If |show_history| is true, a section
230 // showing how many times that URL has been visited is added to the page info.
231 virtual void ShowPageInfo(content::BrowserContext* browser_context,
232 const GURL& url,
233 const SSLStatus& ssl,
234 bool show_history) {}
235
236 // Opens source view for given tab contents that is navigated to the given 227 // Opens source view for given tab contents that is navigated to the given
237 // page url. 228 // page url.
238 virtual void ViewSourceForTab(WebContents* source, const GURL& page_url); 229 virtual void ViewSourceForTab(WebContents* source, const GURL& page_url);
239 230
240 // Opens source view for the given subframe. 231 // Opens source view for the given subframe.
241 virtual void ViewSourceForFrame(WebContents* source, 232 virtual void ViewSourceForFrame(WebContents* source,
242 const GURL& url, 233 const GURL& url,
243 const std::string& content_state); 234 const std::string& content_state);
244 235
245 // Allows delegates to handle keyboard events before sending to the renderer. 236 // Allows delegates to handle keyboard events before sending to the renderer.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Called when |this| is no longer the WebContentsDelegate for |source|. 388 // Called when |this| is no longer the WebContentsDelegate for |source|.
398 void Detach(WebContents* source); 389 void Detach(WebContents* source);
399 390
400 // The WebContents that this is currently a delegate for. 391 // The WebContents that this is currently a delegate for.
401 std::set<WebContents*> attached_contents_; 392 std::set<WebContents*> attached_contents_;
402 }; 393 };
403 394
404 } // namespace content 395 } // namespace content
405 396
406 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 397 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« chrome/browser/ui/gtk/location_bar_view_gtk.cc ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698