Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: chrome/browser/ui/views/browser_dialogs_views_mac.cc

Issue 1870533002: Convert ContentSettingBubbleContents to a BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac views Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc ('k') | chrome/browser/ui/views/content_setting_bubble_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698