| OLD | NEW |
| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 671 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
| 672 bool blocked) OVERRIDE; | 672 bool blocked) OVERRIDE; |
| 673 virtual web_modal::WebContentsModalDialogHost* | 673 virtual web_modal::WebContentsModalDialogHost* |
| 674 GetWebContentsModalDialogHost() OVERRIDE; | 674 GetWebContentsModalDialogHost() OVERRIDE; |
| 675 | 675 |
| 676 // Overridden from BookmarkTabHelperDelegate: | 676 // Overridden from BookmarkTabHelperDelegate: |
| 677 virtual void URLStarredChanged(content::WebContents* web_contents, | 677 virtual void URLStarredChanged(content::WebContents* web_contents, |
| 678 bool starred) OVERRIDE; | 678 bool starred) OVERRIDE; |
| 679 | 679 |
| 680 // Overridden from ZoomObserver: | 680 // Overridden from ZoomObserver: |
| 681 virtual void OnZoomChanged(content::WebContents* source, | 681 virtual void OnZoomChanged(const OnZoomChangedEventData& data) OVERRIDE; |
| 682 bool can_show_bubble) OVERRIDE; | |
| 683 | 682 |
| 684 // Overridden from SelectFileDialog::Listener: | 683 // Overridden from SelectFileDialog::Listener: |
| 685 virtual void FileSelected(const base::FilePath& path, | 684 virtual void FileSelected(const base::FilePath& path, |
| 686 int index, | 685 int index, |
| 687 void* params) OVERRIDE; | 686 void* params) OVERRIDE; |
| 688 virtual void FileSelectedWithExtraInfo( | 687 virtual void FileSelectedWithExtraInfo( |
| 689 const ui::SelectedFileInfo& file_info, | 688 const ui::SelectedFileInfo& file_info, |
| 690 int index, | 689 int index, |
| 691 void* params) OVERRIDE; | 690 void* params) OVERRIDE; |
| 692 | 691 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 // In-progress download termination handling ///////////////////////////////// | 746 // In-progress download termination handling ///////////////////////////////// |
| 748 | 747 |
| 749 // Called when the window is closing to check if potential in-progress | 748 // Called when the window is closing to check if potential in-progress |
| 750 // downloads should prevent it from closing. | 749 // downloads should prevent it from closing. |
| 751 // Returns true if the window can close, false otherwise. | 750 // Returns true if the window can close, false otherwise. |
| 752 bool CanCloseWithInProgressDownloads(); | 751 bool CanCloseWithInProgressDownloads(); |
| 753 | 752 |
| 754 // Assorted utility functions /////////////////////////////////////////////// | 753 // Assorted utility functions /////////////////////////////////////////////// |
| 755 | 754 |
| 756 // Sets the specified browser as the delegate of the WebContents and all the | 755 // Sets the specified browser as the delegate of the WebContents and all the |
| 757 // associated tab helpers that are needed. | 756 // associated tab helpers that are needed. If |set_delegate| is true, this |
| 758 void SetAsDelegate(content::WebContents* web_contents, Browser* delegate); | 757 // browser object is set as a delegate for |web_contents| components, else |
| 758 // is is removed as a delegate. |
| 759 void SetAsDelegate(content::WebContents* web_contents, bool set_delegate); |
| 759 | 760 |
| 760 // Shows the Find Bar, optionally selecting the next entry that matches the | 761 // Shows the Find Bar, optionally selecting the next entry that matches the |
| 761 // existing search string for that Tab. |forward_direction| controls the | 762 // existing search string for that Tab. |forward_direction| controls the |
| 762 // search direction. | 763 // search direction. |
| 763 void FindInPage(bool find_next, bool forward_direction); | 764 void FindInPage(bool find_next, bool forward_direction); |
| 764 | 765 |
| 765 // Closes the frame. | 766 // Closes the frame. |
| 766 // TODO(beng): figure out if we need this now that the frame itself closes | 767 // TODO(beng): figure out if we need this now that the frame itself closes |
| 767 // after a return to the message loop. | 768 // after a return to the message loop. |
| 768 void CloseFrame(); | 769 void CloseFrame(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 base::WeakPtrFactory<Browser> weak_factory_; | 936 base::WeakPtrFactory<Browser> weak_factory_; |
| 936 | 937 |
| 937 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_; | 938 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_; |
| 938 | 939 |
| 939 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; | 940 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; |
| 940 | 941 |
| 941 DISALLOW_COPY_AND_ASSIGN(Browser); | 942 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 942 }; | 943 }; |
| 943 | 944 |
| 944 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 945 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |