| 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/views/frame/browser_view.h" | 5 #include "chrome/browser/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 8 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 9 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| 10 #include "base/time.h" | 11 #include "base/time.h" |
| 11 #include "chrome/app/chrome_dll_resource.h" | 12 #include "chrome/app/chrome_dll_resource.h" |
| 12 #include "chrome/browser/app_modal_dialog_queue.h" | 13 #include "chrome/browser/app_modal_dialog_queue.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_utils.h" | 14 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 14 #include "chrome/browser/browser.h" | 15 #include "chrome/browser/browser.h" |
| 15 #include "chrome/browser/browser_list.h" | 16 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/download/download_manager.h" | 17 #include "chrome/browser/download/download_manager.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 #include "chrome/browser/views/toolbar_star_toggle.h" | 41 #include "chrome/browser/views/toolbar_star_toggle.h" |
| 41 #include "chrome/browser/views/toolbar_view.h" | 42 #include "chrome/browser/views/toolbar_view.h" |
| 42 #include "chrome/browser/sessions/tab_restore_service.h" | 43 #include "chrome/browser/sessions/tab_restore_service.h" |
| 43 #include "chrome/browser/tab_contents/navigation_entry.h" | 44 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 44 #include "chrome/browser/tab_contents/tab_contents.h" | 45 #include "chrome/browser/tab_contents/tab_contents.h" |
| 45 #include "chrome/browser/tab_contents/tab_contents_view.h" | 46 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 46 #include "chrome/browser/window_sizer.h" | 47 #include "chrome/browser/window_sizer.h" |
| 47 #include "chrome/common/chrome_switches.h" | 48 #include "chrome/common/chrome_switches.h" |
| 48 #include "chrome/common/drag_drop_types.h" | 49 #include "chrome/common/drag_drop_types.h" |
| 49 #include "chrome/common/gfx/chrome_canvas.h" | 50 #include "chrome/common/gfx/chrome_canvas.h" |
| 50 #include "chrome/common/l10n_util.h" | |
| 51 #include "chrome/common/notification_service.h" | 51 #include "chrome/common/notification_service.h" |
| 52 #include "chrome/common/os_exchange_data.h" | 52 #include "chrome/common/os_exchange_data.h" |
| 53 #include "chrome/common/pref_names.h" | 53 #include "chrome/common/pref_names.h" |
| 54 #include "chrome/common/pref_service.h" | 54 #include "chrome/common/pref_service.h" |
| 55 #include "chrome/common/win_util.h" | 55 #include "chrome/common/win_util.h" |
| 56 #include "chrome/views/controls/scrollbar/native_scroll_bar.h" | 56 #include "chrome/views/controls/scrollbar/native_scroll_bar.h" |
| 57 #include "chrome/views/fill_layout.h" | 57 #include "chrome/views/fill_layout.h" |
| 58 #include "chrome/views/view.h" | 58 #include "chrome/views/view.h" |
| 59 #include "chrome/views/widget/hwnd_notification_source.h" | 59 #include "chrome/views/widget/hwnd_notification_source.h" |
| 60 #include "chrome/views/widget/root_view.h" | 60 #include "chrome/views/widget/root_view.h" |
| (...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 1636 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 1637 BrowserView* browser_view = new BrowserView(browser); | 1637 BrowserView* browser_view = new BrowserView(browser); |
| 1638 (new BrowserFrame(browser_view))->Init(); | 1638 (new BrowserFrame(browser_view))->Init(); |
| 1639 return browser_view; | 1639 return browser_view; |
| 1640 } | 1640 } |
| 1641 | 1641 |
| 1642 // static | 1642 // static |
| 1643 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1643 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 1644 return new FindBarWin(static_cast<BrowserView*>(browser->window())); | 1644 return new FindBarWin(static_cast<BrowserView*>(browser->window())); |
| 1645 } | 1645 } |
| OLD | NEW |