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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 bool IsVisible(); | 223 bool IsVisible(); |
224 | 224 |
225 // Called to notify the PageAction that it should determine whether to be | 225 // Called to notify the PageAction that it should determine whether to be |
226 // visible or hidden. |contents| is the TabContents that is active, |url| | 226 // visible or hidden. |contents| is the TabContents that is active, |url| |
227 // is the current page URL. | 227 // is the current page URL. |
228 void UpdateVisibility(content::WebContents* contents, const GURL& url); | 228 void UpdateVisibility(content::WebContents* contents, const GURL& url); |
229 | 229 |
230 // A callback from ImageLoadingTracker for when the image has loaded. | 230 // A callback from ImageLoadingTracker for when the image has loaded. |
231 virtual void OnImageLoaded( | 231 virtual void OnImageLoaded(const gfx::Image& image, |
232 SkBitmap* image, const ExtensionResource& resource, int index) OVERRIDE; | 232 const std::string& extension_id, |
| 233 int index) OVERRIDE; |
233 | 234 |
234 // Simulate left mouse click on the page action button. | 235 // Simulate left mouse click on the page action button. |
235 void TestActivatePageAction(); | 236 void TestActivatePageAction(); |
236 | 237 |
237 // Overridden from ExtensionContextMenuModel::PopupDelegate: | 238 // Overridden from ExtensionContextMenuModel::PopupDelegate: |
238 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; | 239 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; |
239 | 240 |
240 private: | 241 private: |
241 // Show the popup for this page action. If |devtools| is true, show it | 242 // Show the popup for this page action. If |devtools| is true, show it |
242 // with a debugger window attached. Returns true if a popup was shown. | 243 // with a debugger window attached. Returns true if a popup was shown. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 // The last search keyword that was shown via the |tab_to_search_box_|. | 443 // The last search keyword that was shown via the |tab_to_search_box_|. |
443 string16 last_keyword_; | 444 string16 last_keyword_; |
444 | 445 |
445 // Used to change the visibility of the star decoration. | 446 // Used to change the visibility of the star decoration. |
446 BooleanPrefMember edit_bookmarks_enabled_; | 447 BooleanPrefMember edit_bookmarks_enabled_; |
447 | 448 |
448 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 449 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
449 }; | 450 }; |
450 | 451 |
451 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 452 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |