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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #include "ui/views/focus/external_focus_tracker.h" | 126 #include "ui/views/focus/external_focus_tracker.h" |
127 #include "ui/views/focus/view_storage.h" | 127 #include "ui/views/focus/view_storage.h" |
128 #include "ui/views/layout/grid_layout.h" | 128 #include "ui/views/layout/grid_layout.h" |
129 #include "ui/views/widget/native_widget.h" | 129 #include "ui/views/widget/native_widget.h" |
130 #include "ui/views/widget/root_view.h" | 130 #include "ui/views/widget/root_view.h" |
131 #include "ui/views/widget/widget.h" | 131 #include "ui/views/widget/widget.h" |
132 #include "ui/views/window/dialog_delegate.h" | 132 #include "ui/views/window/dialog_delegate.h" |
133 | 133 |
134 #if defined(USE_ASH) | 134 #if defined(USE_ASH) |
135 #include "ash/ash_switches.h" | 135 #include "ash/ash_switches.h" |
136 #include "ash/launcher/launcher.h" | 136 #include "ash/shelf/shelf.h" |
137 #include "ash/shelf/shelf_model.h" | 137 #include "ash/shelf/shelf_model.h" |
138 #include "ash/shell.h" | 138 #include "ash/shell.h" |
139 #include "chrome/browser/ui/ash/ash_util.h" | 139 #include "chrome/browser/ui/ash/ash_util.h" |
140 #endif | 140 #endif |
141 | 141 |
142 #if defined(USE_AURA) | 142 #if defined(USE_AURA) |
143 #include "ui/aura/window.h" | 143 #include "ui/aura/window.h" |
144 #include "ui/gfx/screen.h" | 144 #include "ui/gfx/screen.h" |
145 #elif defined(OS_WIN) // !defined(USE_AURA) | 145 #elif defined(OS_WIN) // !defined(USE_AURA) |
146 #include "chrome/browser/jumplist_win.h" | 146 #include "chrome/browser/jumplist_win.h" |
(...skipping 2524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2671 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { | 2671 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { |
2672 gfx::Point icon_bottom( | 2672 gfx::Point icon_bottom( |
2673 toolbar_->location_bar()->GetLocationBarAnchorPoint()); | 2673 toolbar_->location_bar()->GetLocationBarAnchorPoint()); |
2674 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); | 2674 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); |
2675 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); | 2675 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); |
2676 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2676 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
2677 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2677 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
2678 } | 2678 } |
2679 return top_arrow_height; | 2679 return top_arrow_height; |
2680 } | 2680 } |
OLD | NEW |