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

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: Fix mac compiler error 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
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.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 #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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class Rect; 43 class Rect;
44 class Size; 44 class Size;
45 } 45 }
46 46
47 47
48 enum DevToolsDockSide { 48 enum DevToolsDockSide {
49 DEVTOOLS_DOCK_SIDE_BOTTOM = 0, 49 DEVTOOLS_DOCK_SIDE_BOTTOM = 0,
50 DEVTOOLS_DOCK_SIDE_RIGHT = 1 50 DEVTOOLS_DOCK_SIDE_RIGHT = 1
51 }; 51 };
52 52
53 // Callback type used with the ShowOneClickSigninBubble() method of class
54 // BrowserWindow. If the user chooses to accept the sign in, the callback
55 // is called. The boolean argument is true if the default sync settings should
56 // be used, and false if the user wants to configure the settings.
57 typedef base::Callback<void(bool)> OneClickSigninBubbleCallback;
akalin 2012/05/23 21:15:48 I'm sorry to be a stickler about this, but: - Wha
Roger Tawa OOO till Jul 10th 2012/05/24 14:38:59 Sorry Fred, my bad. I was going to do the enum bu
58
53 //////////////////////////////////////////////////////////////////////////////// 59 ////////////////////////////////////////////////////////////////////////////////
54 // BrowserWindow interface 60 // BrowserWindow interface
55 // An interface implemented by the "view" of the Browser window. 61 // An interface implemented by the "view" of the Browser window.
56 // This interface includes BaseWindow methods as well as Browser window 62 // This interface includes BaseWindow methods as well as Browser window
57 // specific methods. 63 // specific methods.
58 // 64 //
59 // NOTE: All getters may return NULL. 65 // NOTE: All getters may return NULL.
60 // 66 //
61 class BrowserWindow : public BaseWindow { 67 class BrowserWindow : public BaseWindow {
62 public: 68 public:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual void ShowBackgroundPages() = 0; 220 virtual void ShowBackgroundPages() = 0;
215 221
216 // Shows the Bookmark bubble. |url| is the URL being bookmarked, 222 // Shows the Bookmark bubble. |url| is the URL being bookmarked,
217 // |already_bookmarked| is true if the url is already bookmarked. 223 // |already_bookmarked| is true if the url is already bookmarked.
218 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; 224 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0;
219 225
220 // Shows the Chrome To Mobile bubble. 226 // Shows the Chrome To Mobile bubble.
221 virtual void ShowChromeToMobileBubble() = 0; 227 virtual void ShowChromeToMobileBubble() = 0;
222 228
223 #if defined(ENABLE_ONE_CLICK_SIGNIN) 229 #if defined(ENABLE_ONE_CLICK_SIGNIN)
224 // Shows the one-click sign in bubble. The given closures are run 230 // Shows the one-click sign in bubble. If the user chooses to accept the
225 // when their corresponding links are clicked. 231 // sign in, |start_sync_callback| is called.
226 virtual void ShowOneClickSigninBubble( 232 virtual void ShowOneClickSigninBubble(
227 const base::Closure& learn_more_callback, 233 const OneClickSigninBubbleCallback& 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
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698