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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 #include "ui/base/accelerators/accelerator.h" | 121 #include "ui/base/accelerators/accelerator.h" |
122 #include "ui/base/hit_test.h" | 122 #include "ui/base/hit_test.h" |
123 #include "ui/base/l10n/l10n_util.h" | 123 #include "ui/base/l10n/l10n_util.h" |
124 #include "ui/base/resource/resource_bundle.h" | 124 #include "ui/base/resource/resource_bundle.h" |
125 #include "ui/base/theme_provider.h" | 125 #include "ui/base/theme_provider.h" |
126 #include "ui/events/event_utils.h" | 126 #include "ui/events/event_utils.h" |
127 #include "ui/gfx/canvas.h" | 127 #include "ui/gfx/canvas.h" |
128 #include "ui/gfx/color_utils.h" | 128 #include "ui/gfx/color_utils.h" |
129 #include "ui/gfx/rect_conversions.h" | 129 #include "ui/gfx/rect_conversions.h" |
130 #include "ui/gfx/screen.h" | 130 #include "ui/gfx/screen.h" |
131 #include "ui/resources/grit/ui_resources.h" | |
132 #include "ui/strings/grit/ui_strings.h" | 131 #include "ui/strings/grit/ui_strings.h" |
133 #include "ui/views/controls/button/menu_button.h" | 132 #include "ui/views/controls/button/menu_button.h" |
134 #include "ui/views/controls/textfield/textfield.h" | 133 #include "ui/views/controls/textfield/textfield.h" |
135 #include "ui/views/controls/webview/webview.h" | 134 #include "ui/views/controls/webview/webview.h" |
136 #include "ui/views/focus/external_focus_tracker.h" | 135 #include "ui/views/focus/external_focus_tracker.h" |
137 #include "ui/views/focus/view_storage.h" | 136 #include "ui/views/focus/view_storage.h" |
138 #include "ui/views/layout/grid_layout.h" | 137 #include "ui/views/layout/grid_layout.h" |
139 #include "ui/views/widget/native_widget.h" | 138 #include "ui/views/widget/native_widget.h" |
140 #include "ui/views/widget/root_view.h" | 139 #include "ui/views/widget/root_view.h" |
141 #include "ui/views/widget/widget.h" | 140 #include "ui/views/widget/widget.h" |
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2557 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { | 2556 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { |
2558 gfx::Point icon_bottom( | 2557 gfx::Point icon_bottom( |
2559 toolbar_->location_bar()->GetLocationBarAnchorPoint()); | 2558 toolbar_->location_bar()->GetLocationBarAnchorPoint()); |
2560 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); | 2559 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); |
2561 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); | 2560 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); |
2562 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2561 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
2563 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2562 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
2564 } | 2563 } |
2565 return top_arrow_height; | 2564 return top_arrow_height; |
2566 } | 2565 } |
OLD | NEW |