| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void Init(bool popup_window_mode); | 54 void Init(bool popup_window_mode); |
| 55 | 55 |
| 56 void SetProfile(Profile* profile); | 56 void SetProfile(Profile* profile); |
| 57 | 57 |
| 58 // Returns the widget the caller should host. You must call Init() first. | 58 // Returns the widget the caller should host. You must call Init() first. |
| 59 GtkWidget* widget() { return hbox_.get(); } | 59 GtkWidget* widget() { return hbox_.get(); } |
| 60 | 60 |
| 61 // Returns the widget the page info bubble should point to. | 61 // Returns the widget the page info bubble should point to. |
| 62 GtkWidget* location_icon_widget() const { return location_icon_image_; } | 62 GtkWidget* location_icon_widget() const { return location_icon_image_; } |
| 63 | 63 |
| 64 // Returns the widget the extension installed bubble should point to. |
| 65 GtkWidget* location_entry_widget() const { return entry_box_; } |
| 66 |
| 64 // Returns the current TabContents. | 67 // Returns the current TabContents. |
| 65 TabContents* GetTabContents() const; | 68 TabContents* GetTabContents() const; |
| 66 | 69 |
| 67 // Sets |preview_enabled| for the PageActionViewGtk associated with this | 70 // Sets |preview_enabled| for the PageActionViewGtk associated with this |
| 68 // |page_action|. If |preview_enabled| is true, the view will display the | 71 // |page_action|. If |preview_enabled| is true, the view will display the |
| 69 // page action's icon even though it has not been activated by the extension. | 72 // page action's icon even though it has not been activated by the extension. |
| 70 // This is used by the ExtensionInstalledBubbleGtk to preview what the icon | 73 // This is used by the ExtensionInstalledBubbleGtk to preview what the icon |
| 71 // will look like for the user upon installation of the extension. | 74 // will look like for the user upon installation of the extension. |
| 72 void SetPreviewEnabledPageAction(ExtensionAction *page_action, | 75 void SetPreviewEnabledPageAction(ExtensionAction *page_action, |
| 73 bool preview_enabled); | 76 bool preview_enabled); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // The last search keyword that was shown via the |tab_to_search_box_|. | 425 // The last search keyword that was shown via the |tab_to_search_box_|. |
| 423 std::wstring last_keyword_; | 426 std::wstring last_keyword_; |
| 424 | 427 |
| 425 // True if we should update the instant controller when the edit text changes. | 428 // True if we should update the instant controller when the edit text changes. |
| 426 bool update_instant_; | 429 bool update_instant_; |
| 427 | 430 |
| 428 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 431 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 429 }; | 432 }; |
| 430 | 433 |
| 431 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 434 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |