| OLD | NEW |
| 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Returns the width in pixels needed to display the text from one character | 87 // Returns the width in pixels needed to display the text from one character |
| 88 // before the caret to the end of the string. See comments in | 88 // before the caret to the end of the string. See comments in |
| 89 // LocationBarView::Layout as to why this uses -1. | 89 // LocationBarView::Layout as to why this uses -1. |
| 90 int WidthOfTextAfterCursor(); | 90 int WidthOfTextAfterCursor(); |
| 91 | 91 |
| 92 // Returns the font. | 92 // Returns the font. |
| 93 gfx::Font GetFont(); | 93 gfx::Font GetFont(); |
| 94 | 94 |
| 95 // Implement the AutocompleteEditView interface. | 95 // Implement the AutocompleteEditView interface. |
| 96 virtual AutocompleteEditModel* model() { return model_.get(); } | 96 virtual AutocompleteEditModel* model(); |
| 97 virtual const AutocompleteEditModel* model() const { return model_.get(); } | 97 virtual const AutocompleteEditModel* model() const; |
| 98 | 98 |
| 99 virtual void SaveStateToTab(TabContents* tab); | 99 virtual void SaveStateToTab(TabContents* tab); |
| 100 | 100 |
| 101 virtual void Update(const TabContents* tab_for_state_restoring); | 101 virtual void Update(const TabContents* tab_for_state_restoring); |
| 102 | 102 |
| 103 virtual void OpenURL(const GURL& url, | 103 virtual void OpenURL(const GURL& url, |
| 104 WindowOpenDisposition disposition, | 104 WindowOpenDisposition disposition, |
| 105 PageTransition::Type transition, | 105 PageTransition::Type transition, |
| 106 const GURL& alternate_nav_url, | 106 const GURL& alternate_nav_url, |
| 107 size_t selected_line, | 107 size_t selected_line, |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 // The view that is going to be focused next. Only valid while handling | 496 // The view that is going to be focused next. Only valid while handling |
| 497 // "focus-out" events. | 497 // "focus-out" events. |
| 498 GtkWidget* going_to_focus_; | 498 GtkWidget* going_to_focus_; |
| 499 | 499 |
| 500 GtkSignalRegistrar signals_; | 500 GtkSignalRegistrar signals_; |
| 501 | 501 |
| 502 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 502 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 503 }; | 503 }; |
| 504 | 504 |
| 505 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 505 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |