| 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 "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // TODO(erikkay) - This is a temporary hack. Show a menu here instead. | 173 // TODO(erikkay) - This is a temporary hack. Show a menu here instead. |
| 174 g_browser_process->devtools_manager()->OpenDevToolsWindow(render_view_host()); | 174 g_browser_process->devtools_manager()->OpenDevToolsWindow(render_view_host()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void ExtensionHost::StartDragging(const WebDropData& drop_data) { | 177 void ExtensionHost::StartDragging(const WebDropData& drop_data) { |
| 178 } | 178 } |
| 179 | 179 |
| 180 void ExtensionHost::UpdateDragCursor(bool is_drop_target) { | 180 void ExtensionHost::UpdateDragCursor(bool is_drop_target) { |
| 181 } | 181 } |
| 182 | 182 |
| 183 void ExtensionHost::GotFocus() { |
| 184 } |
| 185 |
| 183 void ExtensionHost::TakeFocus(bool reverse) { | 186 void ExtensionHost::TakeFocus(bool reverse) { |
| 184 } | 187 } |
| 185 | 188 |
| 186 void ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 189 void ExtensionHost::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
| 187 } | 190 } |
| 188 | 191 |
| 189 void ExtensionHost::HandleMouseEvent() { | 192 void ExtensionHost::HandleMouseEvent() { |
| 190 #if defined(OS_WIN) | 193 #if defined(OS_WIN) |
| 191 if (view_.get()) | 194 if (view_.get()) |
| 192 view_->HandleMouseEvent(); | 195 view_->HandleMouseEvent(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 208 Browser* browser = BrowserList::GetLastActiveWithProfile( | 211 Browser* browser = BrowserList::GetLastActiveWithProfile( |
| 209 render_view_host()->process()->profile()); | 212 render_view_host()->process()->profile()); |
| 210 // NOTE(rafaelw): This can return NULL in some circumstances. In particular, | 213 // NOTE(rafaelw): This can return NULL in some circumstances. In particular, |
| 211 // a toolstrip or background_page onload chrome.tabs api call can make it | 214 // a toolstrip or background_page onload chrome.tabs api call can make it |
| 212 // into here before the browser is sufficiently initialized to return here. | 215 // into here before the browser is sufficiently initialized to return here. |
| 213 // A similar situation may arise during shutdown. | 216 // A similar situation may arise during shutdown. |
| 214 // TODO(rafaelw): Delay creation of background_page until the browser | 217 // TODO(rafaelw): Delay creation of background_page until the browser |
| 215 // is available. http://code.google.com/p/chromium/issues/detail?id=13284 | 218 // is available. http://code.google.com/p/chromium/issues/detail?id=13284 |
| 216 return browser; | 219 return browser; |
| 217 } | 220 } |
| OLD | NEW |