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

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

Issue 5588004: [gtk] Add fade-commit to instant suggestion for predictive instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 10 years 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 (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_INSTANT_INSTANT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Search results are shown for exactly what was typed. 54 // Search results are shown for exactly what was typed.
55 VERBATIM_TYPE, 55 VERBATIM_TYPE,
56 56
57 // Variant of predictive that does not auto-complete after a delay. 57 // Variant of predictive that does not auto-complete after a delay.
58 PREDICTIVE_NO_AUTO_COMPLETE_TYPE, 58 PREDICTIVE_NO_AUTO_COMPLETE_TYPE,
59 59
60 LAST_TYPE = PREDICTIVE_NO_AUTO_COMPLETE_TYPE 60 LAST_TYPE = PREDICTIVE_NO_AUTO_COMPLETE_TYPE
61 }; 61 };
62 62
63
64 // Amount of time to wait before starting the instant animation.
65 static const int kAutoCommitPauseTimeMS = 1000;
66 // Duration of the instant animation in which the colors change.
67 static const int kAutoCommitFadeInTimeMS = 300;
68
63 InstantController(Profile* profile, InstantDelegate* delegate); 69 InstantController(Profile* profile, InstantDelegate* delegate);
64 ~InstantController(); 70 ~InstantController();
65 71
66 // Registers instant related preferences. 72 // Registers instant related preferences.
67 static void RegisterUserPrefs(PrefService* prefs); 73 static void RegisterUserPrefs(PrefService* prefs);
68 74
69 // Records instant metrics. 75 // Records instant metrics.
70 static void RecordMetrics(Profile* profile); 76 static void RecordMetrics(Profile* profile);
71 77
72 // Returns true if either type of instant is enabled. 78 // Returns true if either type of instant is enabled.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 247
242 // URL last pased to ScheduleUpdate. 248 // URL last pased to ScheduleUpdate.
243 GURL scheduled_url_; 249 GURL scheduled_url_;
244 250
245 Type type_; 251 Type type_;
246 252
247 DISALLOW_COPY_AND_ASSIGN(InstantController); 253 DISALLOW_COPY_AND_ASSIGN(InstantController);
248 }; 254 };
249 255
250 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ 256 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc ('k') | chrome/browser/ui/views/location_bar/suggested_text_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698