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/chromeos/compact_location_bar_view.h" | 5 #include "chrome/browser/chromeos/compact_location_bar_view.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "app/drag_drop_types.h" | 11 #include "app/drag_drop_types.h" |
12 #include "app/gfx/canvas.h" | |
13 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
14 #include "chrome/app/chrome_dll_resource.h" | 13 #include "chrome/app/chrome_dll_resource.h" |
15 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 14 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
16 #include "chrome/browser/bookmarks/bookmark_model.h" | 15 #include "chrome/browser/bookmarks/bookmark_model.h" |
17 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" | 16 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" |
18 #include "chrome/browser/browser_list.h" | 17 #include "chrome/browser/browser_list.h" |
19 #include "chrome/browser/browser_theme_provider.h" | 18 #include "chrome/browser/browser_theme_provider.h" |
20 #include "chrome/browser/chromeos/compact_location_bar_host.h" | 19 #include "chrome/browser/chromeos/compact_location_bar_host.h" |
21 #include "chrome/browser/metrics/user_metrics.h" | 20 #include "chrome/browser/metrics/user_metrics.h" |
22 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profile.h" |
23 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
24 #include "chrome/browser/view_ids.h" | 23 #include "chrome/browser/view_ids.h" |
25 #include "chrome/browser/views/browser_actions_container.h" | 24 #include "chrome/browser/views/browser_actions_container.h" |
26 #include "chrome/browser/views/event_utils.h" | 25 #include "chrome/browser/views/event_utils.h" |
27 #include "chrome/browser/views/frame/browser_view.h" | 26 #include "chrome/browser/views/frame/browser_view.h" |
28 #include "chrome/browser/views/toolbar_star_toggle.h" | 27 #include "chrome/browser/views/toolbar_star_toggle.h" |
| 28 #include "gfx/canvas.h" |
29 #include "gfx/point.h" | 29 #include "gfx/point.h" |
30 #include "grit/chromium_strings.h" | 30 #include "grit/chromium_strings.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
33 #include "views/background.h" | 33 #include "views/background.h" |
34 #include "views/controls/button/image_button.h" | 34 #include "views/controls/button/image_button.h" |
35 #include "views/controls/native/native_view_host.h" | 35 #include "views/controls/native/native_view_host.h" |
36 #include "views/drag_utils.h" | 36 #include "views/drag_utils.h" |
37 #include "views/widget/widget.h" | 37 #include "views/widget/widget.h" |
38 #include "views/window/window.h" | 38 #include "views/window/window.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 Profile* profile = browser()->profile(); | 316 Profile* profile = browser()->profile(); |
317 if (profile && profile->GetBookmarkModel() && | 317 if (profile && profile->GetBookmarkModel() && |
318 profile->GetBookmarkModel()->IsBookmarked(tab->GetURL())) { | 318 profile->GetBookmarkModel()->IsBookmarked(tab->GetURL())) { |
319 return DragDropTypes::DRAG_MOVE | DragDropTypes::DRAG_COPY | | 319 return DragDropTypes::DRAG_MOVE | DragDropTypes::DRAG_COPY | |
320 DragDropTypes::DRAG_LINK; | 320 DragDropTypes::DRAG_LINK; |
321 } | 321 } |
322 return DragDropTypes::DRAG_COPY | DragDropTypes::DRAG_LINK; | 322 return DragDropTypes::DRAG_COPY | DragDropTypes::DRAG_LINK; |
323 } | 323 } |
324 | 324 |
325 } // namespace chromeos | 325 } // namespace chromeos |
OLD | NEW |