| 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/views/bookmark_table_view.h" | 5 #include "chrome/browser/views/bookmark_table_view.h" |
| 6 | 6 |
| 7 #include "app/drag_drop_types.h" |
| 7 #include "app/gfx/chrome_canvas.h" | 8 #include "app/gfx/chrome_canvas.h" |
| 8 #include "app/gfx/chrome_font.h" | 9 #include "app/gfx/chrome_font.h" |
| 10 #include "app/os_exchange_data.h" |
| 9 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 10 #include "base/base_drag_source.h" | 12 #include "base/base_drag_source.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_utils.h" | 13 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_table_model.h" | 15 #include "chrome/browser/bookmarks/bookmark_table_model.h" |
| 14 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
| 15 #include "chrome/common/drag_drop_types.h" | |
| 16 #include "chrome/common/os_exchange_data.h" | |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/common/pref_service.h" | 18 #include "chrome/common/pref_service.h" |
| 19 #include "chrome/views/view_constants.h" | 19 #include "chrome/views/view_constants.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Height of the drop indicator used when dropping between rows. | 24 // Height of the drop indicator used when dropping between rows. |
| 25 const int kDropHighlightHeight = 2; | 25 const int kDropHighlightHeight = 2; |
| 26 | 26 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 GetClientRect(GetNativeControlHWND(), client_rect); | 434 GetClientRect(GetNativeControlHWND(), client_rect); |
| 435 ChromeFont font = GetAltTextFont(); | 435 ChromeFont font = GetAltTextFont(); |
| 436 // Pad height by 2 for halo. | 436 // Pad height by 2 for halo. |
| 437 return gfx::Rect(kXOffset, content_offset(), client_rect.Width() - kXOffset, | 437 return gfx::Rect(kXOffset, content_offset(), client_rect.Width() - kXOffset, |
| 438 std::max(kImageSize, font.height() + 2)); | 438 std::max(kImageSize, font.height() + 2)); |
| 439 } | 439 } |
| 440 | 440 |
| 441 ChromeFont BookmarkTableView::GetAltTextFont() { | 441 ChromeFont BookmarkTableView::GetAltTextFont() { |
| 442 return ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont); | 442 return ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont); |
| 443 } | 443 } |
| OLD | NEW |