OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |