| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/bookmarks/bookmark_bar_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/ui/view_ids.h" | 30 #include "chrome/browser/ui/view_ids.h" |
| 31 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h" | 31 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h" |
| 32 #include "chrome/browser/ui/views/event_utils.h" | 32 #include "chrome/browser/ui/views/event_utils.h" |
| 33 #include "chrome/browser/ui/views/frame/browser_view.h" | 33 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 34 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 34 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 35 #include "chrome/common/chrome_notification_types.h" | 35 #include "chrome/common/chrome_notification_types.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "chrome/common/pref_names.h" | 38 #include "chrome/common/pref_names.h" |
| 39 #include "content/browser/renderer_host/render_view_host.h" | 39 #include "content/browser/renderer_host/render_view_host.h" |
| 40 #include "content/browser/renderer_host/render_widget_host_view.h" | |
| 41 #include "content/public/browser/notification_details.h" | 40 #include "content/public/browser/notification_details.h" |
| 42 #include "content/public/browser/notification_source.h" | 41 #include "content/public/browser/notification_source.h" |
| 43 #include "content/public/browser/page_navigator.h" | 42 #include "content/public/browser/page_navigator.h" |
| 43 #include "content/public/browser/render_widget_host_view.h" |
| 44 #include "content/public/browser/user_metrics.h" | 44 #include "content/public/browser/user_metrics.h" |
| 45 #include "content/public/browser/web_contents.h" | 45 #include "content/public/browser/web_contents.h" |
| 46 #include "content/public/common/page_transition_types.h" | 46 #include "content/public/common/page_transition_types.h" |
| 47 #include "grit/generated_resources.h" | 47 #include "grit/generated_resources.h" |
| 48 #include "grit/theme_resources.h" | 48 #include "grit/theme_resources.h" |
| 49 #include "grit/ui_resources.h" | 49 #include "grit/ui_resources.h" |
| 50 #include "ui/base/accessibility/accessible_view_state.h" | 50 #include "ui/base/accessibility/accessible_view_state.h" |
| 51 #include "ui/base/animation/slide_animation.h" | 51 #include "ui/base/animation/slide_animation.h" |
| 52 #include "ui/base/dragdrop/os_exchange_data.h" | 52 #include "ui/base/dragdrop/os_exchange_data.h" |
| 53 #include "ui/base/l10n/l10n_util.h" | 53 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 (1 - size_animation_->GetCurrentValue()))); | 1662 (1 - size_animation_->GetCurrentValue()))); |
| 1663 } else { | 1663 } else { |
| 1664 prefsize.set_height( | 1664 prefsize.set_height( |
| 1665 static_cast<int>( | 1665 static_cast<int>( |
| 1666 browser_defaults::kBookmarkBarHeight * | 1666 browser_defaults::kBookmarkBarHeight * |
| 1667 size_animation_->GetCurrentValue())); | 1667 size_animation_->GetCurrentValue())); |
| 1668 } | 1668 } |
| 1669 } | 1669 } |
| 1670 return prefsize; | 1670 return prefsize; |
| 1671 } | 1671 } |
| OLD | NEW |