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

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

Issue 2652823003: Add "Relaunch Chrome" dialog to Mac Views. (Closed)
Patch Set: Fix nits Created 3 years, 11 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
« no previous file with comments | « chrome/browser/ui/update_chrome_dialog_browsertest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "chrome/browser/ui/views/content_setting_bubble_contents.h" 11 #include "chrome/browser/ui/views/content_setting_bubble_contents.h"
12 #include "chrome/browser/ui/views/task_manager_view.h" 12 #include "chrome/browser/ui/views/task_manager_view.h"
13 #include "chrome/browser/ui/views/update_recommended_message_box.h"
13 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h " 14 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h "
14 15
15 // This file provides definitions of desktop browser dialog-creation methods for 16 // This file provides definitions of desktop browser dialog-creation methods for
16 // Mac where a Cocoa browser is using Views dialogs. I.e. it is included in the 17 // Mac where a Cocoa browser is using Views dialogs. I.e. it is included in the
17 // Cocoa build and definitions under chrome/browser/ui/cocoa may select at 18 // Cocoa build and definitions under chrome/browser/ui/cocoa may select at
18 // runtime whether to show a Cocoa dialog, or the toolkit-views dialog defined 19 // runtime whether to show a Cocoa dialog, or the toolkit-views dialog defined
19 // here (declared in browser_dialogs.h). 20 // here (declared in browser_dialogs.h).
20 21
21 namespace chrome { 22 namespace chrome {
22 23
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 content::WebContents* web_contents, 72 content::WebContents* web_contents,
72 const gfx::Point& anchor) { 73 const gfx::Point& anchor) {
73 ContentSettingBubbleContents* contents = 74 ContentSettingBubbleContents* contents =
74 new ContentSettingBubbleContents(model, web_contents, nullptr, 75 new ContentSettingBubbleContents(model, web_contents, nullptr,
75 views::BubbleBorder::Arrow::TOP_RIGHT); 76 views::BubbleBorder::Arrow::TOP_RIGHT);
76 contents->set_parent_window(parent_view); 77 contents->set_parent_window(parent_view);
77 contents->SetAnchorRect(gfx::Rect(anchor, gfx::Size())); 78 contents->SetAnchorRect(gfx::Rect(anchor, gfx::Size()));
78 views::BubbleDialogDelegateView::CreateBubble(contents)->Show(); 79 views::BubbleDialogDelegateView::CreateBubble(contents)->Show();
79 } 80 }
80 81
82 void ShowUpdateChromeDialogViews(gfx::NativeWindow parent) {
83 UpdateRecommendedMessageBox::Show(parent);
84 }
85
81 } // namespace chrome 86 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/update_chrome_dialog_browsertest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698