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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 explicit LocationBarViewGtk(Browser* browser); | 51 explicit LocationBarViewGtk(Browser* browser); |
52 virtual ~LocationBarViewGtk(); | 52 virtual ~LocationBarViewGtk(); |
53 | 53 |
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. |
| 62 GtkWidget* location_icon_widget() const { return location_icon_image_; } |
| 63 |
61 // Returns the current TabContents. | 64 // Returns the current TabContents. |
62 TabContents* GetTabContents() const; | 65 TabContents* GetTabContents() const; |
63 | 66 |
64 // Sets |preview_enabled| for the PageActionViewGtk associated with this | 67 // Sets |preview_enabled| for the PageActionViewGtk associated with this |
65 // |page_action|. If |preview_enabled| is true, the view will display the | 68 // |page_action|. If |preview_enabled| is true, the view will display the |
66 // page action's icon even though it has not been activated by the extension. | 69 // page action's icon even though it has not been activated by the extension. |
67 // This is used by the ExtensionInstalledBubbleGtk to preview what the icon | 70 // This is used by the ExtensionInstalledBubbleGtk to preview what the icon |
68 // will look like for the user upon installation of the extension. | 71 // will look like for the user upon installation of the extension. |
69 void SetPreviewEnabledPageAction(ExtensionAction *page_action, | 72 void SetPreviewEnabledPageAction(ExtensionAction *page_action, |
70 bool preview_enabled); | 73 bool preview_enabled); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Indicate if |tab_to_search_hint_| should be shown. | 414 // Indicate if |tab_to_search_hint_| should be shown. |
412 bool show_keyword_hint_; | 415 bool show_keyword_hint_; |
413 | 416 |
414 // The last search keyword that was shown via the |tab_to_search_box_|. | 417 // The last search keyword that was shown via the |tab_to_search_box_|. |
415 std::wstring last_keyword_; | 418 std::wstring last_keyword_; |
416 | 419 |
417 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 420 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
418 }; | 421 }; |
419 | 422 |
420 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 423 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |