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

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

Issue 214029: Adding focus to NaviteViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « base/win_util.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/notification_registrar.h" 9 #include "chrome/common/notification_registrar.h"
10 #include "chrome/common/page_transition_types.h" 10 #include "chrome/common/page_transition_types.h"
(...skipping 29 matching lines...) Expand all
40 // Called when anything has changed that might affect the layout or contents 40 // Called when anything has changed that might affect the layout or contents
41 // of the views around the edit, including the text of the edit and the 41 // of the views around the edit, including the text of the edit and the
42 // status of any keyword- or hint-related state. 42 // status of any keyword- or hint-related state.
43 virtual void OnChanged() = 0; 43 virtual void OnChanged() = 0;
44 44
45 // Called whenever the user starts or stops an input session (typing, 45 // Called whenever the user starts or stops an input session (typing,
46 // interacting with the edit, etc.). When user input is not in progress, 46 // interacting with the edit, etc.). When user input is not in progress,
47 // the edit is guaranteed to be showing the permanent text. 47 // the edit is guaranteed to be showing the permanent text.
48 virtual void OnInputInProgress(bool in_progress) = 0; 48 virtual void OnInputInProgress(bool in_progress) = 0;
49 49
50 // Called whenever the autocomplete edit gets focused.
51 virtual void OnSetFocus() = 0;
52
53 // Returns the favicon of the current page. 50 // Returns the favicon of the current page.
54 virtual SkBitmap GetFavIcon() const = 0; 51 virtual SkBitmap GetFavIcon() const = 0;
55 52
56 // Returns the title of the current page. 53 // Returns the title of the current page.
57 virtual std::wstring GetTitle() const = 0; 54 virtual std::wstring GetTitle() const = 0;
58 }; 55 };
59 56
60 class AutocompleteEditModel : public NotificationObserver { 57 class AutocompleteEditModel : public NotificationObserver {
61 public: 58 public:
62 enum KeywordUIState { 59 enum KeywordUIState {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 mutable GURL paste_and_go_url_; 443 mutable GURL paste_and_go_url_;
447 mutable PageTransition::Type paste_and_go_transition_; 444 mutable PageTransition::Type paste_and_go_transition_;
448 mutable GURL paste_and_go_alternate_nav_url_; 445 mutable GURL paste_and_go_alternate_nav_url_;
449 446
450 Profile* profile_; 447 Profile* profile_;
451 448
452 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 449 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
453 }; 450 };
454 451
455 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 452 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « base/win_util.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698