| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Retrieves the GtkWidget which is associated with PageActionView | 92 // Retrieves the GtkWidget which is associated with PageActionView |
| 93 // corresponding to |page_action|. | 93 // corresponding to |page_action|. |
| 94 GtkWidget* GetPageActionWidget(ExtensionAction* page_action); | 94 GtkWidget* GetPageActionWidget(ExtensionAction* page_action); |
| 95 | 95 |
| 96 // Updates the location bar. We also reset the bar's permanent text and | 96 // Updates the location bar. We also reset the bar's permanent text and |
| 97 // security style, and, if |tab_for_state_restoring| is non-NULL, also | 97 // security style, and, if |tab_for_state_restoring| is non-NULL, also |
| 98 // restore saved state that the tab holds. | 98 // restore saved state that the tab holds. |
| 99 void Update(const content::WebContents* tab_for_state_restoring); | 99 void Update(const content::WebContents* tab_for_state_restoring); |
| 100 | 100 |
| 101 // Show the zoom bubble. | |
| 102 void ShowZoomBubble(int zoom_percent); | |
| 103 | |
| 104 // Show the bookmark bubble. | 101 // Show the bookmark bubble. |
| 105 void ShowStarBubble(const GURL& url, bool newly_boomkarked); | 102 void ShowStarBubble(const GURL& url, bool newly_boomkarked); |
| 106 | 103 |
| 107 // Shows the Chrome To Mobile bubble. | 104 // Shows the Chrome To Mobile bubble. |
| 108 void ShowChromeToMobileBubble(); | 105 void ShowChromeToMobileBubble(); |
| 109 | 106 |
| 110 // Sets the tooltip for the zoom icon. | 107 // Happens when the zoom changes for the active tab. |can_show_bubble| will be |
| 111 void SetZoomIconTooltipPercent(int zoom_percent); | 108 // true if it was a user action, but the bubble still shouldn't be shown if |
| 112 | 109 // the wrench menu is showing. |
| 113 // Sets the zoom icon state. | 110 void ZoomChangedForActiveTab(bool can_show_bubble); |
| 114 void SetZoomIconState(ZoomController::ZoomIconState zoom_icon_state); | |
| 115 | 111 |
| 116 // Set the starred state of the bookmark star. | 112 // Set the starred state of the bookmark star. |
| 117 void SetStarred(bool starred); | 113 void SetStarred(bool starred); |
| 118 | 114 |
| 119 // OmniboxEditController: | 115 // OmniboxEditController: |
| 120 virtual void OnAutocompleteAccept(const GURL& url, | 116 virtual void OnAutocompleteAccept(const GURL& url, |
| 121 WindowOpenDisposition disposition, | 117 WindowOpenDisposition disposition, |
| 122 content::PageTransition transition, | 118 content::PageTransition transition, |
| 123 const GURL& alternate_nav_url) OVERRIDE; | 119 const GURL& alternate_nav_url) OVERRIDE; |
| 124 virtual void OnChanged() OVERRIDE; | 120 virtual void OnChanged() OVERRIDE; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 BooleanPrefMember edit_bookmarks_enabled_; | 535 BooleanPrefMember edit_bookmarks_enabled_; |
| 540 | 536 |
| 541 // Used to remember the URL and title text when drag&drop has begun. | 537 // Used to remember the URL and title text when drag&drop has begun. |
| 542 GURL drag_url_; | 538 GURL drag_url_; |
| 543 string16 drag_title_; | 539 string16 drag_title_; |
| 544 | 540 |
| 545 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 541 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 546 }; | 542 }; |
| 547 | 543 |
| 548 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 544 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |