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/bookmarks/bookmark_utils.h" | 5 #include "chrome/browser/bookmarks/bookmark_utils.h" |
6 | 6 |
| 7 #include "app/drag_drop_types.h" |
7 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 // TODO(port): Port these files. |
| 10 #if defined(OS_WIN) |
| 11 #include "app/os_exchange_data.h" |
| 12 #else |
| 13 #include "chrome/common/temp_scaffolding_stubs.h" |
| 14 #endif |
8 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
9 #include "base/string_util.h" | 16 #include "base/string_util.h" |
10 #include "base/time.h" | 17 #include "base/time.h" |
11 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 18 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
12 #include "chrome/browser/bookmarks/bookmark_model.h" | 19 #include "chrome/browser/bookmarks/bookmark_model.h" |
13 #include "chrome/browser/browser.h" | 20 #include "chrome/browser/browser.h" |
14 #include "chrome/browser/browser_list.h" | 21 #include "chrome/browser/browser_list.h" |
15 #include "chrome/browser/history/query_parser.h" | 22 #include "chrome/browser/history/query_parser.h" |
16 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/tab_contents/page_navigator.h" | 24 #include "chrome/browser/tab_contents/page_navigator.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 25 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/common/drag_drop_types.h" | |
20 #include "chrome/common/notification_service.h" | 26 #include "chrome/common/notification_service.h" |
21 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
22 #include "chrome/common/pref_service.h" | 28 #include "chrome/common/pref_service.h" |
23 #include "chrome/views/controls/tree/tree_node_iterator.h" | 29 #include "chrome/views/controls/tree/tree_node_iterator.h" |
24 #include "chrome/views/event.h" | 30 #include "chrome/views/event.h" |
25 #include "grit/chromium_strings.h" | 31 #include "grit/chromium_strings.h" |
26 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
27 | 33 |
28 // TODO(port): Port these files. | |
29 #if defined(OS_WIN) | |
30 #include "chrome/common/os_exchange_data.h" | |
31 #else | |
32 #include "chrome/common/temp_scaffolding_stubs.h" | |
33 #endif | |
34 | |
35 using base::Time; | 34 using base::Time; |
36 | 35 |
37 namespace { | 36 namespace { |
38 | 37 |
39 // A PageNavigator implementation that creates a new Browser. This is used when | 38 // A PageNavigator implementation that creates a new Browser. This is used when |
40 // opening a url and there is no Browser open. The Browser is created the first | 39 // opening a url and there is no Browser open. The Browser is created the first |
41 // time the PageNavigator method is invoked. | 40 // time the PageNavigator method is invoked. |
42 class NewBrowserPageNavigator : public PageNavigator { | 41 class NewBrowserPageNavigator : public PageNavigator { |
43 public: | 42 public: |
44 explicit NewBrowserPageNavigator(Profile* profile) | 43 explicit NewBrowserPageNavigator(Profile* profile) |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 | 631 |
633 // Formerly in BookmarkTableView | 632 // Formerly in BookmarkTableView |
634 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth1, -1); | 633 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth1, -1); |
635 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth1, -1); | 634 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth1, -1); |
636 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth2, -1); | 635 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth2, -1); |
637 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth2, -1); | 636 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth2, -1); |
638 prefs->RegisterIntegerPref(prefs::kBookmarkTablePathWidth, -1); | 637 prefs->RegisterIntegerPref(prefs::kBookmarkTablePathWidth, -1); |
639 } | 638 } |
640 | 639 |
641 } // namespace bookmark_utils | 640 } // namespace bookmark_utils |
OLD | NEW |