| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/extensions/native_app_window_views.h" | 5 #include "chrome/browser/ui/views/apps/native_app_window_views.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/extensions/extension_host.h" | 12 #include "chrome/browser/extensions/extension_host.h" |
| 13 #include "chrome/browser/favicon/favicon_tab_helper.h" | 13 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" | 15 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 | 739 |
| 740 void NativeAppWindowViews::HandleKeyboardEvent( | 740 void NativeAppWindowViews::HandleKeyboardEvent( |
| 741 const content::NativeWebKeyboardEvent& event) { | 741 const content::NativeWebKeyboardEvent& event) { |
| 742 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, | 742 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, |
| 743 GetFocusManager()); | 743 GetFocusManager()); |
| 744 } | 744 } |
| 745 | 745 |
| 746 void NativeAppWindowViews::RenderViewHostChanged() { | 746 void NativeAppWindowViews::RenderViewHostChanged() { |
| 747 OnViewWasResized(); | 747 OnViewWasResized(); |
| 748 } | 748 } |
| 749 | |
| 750 //------------------------------------------------------------------------------ | |
| 751 // NativeAppWindow::Create | |
| 752 | |
| 753 // static | |
| 754 NativeAppWindow* NativeAppWindow::Create( | |
| 755 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { | |
| 756 return new NativeAppWindowViews(shell_window, params); | |
| 757 } | |
| OLD | NEW |