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

Side by Side Diff: chrome/browser/ui/browser_window.h

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
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 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback_forward.h"
9 #include "chrome/browser/ui/base_window.h" 10 #include "chrome/browser/ui/base_window.h"
10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
11 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
12 #include "chrome/common/content_settings_types.h" 13 #include "chrome/common/content_settings_types.h"
13 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
14 #include "webkit/glue/window_open_disposition.h" 15 #include "webkit/glue/window_open_disposition.h"
15 16
16 class Browser; 17 class Browser;
17 class BrowserWindowTesting; 18 class BrowserWindowTesting;
18 class DownloadShelf; 19 class DownloadShelf;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 virtual void ShowBackgroundPages() = 0; 211 virtual void ShowBackgroundPages() = 0;
211 212
212 // Shows the Bookmark bubble. |url| is the URL being bookmarked, 213 // Shows the Bookmark bubble. |url| is the URL being bookmarked,
213 // |already_bookmarked| is true if the url is already bookmarked. 214 // |already_bookmarked| is true if the url is already bookmarked.
214 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; 215 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0;
215 216
216 // Shows the Chrome To Mobile bubble. 217 // Shows the Chrome To Mobile bubble.
217 virtual void ShowChromeToMobileBubble() = 0; 218 virtual void ShowChromeToMobileBubble() = 0;
218 219
219 #if defined(ENABLE_ONE_CLICK_SIGNIN) 220 #if defined(ENABLE_ONE_CLICK_SIGNIN)
220 // Shows the one-click sign in bubble. 221 // Shows the one-click sign in bubble. The given closures are run
221 virtual void ShowOneClickSigninBubble() = 0; 222 // when their corresponding links are clicked.
223 virtual void ShowOneClickSigninBubble(
224 const base::Closure& learn_more_callback,
225 const base::Closure& advanced_callback) = 0;
222 #endif 226 #endif
223 227
224 // Whether or not the shelf view is visible. 228 // Whether or not the shelf view is visible.
225 virtual bool IsDownloadShelfVisible() const = 0; 229 virtual bool IsDownloadShelfVisible() const = 0;
226 230
227 // Returns the DownloadShelf. 231 // Returns the DownloadShelf.
228 virtual DownloadShelf* GetDownloadShelf() = 0; 232 virtual DownloadShelf* GetDownloadShelf() = 0;
229 233
230 // Shows the confirmation dialog box warning that the browser is closing with 234 // Shows the confirmation dialog box warning that the browser is closing with
231 // in-progress downloads. 235 // in-progress downloads.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 396
393 // Returns the ToolbarView. 397 // Returns the ToolbarView.
394 virtual ToolbarView* GetToolbarView() const = 0; 398 virtual ToolbarView* GetToolbarView() const = 0;
395 #endif 399 #endif
396 400
397 protected: 401 protected:
398 virtual ~BrowserWindowTesting() {} 402 virtual ~BrowserWindowTesting() {}
399 }; 403 };
400 404
401 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 405 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/OneClickSigninBubble.xib ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698