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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
746 | 746 |
747 // In-progress download termination handling ///////////////////////////////// | 747 // In-progress download termination handling ///////////////////////////////// |
748 | 748 |
749 // Called when the window is closing to check if potential in-progress | 749 // Called when the window is closing to check if potential in-progress |
750 // downloads should prevent it from closing. | 750 // downloads should prevent it from closing. |
751 // Returns true if the window can close, false otherwise. | 751 // Returns true if the window can close, false otherwise. |
752 bool CanCloseWithInProgressDownloads(); | 752 bool CanCloseWithInProgressDownloads(); |
753 | 753 |
754 // Assorted utility functions /////////////////////////////////////////////// | 754 // Assorted utility functions /////////////////////////////////////////////// |
755 | 755 |
756 // Sets/Clears this browser object as an observer on helpers of the web | |
757 // contents. | |
758 void SetAsObserver(content::WebContents* web_contents); | |
sky
2014/06/24 16:23:41
The name and this function and description imply s
wjmaclean
2014/06/24 18:04:07
It was the latter case that caused me to create th
| |
759 void ClearAsObserver(content::WebContents* web_contents); | |
760 | |
756 // Sets the specified browser as the delegate of the WebContents and all the | 761 // Sets the specified browser as the delegate of the WebContents and all the |
757 // associated tab helpers that are needed. | 762 // associated tab helpers that are needed. |
758 void SetAsDelegate(content::WebContents* web_contents, Browser* delegate); | 763 void SetAsDelegate(content::WebContents* web_contents, Browser* delegate); |
759 | 764 |
760 // Shows the Find Bar, optionally selecting the next entry that matches the | 765 // Shows the Find Bar, optionally selecting the next entry that matches the |
761 // existing search string for that Tab. |forward_direction| controls the | 766 // existing search string for that Tab. |forward_direction| controls the |
762 // search direction. | 767 // search direction. |
763 void FindInPage(bool find_next, bool forward_direction); | 768 void FindInPage(bool find_next, bool forward_direction); |
764 | 769 |
765 // Closes the frame. | 770 // Closes the frame. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
935 base::WeakPtrFactory<Browser> weak_factory_; | 940 base::WeakPtrFactory<Browser> weak_factory_; |
936 | 941 |
937 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_; | 942 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_; |
938 | 943 |
939 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; | 944 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; |
940 | 945 |
941 DISALLOW_COPY_AND_ASSIGN(Browser); | 946 DISALLOW_COPY_AND_ASSIGN(Browser); |
942 }; | 947 }; |
943 | 948 |
944 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 949 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |