OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // security style, and, if |tab_for_state_restoring| is non-NULL, also | 56 // security style, and, if |tab_for_state_restoring| is non-NULL, also |
57 // restore saved state that the tab holds. | 57 // restore saved state that the tab holds. |
58 void Update(const TabContents* tab_for_state_restoring); | 58 void Update(const TabContents* tab_for_state_restoring); |
59 | 59 |
60 // Implement the AutocompleteEditController interface. | 60 // Implement the AutocompleteEditController interface. |
61 virtual void OnAutocompleteAccept(const GURL& url, | 61 virtual void OnAutocompleteAccept(const GURL& url, |
62 WindowOpenDisposition disposition, | 62 WindowOpenDisposition disposition, |
63 PageTransition::Type transition, | 63 PageTransition::Type transition, |
64 const GURL& alternate_nav_url); | 64 const GURL& alternate_nav_url); |
65 virtual void OnChanged(); | 65 virtual void OnChanged(); |
| 66 virtual void OnKillFocus(); |
66 virtual void OnSetFocus(); | 67 virtual void OnSetFocus(); |
67 virtual void OnInputInProgress(bool in_progress); | 68 virtual void OnInputInProgress(bool in_progress); |
68 virtual SkBitmap GetFavIcon() const; | 69 virtual SkBitmap GetFavIcon() const; |
69 virtual std::wstring GetTitle() const; | 70 virtual std::wstring GetTitle() const; |
70 | 71 |
71 // Implement the LocationBar interface. | 72 // Implement the LocationBar interface. |
72 virtual void ShowFirstRunBubble(bool use_OEM_bubble); | 73 virtual void ShowFirstRunBubble(bool use_OEM_bubble); |
73 virtual std::wstring GetInputString() const; | 74 virtual std::wstring GetInputString() const; |
74 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 75 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
75 virtual PageTransition::Type GetPageTransition() const; | 76 virtual PageTransition::Type GetPageTransition() const; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 244 |
244 // Provides colors and rendering mode. | 245 // Provides colors and rendering mode. |
245 GtkThemeProvider* theme_provider_; | 246 GtkThemeProvider* theme_provider_; |
246 | 247 |
247 NotificationRegistrar registrar_; | 248 NotificationRegistrar registrar_; |
248 | 249 |
249 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 250 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
250 }; | 251 }; |
251 | 252 |
252 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 253 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |