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/views/bookmark_table_view.h" | 5 #include "chrome/browser/views/bookmark_table_view.h" |
6 | 6 |
7 #include <commctrl.h> | 7 #include <commctrl.h> |
8 | 8 |
9 #include "app/drag_drop_types.h" | 9 #include "app/drag_drop_types.h" |
10 #include "app/gfx/canvas.h" | |
11 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
12 #include "app/os_exchange_data.h" | 11 #include "app/os_exchange_data.h" |
13 #include "app/os_exchange_data_provider_win.h" | 12 #include "app/os_exchange_data_provider_win.h" |
14 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
15 #include "base/base_drag_source.h" | 14 #include "base/base_drag_source.h" |
16 #include "chrome/browser/bookmarks/bookmark_utils.h" | 15 #include "chrome/browser/bookmarks/bookmark_utils.h" |
17 #include "chrome/browser/bookmarks/bookmark_model.h" | 16 #include "chrome/browser/bookmarks/bookmark_model.h" |
18 #include "chrome/browser/bookmarks/bookmark_table_model.h" | 17 #include "chrome/browser/bookmarks/bookmark_table_model.h" |
19 #include "chrome/browser/pref_service.h" | 18 #include "chrome/browser/pref_service.h" |
20 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
21 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 21 #include "gfx/canvas.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "views/controls/table/table_view_observer.h" | 23 #include "views/controls/table/table_view_observer.h" |
24 #include "views/view_constants.h" | 24 #include "views/view_constants.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Height of the drop indicator used when dropping between rows. | 28 // Height of the drop indicator used when dropping between rows. |
29 const int kDropHighlightHeight = 2; | 29 const int kDropHighlightHeight = 2; |
30 | 30 |
31 int GetWidthOfColumn(const std::vector<TableColumn>& columns, | 31 int GetWidthOfColumn(const std::vector<TableColumn>& columns, |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 url_column.percent = .5; | 395 url_column.percent = .5; |
396 } | 396 } |
397 columns.push_back(name_column); | 397 columns.push_back(name_column); |
398 columns.push_back(url_column); | 398 columns.push_back(url_column); |
399 } | 399 } |
400 SetColumns(columns); | 400 SetColumns(columns); |
401 for (size_t i = 0; i < columns.size(); ++i) | 401 for (size_t i = 0; i < columns.size(); ++i) |
402 SetColumnVisibility(columns[i].id, true); | 402 SetColumnVisibility(columns[i].id, true); |
403 OnModelChanged(); | 403 OnModelChanged(); |
404 } | 404 } |
OLD | NEW |