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

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

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gfx/native_widget_types.h" 9 #include "base/gfx/native_widget_types.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Shows the page info using the specified information. 207 // Shows the page info using the specified information.
208 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL 208 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL
209 // information for that page/frame. If |show_history| is true, a section 209 // information for that page/frame. If |show_history| is true, a section
210 // showing how many times that URL has been visited is added to the page info. 210 // showing how many times that URL has been visited is added to the page info.
211 virtual void ShowPageInfo(Profile* profile, 211 virtual void ShowPageInfo(Profile* profile,
212 const GURL& url, 212 const GURL& url,
213 const NavigationEntry::SSLStatus& ssl, 213 const NavigationEntry::SSLStatus& ssl,
214 bool show_history) { 214 bool show_history) {
215 } 215 }
216 216
217 // Returns whether the event is a reserved keyboard shortcut that should not
218 // be sent to the renderer.
219 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) {
220 return false;
221 }
222
217 // Allows delegates to handle unhandled keyboard messages coming back from 223 // Allows delegates to handle unhandled keyboard messages coming back from
218 // the renderer. 224 // the renderer.
219 // Returns true if the keyboard message was handled. 225 // Returns true if the keyboard message was handled.
220 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 226 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
221 return false; 227 return false;
222 } 228 }
223 229
224 // Shows the repost form confirmation dialog box. 230 // Shows the repost form confirmation dialog box.
225 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents) {} 231 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents) {}
226 232
227 protected: 233 protected:
228 ~TabContentsDelegate() {} 234 ~TabContentsDelegate() {}
229 235
230 }; 236 };
231 237
232 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 238 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698