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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 1503583002: [Extensions Views] Update the extension installed bubble's sync promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years 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 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 24 matching lines...) Expand all
35 #include "chrome/browser/profiles/profile_window.h" 35 #include "chrome/browser/profiles/profile_window.h"
36 #include "chrome/browser/profiles/profiles_state.h" 36 #include "chrome/browser/profiles/profiles_state.h"
37 #include "chrome/browser/search/search.h" 37 #include "chrome/browser/search/search.h"
38 #include "chrome/browser/sessions/tab_restore_service_factory.h" 38 #include "chrome/browser/sessions/tab_restore_service_factory.h"
39 #include "chrome/browser/signin/chrome_signin_helper.h" 39 #include "chrome/browser/signin/chrome_signin_helper.h"
40 #include "chrome/browser/themes/theme_properties.h" 40 #include "chrome/browser/themes/theme_properties.h"
41 #include "chrome/browser/themes/theme_service_factory.h" 41 #include "chrome/browser/themes/theme_service_factory.h"
42 #include "chrome/browser/translate/chrome_translate_client.h" 42 #include "chrome/browser/translate/chrome_translate_client.h"
43 #include "chrome/browser/ui/ash/ash_util.h" 43 #include "chrome/browser/ui/ash/ash_util.h"
44 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" 44 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h"
45 #include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h"
46 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h" 45 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h"
47 #include "chrome/browser/ui/browser.h" 46 #include "chrome/browser/ui/browser.h"
48 #include "chrome/browser/ui/browser_command_controller.h" 47 #include "chrome/browser/ui/browser_command_controller.h"
49 #include "chrome/browser/ui/browser_commands.h" 48 #include "chrome/browser/ui/browser_commands.h"
50 #include "chrome/browser/ui/browser_dialogs.h" 49 #include "chrome/browser/ui/browser_dialogs.h"
51 #include "chrome/browser/ui/browser_finder.h" 50 #include "chrome/browser/ui/browser_finder.h"
52 #include "chrome/browser/ui/browser_list.h" 51 #include "chrome/browser/ui/browser_list.h"
53 #include "chrome/browser/ui/browser_window_state.h" 52 #include "chrome/browser/ui/browser_window_state.h"
54 #include "chrome/browser/ui/search/search_delegate.h" 53 #include "chrome/browser/ui/search/search_delegate.h"
55 #include "chrome/browser/ui/search/search_model.h" 54 #include "chrome/browser/ui/search/search_model.h"
56 #include "chrome/browser/ui/search/search_ui.h" 55 #include "chrome/browser/ui/search/search_ui.h"
56 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h"
57 #include "chrome/browser/ui/tabs/tab_menu_model.h" 57 #include "chrome/browser/ui/tabs/tab_menu_model.h"
58 #include "chrome/browser/ui/tabs/tab_strip_model.h" 58 #include "chrome/browser/ui/tabs/tab_strip_model.h"
59 #include "chrome/browser/ui/view_ids.h" 59 #include "chrome/browser/ui/view_ids.h"
60 #include "chrome/browser/ui/views/accelerator_table.h" 60 #include "chrome/browser/ui/views/accelerator_table.h"
61 #include "chrome/browser/ui/views/accessibility/invert_bubble_view.h" 61 #include "chrome/browser/ui/views/accessibility/invert_bubble_view.h"
62 #include "chrome/browser/ui/views/autofill/save_card_bubble_views.h" 62 #include "chrome/browser/ui/views/autofill/save_card_bubble_views.h"
63 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" 63 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
64 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" 64 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h"
65 #include "chrome/browser/ui/views/browser_dialogs.h" 65 #include "chrome/browser/ui/views/browser_dialogs.h"
66 #include "chrome/browser/ui/views/download/download_in_progress_dialog_view.h" 66 #include "chrome/browser/ui/views/download/download_in_progress_dialog_view.h"
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 Profile* profile) { 1291 Profile* profile) {
1292 chrome::EditSearchEngine(GetWidget()->GetNativeWindow(), template_url, 1292 chrome::EditSearchEngine(GetWidget()->GetNativeWindow(), template_url,
1293 nullptr, profile); 1293 nullptr, profile);
1294 } 1294 }
1295 1295
1296 void BrowserView::ShowUpdateChromeDialog() { 1296 void BrowserView::ShowUpdateChromeDialog() {
1297 UpdateRecommendedMessageBox::Show(GetWidget()->GetNativeWindow()); 1297 UpdateRecommendedMessageBox::Show(GetWidget()->GetNativeWindow());
1298 } 1298 }
1299 1299
1300 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { 1300 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {
1301 scoped_ptr<BookmarkBubbleDelegate> delegate; 1301 scoped_ptr<BubbleSyncPromoDelegate> delegate;
1302 delegate.reset(new BookmarkBubbleSignInDelegate(browser_.get())); 1302 delegate.reset(new BookmarkBubbleSignInDelegate(browser_.get()));
1303 1303
1304 BookmarkBubbleView::ShowBubble(GetToolbarView()->GetBookmarkBubbleAnchor(), 1304 BookmarkBubbleView::ShowBubble(GetToolbarView()->GetBookmarkBubbleAnchor(),
1305 gfx::Rect(), nullptr, bookmark_bar_view_.get(), 1305 gfx::Rect(), nullptr, bookmark_bar_view_.get(),
1306 delegate.Pass(), browser_->profile(), url, 1306 delegate.Pass(), browser_->profile(), url,
1307 already_bookmarked); 1307 already_bookmarked);
1308 } 1308 }
1309 1309
1310 void BrowserView::ShowBookmarkAppBubble( 1310 void BrowserView::ShowBookmarkAppBubble(
1311 const WebApplicationInfo& web_app_info, 1311 const WebApplicationInfo& web_app_info,
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2699 return immersive_mode_controller()->IsEnabled(); 2699 return immersive_mode_controller()->IsEnabled();
2700 } 2700 }
2701 2701
2702 views::Widget* BrowserView::GetBubbleAssociatedWidget() { 2702 views::Widget* BrowserView::GetBubbleAssociatedWidget() {
2703 return GetWidget(); 2703 return GetWidget();
2704 } 2704 }
2705 2705
2706 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { 2706 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() {
2707 return top_container_->GetBoundsInScreen(); 2707 return top_container_->GetBoundsInScreen();
2708 } 2708 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698