| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 106 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 107 virtual PageTransition::Type GetPageTransition() const; | 107 virtual PageTransition::Type GetPageTransition() const; |
| 108 virtual void AcceptInput(); | 108 virtual void AcceptInput(); |
| 109 virtual void FocusLocation(bool select_all); | 109 virtual void FocusLocation(bool select_all); |
| 110 virtual void FocusSearch(); | 110 virtual void FocusSearch(); |
| 111 virtual void UpdateContentSettingsIcons(); | 111 virtual void UpdateContentSettingsIcons(); |
| 112 virtual void UpdatePageActions(); | 112 virtual void UpdatePageActions(); |
| 113 virtual void InvalidatePageActions(); | 113 virtual void InvalidatePageActions(); |
| 114 virtual void SaveStateToContents(TabContents* contents); | 114 virtual void SaveStateToContents(TabContents* contents); |
| 115 virtual void Revert(); | 115 virtual void Revert(); |
| 116 virtual const AutocompleteEditView* location_entry() const { | 116 virtual const AutocompleteEditView* location_entry() const; |
| 117 return location_entry_.get(); | 117 virtual AutocompleteEditView* location_entry(); |
| 118 } | 118 virtual LocationBarTesting* GetLocationBarForTesting(); |
| 119 virtual AutocompleteEditView* location_entry() { | |
| 120 return location_entry_.get(); | |
| 121 } | |
| 122 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } | |
| 123 | 119 |
| 124 // Implement the LocationBarTesting interface. | 120 // Implement the LocationBarTesting interface. |
| 125 virtual int PageActionCount() { return page_action_views_.size(); } | 121 virtual int PageActionCount() { return page_action_views_.size(); } |
| 126 virtual int PageActionVisibleCount(); | 122 virtual int PageActionVisibleCount(); |
| 127 virtual ExtensionAction* GetPageAction(size_t index); | 123 virtual ExtensionAction* GetPageAction(size_t index); |
| 128 virtual ExtensionAction* GetVisiblePageAction(size_t index); | 124 virtual ExtensionAction* GetVisiblePageAction(size_t index); |
| 129 virtual void TestPageActionPressed(size_t index); | 125 virtual void TestPageActionPressed(size_t index); |
| 130 | 126 |
| 131 // Implement the NotificationObserver interface. | 127 // Implement the NotificationObserver interface. |
| 132 virtual void Observe(NotificationType type, | 128 virtual void Observe(NotificationType type, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 // Indicate if |tab_to_search_hint_| should be shown. | 411 // Indicate if |tab_to_search_hint_| should be shown. |
| 416 bool show_keyword_hint_; | 412 bool show_keyword_hint_; |
| 417 | 413 |
| 418 // The last search keyword that was shown via the |tab_to_search_box_|. | 414 // The last search keyword that was shown via the |tab_to_search_box_|. |
| 419 std::wstring last_keyword_; | 415 std::wstring last_keyword_; |
| 420 | 416 |
| 421 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 417 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 422 }; | 418 }; |
| 423 | 419 |
| 424 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 420 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |