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

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

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
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | ui/base/models/menu_model.h » ('j') | 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) 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 #include "content/browser/tab_contents/tab_contents_delegate.h" 5 #include "content/browser/tab_contents/tab_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "content/browser/javascript_dialogs.h" 9 #include "content/browser/javascript_dialogs.h"
10 #include "content/common/url_constants.h" 10 #include "content/common/url_constants.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 int TabContentsDelegate::GetExtraRenderViewHeight() const { 89 int TabContentsDelegate::GetExtraRenderViewHeight() const {
90 return 0; 90 return 0;
91 } 91 }
92 92
93 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { 93 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) {
94 return false; 94 return false;
95 } 95 }
96 96
97 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { 97 bool TabContentsDelegate::ExecuteContextMenuCommand(int command,
98 int event_flags) {
98 return false; 99 return false;
99 } 100 }
100 101
101 void TabContentsDelegate::ShowPageInfo(Profile* profile, 102 void TabContentsDelegate::ShowPageInfo(Profile* profile,
102 const GURL& url, 103 const GURL& url,
103 const NavigationEntry::SSLStatus& ssl, 104 const NavigationEntry::SSLStatus& ssl,
104 bool show_history) { 105 bool show_history) {
105 } 106 }
106 107
107 void TabContentsDelegate::ViewSourceForTab(TabContents* source, 108 void TabContentsDelegate::ViewSourceForTab(TabContents* source,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 friend struct DefaultSingletonTraits<JavaScriptDialogCreatorStub>; 233 friend struct DefaultSingletonTraits<JavaScriptDialogCreatorStub>;
233 }; 234 };
234 235
235 content::JavaScriptDialogCreator* 236 content::JavaScriptDialogCreator*
236 TabContentsDelegate::GetJavaScriptDialogCreator() { 237 TabContentsDelegate::GetJavaScriptDialogCreator() {
237 return JavaScriptDialogCreatorStub::GetInstance(); 238 return JavaScriptDialogCreatorStub::GetInstance();
238 } 239 }
239 240
240 TabContentsDelegate::~TabContentsDelegate() { 241 TabContentsDelegate::~TabContentsDelegate() {
241 } 242 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | ui/base/models/menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698