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_SEARCH_SEARCH_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/ui/search/search_model.h" | 9 #include "chrome/browser/ui/search/search_model.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Invoked when the OmniboxEditModel changes state in some way that might | 36 // Invoked when the OmniboxEditModel changes state in some way that might |
37 // affect the search mode. | 37 // affect the search mode. |
38 void OmniboxEditModelChanged(bool user_input_in_progress, bool cancelling); | 38 void OmniboxEditModelChanged(bool user_input_in_progress, bool cancelling); |
39 | 39 |
40 // Invoked when the active navigation entry is updated in some way that might | 40 // Invoked when the active navigation entry is updated in some way that might |
41 // affect the search mode. This is used by Instant when it "fixes up" the | 41 // affect the search mode. This is used by Instant when it "fixes up" the |
42 // virtual URL of the active entry. Regular navigations are captured through | 42 // virtual URL of the active entry. Regular navigations are captured through |
43 // the notification system and shouldn't call this method. | 43 // the notification system and shouldn't call this method. |
44 void NavigationEntryUpdated(); | 44 void NavigationEntryUpdated(); |
45 | 45 |
| 46 // Invoked when the searchbox on the Instant overlay receives focus. |
| 47 void OnWebSearchBoxFocus(); |
| 48 |
| 49 // Invoked when the searchbox on the Instant overlay loses focus. |
| 50 void OnWebSearchBoxBlur(); |
| 51 |
46 // Overridden from contents::WebContentsObserver: | 52 // Overridden from contents::WebContentsObserver: |
47 virtual void NavigateToPendingEntry( | 53 virtual void NavigateToPendingEntry( |
48 const GURL& url, | 54 const GURL& url, |
49 content::NavigationController::ReloadType reload_type) OVERRIDE; | 55 content::NavigationController::ReloadType reload_type) OVERRIDE; |
50 | 56 |
51 // Overridden from content::NotificationObserver: | 57 // Overridden from content::NotificationObserver: |
52 virtual void Observe(int type, | 58 virtual void Observe(int type, |
53 const content::NotificationSource& source, | 59 const content::NotificationSource& source, |
54 const content::NotificationDetails& details) OVERRIDE; | 60 const content::NotificationDetails& details) OVERRIDE; |
55 | 61 |
(...skipping 17 matching lines...) Expand all Loading... |
73 | 79 |
74 content::NotificationRegistrar registrar_; | 80 content::NotificationRegistrar registrar_; |
75 | 81 |
76 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 82 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
77 }; | 83 }; |
78 | 84 |
79 } // namespace search | 85 } // namespace search |
80 } // namespace chrome | 86 } // namespace chrome |
81 | 87 |
82 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 88 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
OLD | NEW |