OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/external_tab_container.h" | 5 #include "chrome/browser/external_tab_container.h" |
6 | 6 |
| 7 #include "app/win_util.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "base/win_util.h" | 9 #include "base/win_util.h" |
9 #include "chrome/browser/automation/automation_provider.h" | 10 #include "chrome/browser/automation/automation_provider.h" |
10 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
11 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 12 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
12 #include "chrome/browser/load_notification_details.h" | 13 #include "chrome/browser/load_notification_details.h" |
13 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/tab_contents/provisional_load_details.h" | 15 #include "chrome/browser/tab_contents/provisional_load_details.h" |
15 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
16 #include "chrome/browser/views/tab_contents_container_view.h" | 17 #include "chrome/browser/views/tab_contents_container_view.h" |
17 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/win_util.h" | |
19 #include "chrome/test/automation/automation_messages.h" | 19 #include "chrome/test/automation/automation_messages.h" |
20 // Included for SetRootViewForHWND. | 20 // Included for SetRootViewForHWND. |
21 #include "views/widget/widget_win.h" | 21 #include "views/widget/widget_win.h" |
22 | 22 |
23 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; | 23 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; |
24 | 24 |
25 // TODO(sanjeevr): The external_accel_table_ and external_accel_entry_count_ | 25 // TODO(sanjeevr): The external_accel_table_ and external_accel_entry_count_ |
26 // member variables are now obsolete and we don't use them. | 26 // member variables are now obsolete and we don't use them. |
27 // We need to remove them. | 27 // We need to remove them. |
28 ExternalTabContainer::ExternalTabContainer( | 28 ExternalTabContainer::ExternalTabContainer( |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 if (!::IsWindow(parent_window)) { | 424 if (!::IsWindow(parent_window)) { |
425 return NULL; | 425 return NULL; |
426 } | 426 } |
427 if (!IsExternalTabContainer(parent_window)) { | 427 if (!IsExternalTabContainer(parent_window)) { |
428 return NULL; | 428 return NULL; |
429 } | 429 } |
430 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( | 430 ExternalTabContainer* container = reinterpret_cast<ExternalTabContainer*>( |
431 GetProp(parent_window, kWindowObjectKey)); | 431 GetProp(parent_window, kWindowObjectKey)); |
432 return container; | 432 return container; |
433 } | 433 } |
OLD | NEW |