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

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

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 years, 3 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
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view.h ('k') | chrome/browser/browser.cc » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698