| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 void ExtensionHost::GotFocus() { | 430 void ExtensionHost::GotFocus() { |
| 431 } | 431 } |
| 432 | 432 |
| 433 void ExtensionHost::TakeFocus(bool reverse) { | 433 void ExtensionHost::TakeFocus(bool reverse) { |
| 434 } | 434 } |
| 435 | 435 |
| 436 bool ExtensionHost::IsReservedAccelerator(const NativeWebKeyboardEvent& event) { | 436 bool ExtensionHost::IsReservedAccelerator(const NativeWebKeyboardEvent& event) { |
| 437 return false; | 437 return false; |
| 438 } | 438 } |
| 439 | 439 |
| 440 void ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 440 bool ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
| 441 return false; |
| 441 } | 442 } |
| 442 | 443 |
| 443 void ExtensionHost::HandleMouseEvent() { | 444 void ExtensionHost::HandleMouseEvent() { |
| 444 #if defined(OS_WIN) | 445 #if defined(OS_WIN) |
| 445 if (view_.get()) | 446 if (view_.get()) |
| 446 view_->HandleMouseEvent(); | 447 view_->HandleMouseEvent(); |
| 447 #endif | 448 #endif |
| 448 } | 449 } |
| 449 | 450 |
| 450 void ExtensionHost::HandleMouseLeave() { | 451 void ExtensionHost::HandleMouseLeave() { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 window_id = ExtensionTabUtil::GetWindowId( | 516 window_id = ExtensionTabUtil::GetWindowId( |
| 516 const_cast<ExtensionHost* >(this)->GetBrowser()); | 517 const_cast<ExtensionHost* >(this)->GetBrowser()); |
| 517 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) { | 518 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) { |
| 518 // Background page is not attached to any browser window, so pass -1. | 519 // Background page is not attached to any browser window, so pass -1. |
| 519 window_id = -1; | 520 window_id = -1; |
| 520 } else { | 521 } else { |
| 521 NOTREACHED(); | 522 NOTREACHED(); |
| 522 } | 523 } |
| 523 return window_id; | 524 return window_id; |
| 524 } | 525 } |
| OLD | NEW |