OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/app/chrome_command_ids.h" | 16 #include "chrome/app/chrome_command_ids.h" |
17 #include "chrome/app/chrome_dll_resource.h" | 17 #include "chrome/app/chrome_dll_resource.h" |
18 #include "chrome/browser/app_mode/app_mode_utils.h" | 18 #include "chrome/browser/app_mode/app_mode_utils.h" |
19 #include "chrome/browser/bookmarks/bookmark_utils.h" | 19 #include "chrome/browser/bookmarks/bookmark_utils.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/extensions/tab_helper.h" | 21 #include "chrome/browser/extensions/tab_helper.h" |
22 #include "chrome/browser/infobars/infobar_service.h" | 22 #include "chrome/browser/infobars/infobar_service.h" |
23 #include "chrome/browser/native_window_notification_source.h" | 23 #include "chrome/browser/native_window_notification_source.h" |
24 #include "chrome/browser/password_manager/password_manager.h" | 24 #include "chrome/browser/password_manager/password_manager.h" |
25 #include "chrome/browser/profiles/avatar_menu_model.h" | 25 #include "chrome/browser/profiles/avatar_menu_model.h" |
(...skipping 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2762 // The +1 in the next line creates a 1-px gap between icon and arrow tip. | 2762 // The +1 in the next line creates a 1-px gap between icon and arrow tip. |
2763 gfx::Point icon_bottom(0, location_icon_view->GetImageBounds().bottom() - | 2763 gfx::Point icon_bottom(0, location_icon_view->GetImageBounds().bottom() - |
2764 LocationBarView::kIconInternalPadding + 1); | 2764 LocationBarView::kIconInternalPadding + 1); |
2765 ConvertPointToTarget(location_icon_view, this, &icon_bottom); | 2765 ConvertPointToTarget(location_icon_view, this, &icon_bottom); |
2766 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); | 2766 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); |
2767 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2767 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
2768 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2768 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
2769 } | 2769 } |
2770 return top_arrow_height; | 2770 return top_arrow_height; |
2771 } | 2771 } |
OLD | NEW |