| 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" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 #include "ui/accessibility/ax_view_state.h" | 117 #include "ui/accessibility/ax_view_state.h" |
| 118 #include "ui/base/accelerators/accelerator.h" | 118 #include "ui/base/accelerators/accelerator.h" |
| 119 #include "ui/base/hit_test.h" | 119 #include "ui/base/hit_test.h" |
| 120 #include "ui/base/l10n/l10n_util.h" | 120 #include "ui/base/l10n/l10n_util.h" |
| 121 #include "ui/base/resource/resource_bundle.h" | 121 #include "ui/base/resource/resource_bundle.h" |
| 122 #include "ui/base/theme_provider.h" | 122 #include "ui/base/theme_provider.h" |
| 123 #include "ui/content_accelerators/accelerator_util.h" | 123 #include "ui/content_accelerators/accelerator_util.h" |
| 124 #include "ui/events/event_utils.h" | 124 #include "ui/events/event_utils.h" |
| 125 #include "ui/gfx/canvas.h" | 125 #include "ui/gfx/canvas.h" |
| 126 #include "ui/gfx/color_utils.h" | 126 #include "ui/gfx/color_utils.h" |
| 127 #include "ui/gfx/rect_conversions.h" | 127 #include "ui/gfx/geometry/rect_conversions.h" |
| 128 #include "ui/gfx/screen.h" | 128 #include "ui/gfx/screen.h" |
| 129 #include "ui/strings/grit/ui_strings.h" | 129 #include "ui/strings/grit/ui_strings.h" |
| 130 #include "ui/views/controls/button/menu_button.h" | 130 #include "ui/views/controls/button/menu_button.h" |
| 131 #include "ui/views/controls/textfield/textfield.h" | 131 #include "ui/views/controls/textfield/textfield.h" |
| 132 #include "ui/views/controls/webview/webview.h" | 132 #include "ui/views/controls/webview/webview.h" |
| 133 #include "ui/views/focus/external_focus_tracker.h" | 133 #include "ui/views/focus/external_focus_tracker.h" |
| 134 #include "ui/views/focus/view_storage.h" | 134 #include "ui/views/focus/view_storage.h" |
| 135 #include "ui/views/layout/grid_layout.h" | 135 #include "ui/views/layout/grid_layout.h" |
| 136 #include "ui/views/widget/native_widget.h" | 136 #include "ui/views/widget/native_widget.h" |
| 137 #include "ui/views/widget/root_view.h" | 137 #include "ui/views/widget/root_view.h" |
| (...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2574 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { | 2574 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { |
| 2575 gfx::Point icon_bottom( | 2575 gfx::Point icon_bottom( |
| 2576 toolbar_->location_bar()->GetLocationBarAnchorPoint()); | 2576 toolbar_->location_bar()->GetLocationBarAnchorPoint()); |
| 2577 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); | 2577 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); |
| 2578 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(nullptr)); | 2578 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(nullptr)); |
| 2579 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2579 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
| 2580 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2580 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
| 2581 } | 2581 } |
| 2582 return top_arrow_height; | 2582 return top_arrow_height; |
| 2583 } | 2583 } |
| OLD | NEW |