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 "chrome/browser/bookmarks/bookmark_utils.h" | 5 #include "chrome/browser/bookmarks/bookmark_utils.h" |
6 | 6 |
7 #include "app/clipboard/clipboard.h" | |
8 #include "app/drag_drop_types.h" | 7 #include "app/drag_drop_types.h" |
9 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
10 #include "app/tree_node_iterator.h" | 9 #include "app/tree_node_iterator.h" |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "base/string16.h" | 13 #include "base/string16.h" |
15 #include "base/time.h" | 14 #include "base/time.h" |
16 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 15 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
17 #include "chrome/browser/bookmarks/bookmark_model.h" | 16 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 17 matching lines...) Expand all Loading... |
35 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
36 #include "net/base/net_util.h" | 35 #include "net/base/net_util.h" |
37 #include "views/event.h" | 36 #include "views/event.h" |
38 | 37 |
39 #if defined(TOOLKIT_VIEWS) | 38 #if defined(TOOLKIT_VIEWS) |
40 #include "app/os_exchange_data.h" | 39 #include "app/os_exchange_data.h" |
41 #include "views/drag_utils.h" | 40 #include "views/drag_utils.h" |
42 #include "views/widget/root_view.h" | 41 #include "views/widget/root_view.h" |
43 #include "views/widget/widget.h" | 42 #include "views/widget/widget.h" |
44 #elif defined(TOOLKIT_GTK) | 43 #elif defined(TOOLKIT_GTK) |
45 #include "app/gtk_util.h" | |
46 #include "chrome/browser/gtk/custom_drag.h" | 44 #include "chrome/browser/gtk/custom_drag.h" |
47 #endif | 45 #endif |
48 | 46 |
49 using base::Time; | 47 using base::Time; |
50 | 48 |
51 namespace { | 49 namespace { |
52 | 50 |
53 // A PageNavigator implementation that creates a new Browser. This is used when | 51 // A PageNavigator implementation that creates a new Browser. This is used when |
54 // opening a url and there is no Browser open. The Browser is created the first | 52 // opening a url and there is no Browser open. The Browser is created the first |
55 // time the PageNavigator method is invoked. | 53 // time the PageNavigator method is invoked. |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } | 650 } |
653 } else { | 651 } else { |
654 *index = real_parent->GetChildCount(); | 652 *index = real_parent->GetChildCount(); |
655 } | 653 } |
656 } | 654 } |
657 | 655 |
658 return real_parent; | 656 return real_parent; |
659 } | 657 } |
660 | 658 |
661 } // namespace bookmark_utils | 659 } // namespace bookmark_utils |
OLD | NEW |