| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h" | 7 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_dialogs.h" | 9 #include "chrome/browser/ui/browser_dialogs.h" |
| 10 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" | 10 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 void ContentSettingBubbleViewsBridge::Show(gfx::NativeView parent_view, | 48 void ContentSettingBubbleViewsBridge::Show(gfx::NativeView parent_view, |
| 49 ContentSettingBubbleModel* model, | 49 ContentSettingBubbleModel* model, |
| 50 content::WebContents* web_contents, | 50 content::WebContents* web_contents, |
| 51 const gfx::Point& anchor) { | 51 const gfx::Point& anchor) { |
| 52 ContentSettingBubbleContents* contents = | 52 ContentSettingBubbleContents* contents = |
| 53 new ContentSettingBubbleContents(model, web_contents, nullptr, | 53 new ContentSettingBubbleContents(model, web_contents, nullptr, |
| 54 views::BubbleBorder::Arrow::TOP_RIGHT); | 54 views::BubbleBorder::Arrow::TOP_RIGHT); |
| 55 contents->set_parent_window(parent_view); | 55 contents->set_parent_window(parent_view); |
| 56 contents->SetAnchorRect(gfx::Rect(anchor, gfx::Size())); | 56 contents->SetAnchorRect(gfx::Rect(anchor, gfx::Size())); |
| 57 views::BubbleDelegateView::CreateBubble(contents)->Show(); | 57 views::BubbleDialogDelegateView::CreateBubble(contents)->Show(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace chrome | 60 } // namespace chrome |
| OLD | NEW |