OLD | NEW |
1 // Copyright (c) 2009 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" |
11 #include "webkit/glue/window_open_disposition.h" | 11 #include "webkit/glue/window_open_disposition.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
48 | 48 |
49 // Returns the favicon of the current page. | 49 // Returns the favicon of the current page. |
50 virtual SkBitmap GetFavIcon() const = 0; | 50 virtual SkBitmap GetFavIcon() const = 0; |
51 | 51 |
52 // Returns the title of the current page. | 52 // Returns the title of the current page. |
53 virtual std::wstring GetTitle() const = 0; | 53 virtual std::wstring GetTitle() const = 0; |
54 protected: | |
55 ~AutocompleteEditController() {} | |
56 }; | 54 }; |
57 | 55 |
58 class AutocompleteEditModel { | 56 class AutocompleteEditModel { |
59 public: | 57 public: |
60 enum KeywordUIState { | 58 enum KeywordUIState { |
61 // The user is typing normally. | 59 // The user is typing normally. |
62 NORMAL, | 60 NORMAL, |
63 // The user is editing in the middle of the input string. Even if the | 61 // The user is editing in the middle of the input string. Even if the |
64 // input looks like a keyword, don't display the keyword UI, as to not | 62 // input looks like a keyword, don't display the keyword UI, as to not |
65 // interfere with the user's editing. | 63 // interfere with the user's editing. |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 mutable GURL paste_and_go_url_; | 417 mutable GURL paste_and_go_url_; |
420 mutable PageTransition::Type paste_and_go_transition_; | 418 mutable PageTransition::Type paste_and_go_transition_; |
421 mutable GURL paste_and_go_alternate_nav_url_; | 419 mutable GURL paste_and_go_alternate_nav_url_; |
422 | 420 |
423 Profile* profile_; | 421 Profile* profile_; |
424 | 422 |
425 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); | 423 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); |
426 }; | 424 }; |
427 | 425 |
428 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ | 426 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ |
OLD | NEW |