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

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

Issue 10409022: Move application lifetime functionality off BrowserList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/browser/ui/browser_list_win.cc ('k') | chrome/browser/ui/cocoa/restart_browser.mm » ('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/ui/base_window.h" 11 #include "chrome/browser/ui/base_window.h"
11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
13 #include "chrome/common/content_settings_types.h" 14 #include "chrome/common/content_settings_types.h"
14 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
15 #include "webkit/glue/window_open_disposition.h" 16 #include "webkit/glue/window_open_disposition.h"
16 17
17 class Browser; 18 class Browser;
18 class BrowserWindowTesting; 19 class BrowserWindowTesting;
19 class DownloadShelf; 20 class DownloadShelf;
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 353
353 // Shows the avatar bubble on the window frame off of the avatar button. 354 // Shows the avatar bubble on the window frame off of the avatar button.
354 virtual void ShowAvatarBubbleFromAvatarButton() = 0; 355 virtual void ShowAvatarBubbleFromAvatarButton() = 0;
355 356
356 // Show bubble for password generation positioned relative to |rect|. A stub 357 // Show bubble for password generation positioned relative to |rect|. A stub
357 // implementation is provided since this feature is currently only available 358 // implementation is provided since this feature is currently only available
358 // for Windows. 359 // for Windows.
359 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect) {} 360 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect) {}
360 361
361 protected: 362 protected:
362 friend class BrowserList; 363 friend void browser::CloseAllBrowsers();
363 friend class BrowserView; 364 friend class BrowserView;
364 virtual void DestroyBrowser() = 0; 365 virtual void DestroyBrowser() = 0;
365 }; 366 };
366 367
367 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) 368 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS)
368 class BookmarkBarView; 369 class BookmarkBarView;
369 class LocationBarView; 370 class LocationBarView;
370 371
371 namespace views { 372 namespace views {
372 class View; 373 class View;
(...skipping 16 matching lines...) Expand all
389 390
390 // Returns the ToolbarView. 391 // Returns the ToolbarView.
391 virtual ToolbarView* GetToolbarView() const = 0; 392 virtual ToolbarView* GetToolbarView() const = 0;
392 #endif 393 #endif
393 394
394 protected: 395 protected:
395 virtual ~BrowserWindowTesting() {} 396 virtual ~BrowserWindowTesting() {}
396 }; 397 };
397 398
398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list_win.cc ('k') | chrome/browser/ui/cocoa/restart_browser.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698