OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 const NotificationDetails& details); | 769 const NotificationDetails& details); |
770 | 770 |
771 // Overridden from ProfileSyncServiceObserver: | 771 // Overridden from ProfileSyncServiceObserver: |
772 virtual void OnStateChanged(); | 772 virtual void OnStateChanged(); |
773 | 773 |
774 // Overriden from MatchPreviewDelegate: | 774 // Overriden from MatchPreviewDelegate: |
775 virtual void ShowMatchPreview(); | 775 virtual void ShowMatchPreview(); |
776 virtual void HideMatchPreview(); | 776 virtual void HideMatchPreview(); |
777 virtual void CommitMatchPreview(); | 777 virtual void CommitMatchPreview(); |
778 virtual void SetSuggestedText(const string16& text); | 778 virtual void SetSuggestedText(const string16& text); |
| 779 virtual gfx::Rect GetMatchPreviewBounds(); |
779 | 780 |
780 // Command and state updating /////////////////////////////////////////////// | 781 // Command and state updating /////////////////////////////////////////////// |
781 | 782 |
782 // Initialize state for all browser commands. | 783 // Initialize state for all browser commands. |
783 void InitCommandState(); | 784 void InitCommandState(); |
784 | 785 |
785 // Update commands whose state depends on the tab's state. | 786 // Update commands whose state depends on the tab's state. |
786 void UpdateCommandsForTabState(); | 787 void UpdateCommandsForTabState(); |
787 | 788 |
788 // Update zoom commands based on the tab's state | 789 // Update zoom commands based on the tab's state |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 // The profile's tab restore service. The service is owned by the profile, | 1087 // The profile's tab restore service. The service is owned by the profile, |
1087 // and we install ourselves as an observer. | 1088 // and we install ourselves as an observer. |
1088 TabRestoreService* tab_restore_service_; | 1089 TabRestoreService* tab_restore_service_; |
1089 | 1090 |
1090 scoped_ptr<MatchPreview> match_preview_; | 1091 scoped_ptr<MatchPreview> match_preview_; |
1091 | 1092 |
1092 DISALLOW_COPY_AND_ASSIGN(Browser); | 1093 DISALLOW_COPY_AND_ASSIGN(Browser); |
1093 }; | 1094 }; |
1094 | 1095 |
1095 #endif // CHROME_BROWSER_BROWSER_H_ | 1096 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |