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

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

Issue 165272: Add a first attempt at a compact location bar and a status bar. The status ba... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
7 7
8 #include "chrome/browser/autocomplete/autocomplete.h" 8 #include "chrome/browser/autocomplete/autocomplete.h"
9 #include "chrome/common/page_transition_types.h" 9 #include "chrome/common/page_transition_types.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 14 matching lines...) Expand all
25 class AutocompleteEditController { 25 class AutocompleteEditController {
26 public: 26 public:
27 // When the user presses enter or selects a line with the mouse, this 27 // When the user presses enter or selects a line with the mouse, this
28 // function will get called synchronously with the url to open and 28 // function will get called synchronously with the url to open and
29 // disposition and transition to use when opening it. 29 // disposition and transition to use when opening it.
30 // 30 //
31 // |alternate_nav_url|, if non-empty, contains the alternate navigation URL 31 // |alternate_nav_url|, if non-empty, contains the alternate navigation URL
32 // for |url|, which the controller can check for existence. See comments on 32 // for |url|, which the controller can check for existence. See comments on
33 // AutocompleteResult::GetAlternateNavURL(). 33 // AutocompleteResult::GetAlternateNavURL().
34 virtual void OnAutocompleteAccept(const GURL& url, 34 virtual void OnAutocompleteAccept(const GURL& url,
35 WindowOpenDisposition disposition, 35 WindowOpenDisposition disposition,
36 PageTransition::Type transition, 36 PageTransition::Type transition,
37 const GURL& alternate_nav_url) = 0; 37 const GURL& alternate_nav_url) = 0;
38 38
39 // Called when anything has changed that might affect the layout or contents 39 // Called when anything has changed that might affect the layout or contents
40 // of the views around the edit, including the text of the edit and the 40 // of the views around the edit, including the text of the edit and the
41 // status of any keyword- or hint-related state. 41 // status of any keyword- or hint-related state.
42 virtual void OnChanged() = 0; 42 virtual void OnChanged() = 0;
43 43
44 // Called whenever the user starts or stops an input session (typing, 44 // Called whenever the user starts or stops an input session (typing,
45 // interacting with the edit, etc.). When user input is not in progress, 45 // interacting with the edit, etc.). When user input is not in progress,
46 // the edit is guaranteed to be showing the permanent text. 46 // the edit is guaranteed to be showing the permanent text.
47 virtual void OnInputInProgress(bool in_progress) = 0; 47 virtual void OnInputInProgress(bool in_progress) = 0;
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 mutable GURL paste_and_go_url_; 417 mutable GURL paste_and_go_url_;
418 mutable PageTransition::Type paste_and_go_transition_; 418 mutable PageTransition::Type paste_and_go_transition_;
419 mutable GURL paste_and_go_alternate_nav_url_; 419 mutable GURL paste_and_go_alternate_nav_url_;
420 420
421 Profile* profile_; 421 Profile* profile_;
422 422
423 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 423 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
424 }; 424 };
425 425
426 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 426 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698