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

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

Issue 10332185: Update behavior of one-click infobar to remove modal dialog, add "undo". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add enum Created 8 years, 7 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 "base/callback_forward.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 10 #include "chrome/browser/lifetime/application_lifetime.h"
11 #include "chrome/browser/ui/base_window.h" 11 #include "chrome/browser/ui/base_window.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
14 #include "chrome/common/content_settings_types.h" 15 #include "chrome/common/content_settings_types.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
17 18
18 class Browser; 19 class Browser;
19 class BrowserWindowTesting; 20 class BrowserWindowTesting;
20 class DownloadShelf; 21 class DownloadShelf;
21 class FindBar; 22 class FindBar;
22 class GURL; 23 class GURL;
23 class LocationBar; 24 class LocationBar;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual void ShowBackgroundPages() = 0; 215 virtual void ShowBackgroundPages() = 0;
215 216
216 // Shows the Bookmark bubble. |url| is the URL being bookmarked, 217 // Shows the Bookmark bubble. |url| is the URL being bookmarked,
217 // |already_bookmarked| is true if the url is already bookmarked. 218 // |already_bookmarked| is true if the url is already bookmarked.
218 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; 219 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0;
219 220
220 // Shows the Chrome To Mobile bubble. 221 // Shows the Chrome To Mobile bubble.
221 virtual void ShowChromeToMobileBubble() = 0; 222 virtual void ShowChromeToMobileBubble() = 0;
222 223
223 #if defined(ENABLE_ONE_CLICK_SIGNIN) 224 #if defined(ENABLE_ONE_CLICK_SIGNIN)
224 // Shows the one-click sign in bubble. The given closures are run 225 // Callback type used with the ShowOneClickSigninBubble() method. If the
225 // when their corresponding links are clicked. 226 // user chooses to accept the sign in, the callback is called to start the
227 // sync process.
228 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)>
229 StartSyncCallback;
230
231 // Shows the one-click sign in bubble.
226 virtual void ShowOneClickSigninBubble( 232 virtual void ShowOneClickSigninBubble(
227 const base::Closure& learn_more_callback, 233 const StartSyncCallback& start_sync_callback) = 0;
228 const base::Closure& advanced_callback) = 0;
229 #endif 234 #endif
230 235
231 // Whether or not the shelf view is visible. 236 // Whether or not the shelf view is visible.
232 virtual bool IsDownloadShelfVisible() const = 0; 237 virtual bool IsDownloadShelfVisible() const = 0;
233 238
234 // Returns the DownloadShelf. 239 // Returns the DownloadShelf.
235 virtual DownloadShelf* GetDownloadShelf() = 0; 240 virtual DownloadShelf* GetDownloadShelf() = 0;
236 241
237 // Shows the confirmation dialog box warning that the browser is closing with 242 // Shows the confirmation dialog box warning that the browser is closing with
238 // in-progress downloads. 243 // in-progress downloads.
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 399
395 // Returns the ToolbarView. 400 // Returns the ToolbarView.
396 virtual ToolbarView* GetToolbarView() const = 0; 401 virtual ToolbarView* GetToolbarView() const = 0;
397 #endif 402 #endif
398 403
399 protected: 404 protected:
400 virtual ~BrowserWindowTesting() {} 405 virtual ~BrowserWindowTesting() {}
401 }; 406 };
402 407
403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698