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