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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual void TabContentsFocused(TabContents* tab_content); 205 virtual void TabContentsFocused(TabContents* tab_content);
206 206
207 // Return much extra vertical space should be allotted to the 207 // Return much extra vertical space should be allotted to the
208 // render view widget during various animations (e.g. infobar closing). 208 // render view widget during various animations (e.g. infobar closing).
209 // This is used to make painting look smoother. 209 // This is used to make painting look smoother.
210 virtual int GetExtraRenderViewHeight() const; 210 virtual int GetExtraRenderViewHeight() const;
211 211
212 // Returns true if the context menu operation was handled by the delegate. 212 // Returns true if the context menu operation was handled by the delegate.
213 virtual bool HandleContextMenu(const ContextMenuParams& params); 213 virtual bool HandleContextMenu(const ContextMenuParams& params);
214 214
215 // Returns true if the context menu command was handled 215 // Returns true if the context menu command was handled.
216 virtual bool ExecuteContextMenuCommand(int command); 216 // event_flags is a bitsum of ui::EventFlags.
217 virtual bool ExecuteContextMenuCommand(int command, int event_flags);
217 218
218 // Shows the page info using the specified information. 219 // Shows the page info using the specified information.
219 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL 220 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL
220 // information for that page/frame. If |show_history| is true, a section 221 // information for that page/frame. If |show_history| is true, a section
221 // showing how many times that URL has been visited is added to the page info. 222 // showing how many times that URL has been visited is added to the page info.
222 virtual void ShowPageInfo(Profile* profile, 223 virtual void ShowPageInfo(Profile* profile,
223 const GURL& url, 224 const GURL& url,
224 const NavigationEntry::SSLStatus& ssl, 225 const NavigationEntry::SSLStatus& ssl,
225 bool show_history); 226 bool show_history);
226 227
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // Returns a pointer to a service to create JavaScript dialogs. The default 307 // Returns a pointer to a service to create JavaScript dialogs. The default
307 // pointer returned is to a stub service that marks all dialogs as suppressed 308 // pointer returned is to a stub service that marks all dialogs as suppressed
308 // and displays nothing. 309 // and displays nothing.
309 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 310 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator();
310 311
311 protected: 312 protected:
312 virtual ~TabContentsDelegate(); 313 virtual ~TabContentsDelegate();
313 }; 314 };
314 315
315 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 316 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/disposition_utils.h ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698