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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // The native browser window of the location bar that owns us. | 327 // The native browser window of the location bar that owns us. |
328 gfx::NativeWindow window_; | 328 gfx::NativeWindow window_; |
329 | 329 |
330 // The Notification registrar. | 330 // The Notification registrar. |
331 content::NotificationRegistrar registrar_; | 331 content::NotificationRegistrar registrar_; |
332 | 332 |
333 // The accelerator group used to handle accelerators, owned by this object. | 333 // The accelerator group used to handle accelerators, owned by this object. |
334 GtkAccelGroup* accel_group_; | 334 GtkAccelGroup* accel_group_; |
335 | 335 |
336 // The keybinding accelerator registered to show the page action popup. | 336 // The keybinding accelerator registered to show the page action popup. |
337 scoped_ptr<ui::AcceleratorGtk> keybinding_; | 337 scoped_ptr<ui::AcceleratorGtk> page_action_keybinding_; |
| 338 // The keybinding accelerator registered to show the script badge popup. |
| 339 scoped_ptr<ui::AcceleratorGtk> script_badge_keybinding_; |
338 | 340 |
339 // This is used for post-install visual feedback. The page_action icon | 341 // This is used for post-install visual feedback. The page_action icon |
340 // is briefly shown even if it hasn't been enabled by its extension. | 342 // is briefly shown even if it hasn't been enabled by its extension. |
341 bool preview_enabled_; | 343 bool preview_enabled_; |
342 | 344 |
343 // The context menu view and model for this extension action. | 345 // The context menu view and model for this extension action. |
344 scoped_ptr<MenuGtk> context_menu_; | 346 scoped_ptr<MenuGtk> context_menu_; |
345 scoped_refptr<ExtensionContextMenuModel> context_menu_model_; | 347 scoped_refptr<ExtensionContextMenuModel> context_menu_model_; |
346 | 348 |
347 // Fade-in animation for the icon with observer scoped to this. | 349 // Fade-in animation for the icon with observer scoped to this. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 BooleanPrefMember edit_bookmarks_enabled_; | 539 BooleanPrefMember edit_bookmarks_enabled_; |
538 | 540 |
539 // Used to remember the URL and title text when drag&drop has begun. | 541 // Used to remember the URL and title text when drag&drop has begun. |
540 GURL drag_url_; | 542 GURL drag_url_; |
541 string16 drag_title_; | 543 string16 drag_title_; |
542 | 544 |
543 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 545 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
544 }; | 546 }; |
545 | 547 |
546 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 548 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |