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_VIEWS_SEARCH_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SEARCH_VIEW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SEARCH_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SEARCH_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/search/search_model_observer.h" | 10 #include "chrome/browser/ui/search/search_model_observer.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Create the various views and installs them as an overlay on | 95 // Create the various views and installs them as an overlay on |
96 // |contents_container_|. | 96 // |contents_container_|. |
97 void CreateViews(); | 97 void CreateViews(); |
98 | 98 |
99 // Destroys the various views. | 99 // Destroys the various views. |
100 void DestroyViews(); | 100 void DestroyViews(); |
101 | 101 |
102 // Invoked when the visibility of the omnibox popup changes. | 102 // Invoked when the visibility of the omnibox popup changes. |
103 void PopupVisibilityChanged(); | 103 void PopupVisibilityChanged(); |
104 | 104 |
| 105 // Load the NTP from the associated |SearchTabHelper| if in NTP mode |
| 106 // and the current |tab_contents_| has changed. |
| 107 void MaybeLoadNTP(); |
| 108 |
105 // Access active search model. | 109 // Access active search model. |
106 chrome::search::SearchModel* search_model(); | 110 chrome::search::SearchModel* search_model(); |
107 | 111 |
108 // Access active web contents. | 112 // Access active web contents. |
109 content::WebContents* web_contents(); | 113 content::WebContents* web_contents(); |
110 | 114 |
111 // The profile. Weak. | 115 // The profile. Weak. |
112 content::BrowserContext* browser_context_; | 116 content::BrowserContext* browser_context_; |
113 | 117 |
114 // Where the overlay is placed. Weak. | 118 // Where the overlay is placed. Weak. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 views::View* search_container_; | 158 views::View* search_container_; |
155 views::View* ntp_view_; | 159 views::View* ntp_view_; |
156 views::View* logo_view_; | 160 views::View* logo_view_; |
157 views::WebView* content_view_; | 161 views::WebView* content_view_; |
158 OmniboxPopupViewParent* omnibox_popup_view_parent_; | 162 OmniboxPopupViewParent* omnibox_popup_view_parent_; |
159 | 163 |
160 DISALLOW_COPY_AND_ASSIGN(SearchViewController); | 164 DISALLOW_COPY_AND_ASSIGN(SearchViewController); |
161 }; | 165 }; |
162 | 166 |
163 #endif // CHROME_BROWSER_UI_VIEWS_SEARCH_VIEW_CONTROLLER_H_ | 167 #endif // CHROME_BROWSER_UI_VIEWS_SEARCH_VIEW_CONTROLLER_H_ |
OLD | NEW |