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

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

Issue 9863032: [Sync] [Mac] Implement one-click signin bubble for OS X (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address sky's comments Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <dlfcn.h> 7 #include <dlfcn.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, 1072 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url,
1073 bool already_bookmarked) { 1073 bool already_bookmarked) {
1074 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); 1074 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked);
1075 } 1075 }
1076 1076
1077 void BrowserWindowGtk::ShowChromeToMobileBubble() { 1077 void BrowserWindowGtk::ShowChromeToMobileBubble() {
1078 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); 1078 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble();
1079 } 1079 }
1080 1080
1081 #if defined(ENABLE_ONE_CLICK_SIGNIN) 1081 #if defined(ENABLE_ONE_CLICK_SIGNIN)
1082 void BrowserWindowGtk::ShowOneClickSigninBubble() { 1082 void BrowserWindowGtk::ShowOneClickSigninBubble(
1083 const base::Closure& learn_more_callback,
1084 const base::Closure& advanced_callback) {
1083 // TODO(rogerta): will be implemented when the one-click feature is done on 1085 // TODO(rogerta): will be implemented when the one-click feature is done on
1084 // linux. 1086 // linux.
1085 NOTIMPLEMENTED(); 1087 NOTIMPLEMENTED();
1086 } 1088 }
1087 #endif 1089 #endif
1088 1090
1089 bool BrowserWindowGtk::IsDownloadShelfVisible() const { 1091 bool BrowserWindowGtk::IsDownloadShelfVisible() const {
1090 return download_shelf_.get() && download_shelf_->IsShowing(); 1092 return download_shelf_.get() && download_shelf_->IsShowing();
1091 } 1093 }
1092 1094
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 wm_type == ui::WM_OPENBOX || 2578 wm_type == ui::WM_OPENBOX ||
2577 wm_type == ui::WM_XFWM4); 2579 wm_type == ui::WM_XFWM4);
2578 } 2580 }
2579 2581
2580 // static 2582 // static
2581 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2583 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2582 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2584 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2583 browser_window_gtk->Init(); 2585 browser_window_gtk->Init();
2584 return browser_window_gtk; 2586 return browser_window_gtk;
2585 } 2587 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698