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

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

Issue 12631008: alternate ntp: implement Show/HideBars API to reduce jank when showing/hiding bars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, resolved conflicts Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_INSTANT_SEARCH_H_ 5 #ifndef CHROME_BROWSER_INSTANT_SEARCH_H_
6 #define CHROME_BROWSER_INSTANT_SEARCH_H_ 6 #define CHROME_BROWSER_INSTANT_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 14
15 class GURL; 15 class GURL;
16 class PrefRegistrySyncable; 16 class PrefRegistrySyncable;
17 class Profile; 17 class Profile;
18 class TemplateURL; 18 class TemplateURL;
19 class TemplateURLRef; 19 class TemplateURLRef;
20 20
21 namespace chrome {
22 namespace search {
23 struct Mode;
24 }
25 }
26
21 namespace content { 27 namespace content {
22 class NavigationEntry; 28 class NavigationEntry;
23 class WebContents; 29 class WebContents;
24 } 30 }
25 31
26 namespace chrome { 32 namespace chrome {
27 namespace search { 33 namespace search {
28 34
29 // The key used to store search terms data in the NavigationEntry to be later 35 // The key used to store search terms data in the NavigationEntry to be later
30 // displayed in the omnibox. With the context of the user's exact query, 36 // displayed in the omnibox. With the context of the user's exact query,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Exposed for testing only. 149 // Exposed for testing only.
144 bool GetBoolValueForFlagWithDefault(const std::string& flag, 150 bool GetBoolValueForFlagWithDefault(const std::string& flag,
145 bool default_value, 151 bool default_value,
146 const FieldTrialFlags& flags); 152 const FieldTrialFlags& flags);
147 153
148 // Coerces the commandline Instant URL to look like a template URL, so that we 154 // Coerces the commandline Instant URL to look like a template URL, so that we
149 // can extract search terms from it. Exposed for testing only. 155 // can extract search terms from it. Exposed for testing only.
150 GURL CoerceCommandLineURLToTemplateURL(const GURL& instant_url, 156 GURL CoerceCommandLineURLToTemplateURL(const GURL& instant_url,
151 const TemplateURLRef& ref); 157 const TemplateURLRef& ref);
152 158
159 // Returns true if visibility change in top bars should be handled based on
160 // |old_mode| and |new_mode|.
161 bool ShouldHandleTopBarsVisibilityChange(const Mode& old_mode,
dhollowa 2013/03/13 17:21:55 This should live in search_model.h/cc. And how ab
kuan 2013/03/13 22:21:07 Done.
162 const Mode& new_mode);
163
153 } // namespace search 164 } // namespace search
154 } // namespace chrome 165 } // namespace chrome
155 166
156 #endif // CHROME_BROWSER_INSTANT_SEARCH_H_ 167 #endif // CHROME_BROWSER_INSTANT_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698