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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 11896021: Change the one-click sign in confirmation bubble into a modal dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | Annotate | Revision Log
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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 bool already_bookmarked) { 961 bool already_bookmarked) {
962 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); 962 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked);
963 } 963 }
964 964
965 void BrowserWindowGtk::ShowChromeToMobileBubble() { 965 void BrowserWindowGtk::ShowChromeToMobileBubble() {
966 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); 966 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble();
967 } 967 }
968 968
969 #if defined(ENABLE_ONE_CLICK_SIGNIN) 969 #if defined(ENABLE_ONE_CLICK_SIGNIN)
970 void BrowserWindowGtk::ShowOneClickSigninBubble( 970 void BrowserWindowGtk::ShowOneClickSigninBubble(
971 const StartSyncCallback& start_sync_callback) { 971 OneClickSigninBubbleType type,
972 const StartSyncCallback& start_sync_callback) {
972 new OneClickSigninBubbleGtk(this, start_sync_callback); 973 new OneClickSigninBubbleGtk(this, start_sync_callback);
973 } 974 }
974 #endif 975 #endif
975 976
976 bool BrowserWindowGtk::IsDownloadShelfVisible() const { 977 bool BrowserWindowGtk::IsDownloadShelfVisible() const {
977 return download_shelf_.get() && download_shelf_->IsShowing(); 978 return download_shelf_.get() && download_shelf_->IsShowing();
978 } 979 }
979 980
980 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { 981 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() {
981 if (!download_shelf_.get()) 982 if (!download_shelf_.get())
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 wm_type == ui::WM_OPENBOX || 2397 wm_type == ui::WM_OPENBOX ||
2397 wm_type == ui::WM_XFWM4); 2398 wm_type == ui::WM_XFWM4);
2398 } 2399 }
2399 2400
2400 // static 2401 // static
2401 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2402 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2402 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2403 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2403 browser_window_gtk->Init(); 2404 browser_window_gtk->Init();
2404 return browser_window_gtk; 2405 return browser_window_gtk;
2405 } 2406 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698