| 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 <map> | 10 #include <map> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void SaveStateToContents(TabContents* contents); | 84 virtual void SaveStateToContents(TabContents* contents); |
| 85 virtual void Revert(); | 85 virtual void Revert(); |
| 86 virtual AutocompleteEditView* location_entry() { | 86 virtual AutocompleteEditView* location_entry() { |
| 87 return location_entry_.get(); | 87 return location_entry_.get(); |
| 88 } | 88 } |
| 89 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } | 89 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } |
| 90 | 90 |
| 91 // Implement the LocationBarTesting interface. | 91 // Implement the LocationBarTesting interface. |
| 92 virtual int PageActionCount() { return page_action_views_.size(); } | 92 virtual int PageActionCount() { return page_action_views_.size(); } |
| 93 virtual int PageActionVisibleCount(); | 93 virtual int PageActionVisibleCount(); |
| 94 virtual ExtensionAction* GetPageAction(size_t index); |
| 95 virtual ExtensionAction* GetVisiblePageAction(size_t index); |
| 96 virtual void TestPageActionPressed(size_t index); |
| 94 | 97 |
| 95 // Implement the NotificationObserver interface. | 98 // Implement the NotificationObserver interface. |
| 96 virtual void Observe(NotificationType type, | 99 virtual void Observe(NotificationType type, |
| 97 const NotificationSource& source, | 100 const NotificationSource& source, |
| 98 const NotificationDetails& details); | 101 const NotificationDetails& details); |
| 99 | 102 |
| 100 // Translation between a security level and the background color. Both the | 103 // Translation between a security level and the background color. Both the |
| 101 // location bar and edit have to manage and match the background color. | 104 // location bar and edit have to manage and match the background color. |
| 102 static const GdkColor kBackgroundColorByLevel[3]; | 105 static const GdkColor kBackgroundColorByLevel[3]; |
| 103 | 106 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 249 |
| 247 // Provides colors and rendering mode. | 250 // Provides colors and rendering mode. |
| 248 GtkThemeProvider* theme_provider_; | 251 GtkThemeProvider* theme_provider_; |
| 249 | 252 |
| 250 NotificationRegistrar registrar_; | 253 NotificationRegistrar registrar_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 255 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 258 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |