| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 18 #include "chrome/browser/api/prefs/pref_member.h" | 19 #include "chrome/browser/api/prefs/pref_member.h" |
| 19 #include "chrome/browser/extensions/extension_context_menu_model.h" | 20 #include "chrome/browser/extensions/extension_context_menu_model.h" |
| 20 #include "chrome/browser/extensions/image_loading_tracker.h" | 21 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 21 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" | 22 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
| 22 #include "chrome/browser/ui/gtk/menu_gtk.h" | 23 #include "chrome/browser/ui/gtk/menu_gtk.h" |
| 23 #include "chrome/browser/ui/omnibox/location_bar.h" | 24 #include "chrome/browser/ui/omnibox/location_bar.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnIconDragBegin, | 360 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnIconDragBegin, |
| 360 GdkDragContext*); | 361 GdkDragContext*); |
| 361 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnIconDragEnd, | 362 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnIconDragEnd, |
| 362 GdkDragContext*); | 363 GdkDragContext*); |
| 363 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnHboxSizeAllocate, | 364 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnHboxSizeAllocate, |
| 364 GtkAllocation*); | 365 GtkAllocation*); |
| 365 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnEntryBoxSizeAllocate, | 366 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnEntryBoxSizeAllocate, |
| 366 GtkAllocation*); | 367 GtkAllocation*); |
| 367 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnZoomButtonPress, | 368 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnZoomButtonPress, |
| 368 GdkEventButton*); | 369 GdkEventButton*); |
| 370 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnStarButtonSizeAllocate, |
| 371 GtkAllocation*); |
| 369 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnStarButtonPress, | 372 CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnStarButtonPress, |
| 370 GdkEventButton*); | 373 GdkEventButton*); |
| 371 | 374 |
| 372 // Updates the site type area: changes the icon and shows/hides the EV | 375 // Updates the site type area: changes the icon and shows/hides the EV |
| 373 // certificate information. | 376 // certificate information. |
| 374 void UpdateSiteTypeArea(); | 377 void UpdateSiteTypeArea(); |
| 375 | 378 |
| 376 // Updates the maximum size of the EV certificate label. | 379 // Updates the maximum size of the EV certificate label. |
| 377 void UpdateEVCertificateLabelSize(); | 380 void UpdateEVCertificateLabelSize(); |
| 378 | 381 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 ui::OwnedWidgetGtk hbox_; | 421 ui::OwnedWidgetGtk hbox_; |
| 419 | 422 |
| 420 // Zoom button. | 423 // Zoom button. |
| 421 ui::OwnedWidgetGtk zoom_; | 424 ui::OwnedWidgetGtk zoom_; |
| 422 GtkWidget* zoom_image_; | 425 GtkWidget* zoom_image_; |
| 423 | 426 |
| 424 // Star button. | 427 // Star button. |
| 425 ui::OwnedWidgetGtk star_; | 428 ui::OwnedWidgetGtk star_; |
| 426 GtkWidget* star_image_; | 429 GtkWidget* star_image_; |
| 427 bool starred_; | 430 bool starred_; |
| 431 bool star_sized_; // True after a size-allocate signal to the star widget. |
| 432 |
| 433 // Action to execute after the star icon has been sized, can refer to a NULL |
| 434 // function to indicate no such action should be taken. |
| 435 base::Closure on_star_sized_; |
| 428 | 436 |
| 429 // An icon to the left of the address bar. | 437 // An icon to the left of the address bar. |
| 430 GtkWidget* site_type_alignment_; | 438 GtkWidget* site_type_alignment_; |
| 431 GtkWidget* site_type_event_box_; | 439 GtkWidget* site_type_event_box_; |
| 432 GtkWidget* location_icon_image_; | 440 GtkWidget* location_icon_image_; |
| 433 GtkWidget* drag_icon_; | 441 GtkWidget* drag_icon_; |
| 434 bool enable_location_drag_; | 442 bool enable_location_drag_; |
| 435 // TODO(pkasting): Split this label off and move the rest of the items to the | 443 // TODO(pkasting): Split this label off and move the rest of the items to the |
| 436 // left of the address bar. | 444 // left of the address bar. |
| 437 GtkWidget* security_info_label_; | 445 GtkWidget* security_info_label_; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 BooleanPrefMember edit_bookmarks_enabled_; | 529 BooleanPrefMember edit_bookmarks_enabled_; |
| 522 | 530 |
| 523 // Used to remember the URL and title text when drag&drop has begun. | 531 // Used to remember the URL and title text when drag&drop has begun. |
| 524 GURL drag_url_; | 532 GURL drag_url_; |
| 525 string16 drag_title_; | 533 string16 drag_title_; |
| 526 | 534 |
| 527 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 535 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 528 }; | 536 }; |
| 529 | 537 |
| 530 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 538 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |