| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 void OpenClearBrowsingDataDialog(); | 374 void OpenClearBrowsingDataDialog(); |
| 375 void OpenOptionsDialog(); | 375 void OpenOptionsDialog(); |
| 376 #if defined(OS_WIN) | 376 #if defined(OS_WIN) |
| 377 void OpenKeywordEditor(); | 377 void OpenKeywordEditor(); |
| 378 void OpenPasswordManager(); | 378 void OpenPasswordManager(); |
| 379 #endif | 379 #endif |
| 380 void OpenImportSettingsDialog(); | 380 void OpenImportSettingsDialog(); |
| 381 void OpenAboutChromeDialog(); | 381 void OpenAboutChromeDialog(); |
| 382 void OpenHelpTab(); | 382 void OpenHelpTab(); |
| 383 | 383 |
| 384 virtual void OnStartDownload(DownloadItem* download); |
| 385 virtual void UpdateDownloadShelfVisibility(bool visible); |
| 386 |
| 384 ///////////////////////////////////////////////////////////////////////////// | 387 ///////////////////////////////////////////////////////////////////////////// |
| 385 | 388 |
| 386 static void RegisterPrefs(PrefService* prefs); | 389 static void RegisterPrefs(PrefService* prefs); |
| 387 static void RegisterUserPrefs(PrefService* prefs); | 390 static void RegisterUserPrefs(PrefService* prefs); |
| 388 | 391 |
| 389 // Returns the Browser which contains the tab with the given | 392 // Returns the Browser which contains the tab with the given |
| 390 // NavigationController, also filling in |index| (if valid) with the tab's | 393 // NavigationController, also filling in |index| (if valid) with the tab's |
| 391 // index in the tab strip. | 394 // index in the tab strip. |
| 392 // Returns NULL if not found. | 395 // Returns NULL if not found. |
| 393 // This call is O(N) in the number of tabs. | 396 // This call is O(N) in the number of tabs. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 477 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 475 virtual void DetachContents(TabContents* source); | 478 virtual void DetachContents(TabContents* source); |
| 476 virtual bool IsPopup(TabContents* source); | 479 virtual bool IsPopup(TabContents* source); |
| 477 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 480 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
| 478 virtual void URLStarredChanged(TabContents* source, bool starred); | 481 virtual void URLStarredChanged(TabContents* source, bool starred); |
| 479 | 482 |
| 480 // A mouse event occurred; motion==true is mouse movement, motion==false | 483 // A mouse event occurred; motion==true is mouse movement, motion==false |
| 481 // is the mouse leaving the view. | 484 // is the mouse leaving the view. |
| 482 virtual void ContentsMouseEvent(TabContents* source, bool motion); | 485 virtual void ContentsMouseEvent(TabContents* source, bool motion); |
| 483 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 486 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
| 484 virtual void UpdateDownloadShelfVisibility(bool visible); | |
| 485 | 487 |
| 486 virtual void ContentsZoomChange(bool zoom_in); | 488 virtual void ContentsZoomChange(bool zoom_in); |
| 487 virtual bool IsApplication() const; | 489 virtual bool IsApplication() const; |
| 488 virtual void ConvertContentsToApplication(TabContents* source); | 490 virtual void ConvertContentsToApplication(TabContents* source); |
| 489 virtual bool ShouldDisplayURLField(); | 491 virtual bool ShouldDisplayURLField(); |
| 490 virtual void BeforeUnloadFired(TabContents* source, | 492 virtual void BeforeUnloadFired(TabContents* source, |
| 491 bool proceed, | 493 bool proceed, |
| 492 bool* proceed_to_fire_unload); | 494 bool* proceed_to_fire_unload); |
| 493 virtual gfx::Rect GetRootWindowResizerRect() const; | 495 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 494 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 496 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 // The browser idle task helps cleanup unused memory resources when idle. | 776 // The browser idle task helps cleanup unused memory resources when idle. |
| 775 scoped_ptr<BrowserIdleTimer> idle_task_; | 777 scoped_ptr<BrowserIdleTimer> idle_task_; |
| 776 | 778 |
| 777 // Keep track of the encoding auto detect pref. | 779 // Keep track of the encoding auto detect pref. |
| 778 BooleanPrefMember encoding_auto_detect_; | 780 BooleanPrefMember encoding_auto_detect_; |
| 779 | 781 |
| 780 DISALLOW_COPY_AND_ASSIGN(Browser); | 782 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 781 }; | 783 }; |
| 782 | 784 |
| 783 #endif // CHROME_BROWSER_BROWSER_H_ | 785 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |