| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #include "content/public/browser/notification_service.h" | 106 #include "content/public/browser/notification_service.h" |
| 107 #include "content/public/browser/render_frame_host.h" | 107 #include "content/public/browser/render_frame_host.h" |
| 108 #include "content/public/browser/render_view_host.h" | 108 #include "content/public/browser/render_view_host.h" |
| 109 #include "content/public/browser/user_metrics.h" | 109 #include "content/public/browser/user_metrics.h" |
| 110 #include "content/public/browser/web_contents.h" | 110 #include "content/public/browser/web_contents.h" |
| 111 #include "content/public/common/content_switches.h" | 111 #include "content/public/common/content_switches.h" |
| 112 #include "grit/chromium_strings.h" | 112 #include "grit/chromium_strings.h" |
| 113 #include "grit/generated_resources.h" | 113 #include "grit/generated_resources.h" |
| 114 #include "grit/locale_settings.h" | 114 #include "grit/locale_settings.h" |
| 115 #include "grit/theme_resources.h" | 115 #include "grit/theme_resources.h" |
| 116 #include "grit/ui_resources.h" | |
| 117 #include "grit/ui_strings.h" | 116 #include "grit/ui_strings.h" |
| 118 #include "grit/webkit_resources.h" | 117 #include "grit/webkit_resources.h" |
| 119 #include "ui/accessibility/ax_view_state.h" | 118 #include "ui/accessibility/ax_view_state.h" |
| 120 #include "ui/aura/client/window_tree_client.h" | 119 #include "ui/aura/client/window_tree_client.h" |
| 121 #include "ui/aura/window.h" | 120 #include "ui/aura/window.h" |
| 122 #include "ui/aura/window_tree_host.h" | 121 #include "ui/aura/window_tree_host.h" |
| 123 #include "ui/base/accelerators/accelerator.h" | 122 #include "ui/base/accelerators/accelerator.h" |
| 124 #include "ui/base/hit_test.h" | 123 #include "ui/base/hit_test.h" |
| 125 #include "ui/base/l10n/l10n_util.h" | 124 #include "ui/base/l10n/l10n_util.h" |
| 126 #include "ui/base/resource/resource_bundle.h" | 125 #include "ui/base/resource/resource_bundle.h" |
| 127 #include "ui/base/theme_provider.h" | 126 #include "ui/base/theme_provider.h" |
| 128 #include "ui/events/event_utils.h" | 127 #include "ui/events/event_utils.h" |
| 129 #include "ui/gfx/canvas.h" | 128 #include "ui/gfx/canvas.h" |
| 130 #include "ui/gfx/color_utils.h" | 129 #include "ui/gfx/color_utils.h" |
| 131 #include "ui/gfx/rect_conversions.h" | 130 #include "ui/gfx/rect_conversions.h" |
| 132 #include "ui/gfx/screen.h" | 131 #include "ui/gfx/screen.h" |
| 132 #include "ui/resources/grit/ui_resources.h" |
| 133 #include "ui/views/controls/button/menu_button.h" | 133 #include "ui/views/controls/button/menu_button.h" |
| 134 #include "ui/views/controls/textfield/textfield.h" | 134 #include "ui/views/controls/textfield/textfield.h" |
| 135 #include "ui/views/controls/webview/webview.h" | 135 #include "ui/views/controls/webview/webview.h" |
| 136 #include "ui/views/focus/external_focus_tracker.h" | 136 #include "ui/views/focus/external_focus_tracker.h" |
| 137 #include "ui/views/focus/view_storage.h" | 137 #include "ui/views/focus/view_storage.h" |
| 138 #include "ui/views/layout/grid_layout.h" | 138 #include "ui/views/layout/grid_layout.h" |
| 139 #include "ui/views/widget/native_widget.h" | 139 #include "ui/views/widget/native_widget.h" |
| 140 #include "ui/views/widget/root_view.h" | 140 #include "ui/views/widget/root_view.h" |
| 141 #include "ui/views/widget/widget.h" | 141 #include "ui/views/widget/widget.h" |
| 142 #include "ui/views/window/dialog_delegate.h" | 142 #include "ui/views/window/dialog_delegate.h" |
| (...skipping 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2547 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { | 2547 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { |
| 2548 gfx::Point icon_bottom( | 2548 gfx::Point icon_bottom( |
| 2549 toolbar_->location_bar()->GetLocationBarAnchorPoint()); | 2549 toolbar_->location_bar()->GetLocationBarAnchorPoint()); |
| 2550 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); | 2550 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); |
| 2551 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); | 2551 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); |
| 2552 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2552 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
| 2553 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2553 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
| 2554 } | 2554 } |
| 2555 return top_arrow_height; | 2555 return top_arrow_height; |
| 2556 } | 2556 } |
| OLD | NEW |