OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/website_settings/chooser_bubble_ui_view.h" | 5 #include "chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/views/exclusive_access_bubble_views.h" | 14 #include "chrome/browser/ui/views/exclusive_access_bubble_views.h" |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "chrome/browser/ui/views/frame/top_container_view.h" | 16 #include "chrome/browser/ui/views/frame/top_container_view.h" |
16 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 17 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
17 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" | 18 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" |
18 #include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h" | 19 #include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h" |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 return browser_view->exclusive_access_bubble()->GetView(); | 398 return browser_view->exclusive_access_bubble()->GetView(); |
398 | 399 |
399 return browser_view->top_container(); | 400 return browser_view->top_container(); |
400 } | 401 } |
401 | 402 |
402 views::BubbleBorder::Arrow ChooserBubbleUiView::GetAnchorArrow() { | 403 views::BubbleBorder::Arrow ChooserBubbleUiView::GetAnchorArrow() { |
403 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) | 404 if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) |
404 return views::BubbleBorder::TOP_LEFT; | 405 return views::BubbleBorder::TOP_LEFT; |
405 return views::BubbleBorder::NONE; | 406 return views::BubbleBorder::NONE; |
406 } | 407 } |
OLD | NEW |