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

Side by Side Diff: chrome/browser/ui/gtk/location_bar_view_gtk.h

Issue 6685002: Wires up ability for page to specify instant auto complete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test and stray char Created 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void OnKillFocus() OVERRIDE; 101 virtual void OnKillFocus() OVERRIDE;
102 virtual void OnSetFocus() OVERRIDE; 102 virtual void OnSetFocus() OVERRIDE;
103 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 103 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
104 virtual SkBitmap GetFavIcon() const OVERRIDE; 104 virtual SkBitmap GetFavIcon() const OVERRIDE;
105 virtual string16 GetTitle() const OVERRIDE; 105 virtual string16 GetTitle() const OVERRIDE;
106 virtual InstantController* GetInstant() OVERRIDE; 106 virtual InstantController* GetInstant() OVERRIDE;
107 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE; 107 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE;
108 108
109 // Implement the LocationBar interface. 109 // Implement the LocationBar interface.
110 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type); 110 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type);
111 virtual void SetSuggestedText(const string16& text); 111 virtual void SetSuggestedText(const string16& text,
112 InstantCompleteBehavior behavior);
112 virtual std::wstring GetInputString() const; 113 virtual std::wstring GetInputString() const;
113 virtual WindowOpenDisposition GetWindowOpenDisposition() const; 114 virtual WindowOpenDisposition GetWindowOpenDisposition() const;
114 virtual PageTransition::Type GetPageTransition() const; 115 virtual PageTransition::Type GetPageTransition() const;
115 virtual void AcceptInput(); 116 virtual void AcceptInput();
116 virtual void FocusLocation(bool select_all); 117 virtual void FocusLocation(bool select_all);
117 virtual void FocusSearch(); 118 virtual void FocusSearch();
118 virtual void UpdateContentSettingsIcons(); 119 virtual void UpdateContentSettingsIcons();
119 virtual void UpdatePageActions(); 120 virtual void UpdatePageActions();
120 virtual void InvalidatePageActions(); 121 virtual void InvalidatePageActions();
121 virtual void SaveStateToContents(TabContents* contents); 122 virtual void SaveStateToContents(TabContents* contents);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // Indicate if |tab_to_search_hint_| should be shown. 447 // Indicate if |tab_to_search_hint_| should be shown.
447 bool show_keyword_hint_; 448 bool show_keyword_hint_;
448 449
449 // The last search keyword that was shown via the |tab_to_search_box_|. 450 // The last search keyword that was shown via the |tab_to_search_box_|.
450 string16 last_keyword_; 451 string16 last_keyword_;
451 452
452 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 453 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
453 }; 454 };
454 455
455 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 456 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698