OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/json/json_writer.h" | 6 #include "base/json/json_writer.h" |
7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/tab_contents/navigation_controller.h" | 21 #include "chrome/browser/tab_contents/navigation_controller.h" |
22 #include "chrome/browser/tab_contents/navigation_entry.h" | 22 #include "chrome/browser/tab_contents/navigation_entry.h" |
23 #include "chrome/browser/tab_contents/tab_contents.h" | 23 #include "chrome/browser/tab_contents/tab_contents.h" |
24 #include "chrome/browser/tab_contents/tab_contents_view.h" | 24 #include "chrome/browser/tab_contents/tab_contents_view.h" |
25 #include "chrome/browser/tabs/tab_strip_model.h" | 25 #include "chrome/browser/tabs/tab_strip_model.h" |
26 #include "chrome/browser/themes/browser_theme_provider.h" | 26 #include "chrome/browser/themes/browser_theme_provider.h" |
27 #include "chrome/browser/ui/browser.h" | 27 #include "chrome/browser/ui/browser.h" |
28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
29 #include "chrome/common/bindings_policy.h" | 29 #include "chrome/common/bindings_policy.h" |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
| 31 #include "chrome/common/notification_service.h" |
31 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
32 #include "chrome/common/render_messages.h" | 33 #include "chrome/common/render_messages.h" |
33 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
34 #include "grit/generated_resources.h" | 35 #include "grit/generated_resources.h" |
35 | 36 |
36 const char DevToolsWindow::kDevToolsApp[] = "DevToolsApp"; | 37 const char DevToolsWindow::kDevToolsApp[] = "DevToolsApp"; |
37 | 38 |
38 // static | 39 // static |
39 TabContents* DevToolsWindow::GetDevToolsContents(TabContents* inspected_tab) { | 40 TabContents* DevToolsWindow::GetDevToolsContents(TabContents* inspected_tab) { |
40 if (!inspected_tab) { | 41 if (!inspected_tab) { |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 return false; | 408 return false; |
408 } | 409 } |
409 | 410 |
410 void DevToolsWindow::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 411 void DevToolsWindow::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
411 if (docked_) { | 412 if (docked_) { |
412 BrowserWindow* inspected_window = GetInspectedBrowserWindow(); | 413 BrowserWindow* inspected_window = GetInspectedBrowserWindow(); |
413 if (inspected_window) | 414 if (inspected_window) |
414 inspected_window->HandleKeyboardEvent(event); | 415 inspected_window->HandleKeyboardEvent(event); |
415 } | 416 } |
416 } | 417 } |
OLD | NEW |