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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "chrome/browser/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 void ExtensionHost::UpdateDragCursor(WebDragOperation operation) { 409 void ExtensionHost::UpdateDragCursor(WebDragOperation operation) {
410 } 410 }
411 411
412 void ExtensionHost::GotFocus() { 412 void ExtensionHost::GotFocus() {
413 } 413 }
414 414
415 void ExtensionHost::TakeFocus(bool reverse) { 415 void ExtensionHost::TakeFocus(bool reverse) {
416 } 416 }
417 417
418 bool ExtensionHost::IsReservedAccelerator(const NativeWebKeyboardEvent& event) {
419 return false;
420 }
421
418 void ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 422 void ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
419 } 423 }
420 424
421 void ExtensionHost::HandleMouseEvent() { 425 void ExtensionHost::HandleMouseEvent() {
422 #if defined(OS_WIN) 426 #if defined(OS_WIN)
423 if (view_.get()) 427 if (view_.get())
424 view_->HandleMouseEvent(); 428 view_->HandleMouseEvent();
425 #endif 429 #endif
426 } 430 }
427 431
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 window_id = ExtensionTabUtil::GetWindowId( 492 window_id = ExtensionTabUtil::GetWindowId(
489 const_cast<ExtensionHost* >(this)->GetBrowser()); 493 const_cast<ExtensionHost* >(this)->GetBrowser());
490 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) { 494 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) {
491 // Background page is not attached to any browser window, so pass -1. 495 // Background page is not attached to any browser window, so pass -1.
492 window_id = -1; 496 window_id = -1;
493 } else { 497 } else {
494 NOTREACHED(); 498 NOTREACHED();
495 } 499 }
496 return window_id; 500 return window_id;
497 } 501 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698