| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 gboolean (click_callback)(GtkWidget*, GdkEventButton*, gpointer)); | 406 gboolean (click_callback)(GtkWidget*, GdkEventButton*, gpointer)); |
| 407 void CreateZoomButton(); | 407 void CreateZoomButton(); |
| 408 void CreateStarButton(); | 408 void CreateStarButton(); |
| 409 | 409 |
| 410 // Update the zoom icon after zoom changes. | 410 // Update the zoom icon after zoom changes. |
| 411 void UpdateZoomIcon(); | 411 void UpdateZoomIcon(); |
| 412 | 412 |
| 413 // Update the star icon after it is toggled or the theme changes. | 413 // Update the star icon after it is toggled or the theme changes. |
| 414 void UpdateStarIcon(); | 414 void UpdateStarIcon(); |
| 415 | 415 |
| 416 // Update the Chrome To Mobile command state. |
| 417 void UpdateChromeToMobileState(); |
| 418 |
| 416 // Returns true if we should only show the URL and none of the extras like | 419 // Returns true if we should only show the URL and none of the extras like |
| 417 // the star button or page actions. | 420 // the star button or page actions. |
| 418 bool ShouldOnlyShowLocation(); | 421 bool ShouldOnlyShowLocation(); |
| 419 | 422 |
| 420 // The outermost widget we want to be hosted. | 423 // The outermost widget we want to be hosted. |
| 421 ui::OwnedWidgetGtk hbox_; | 424 ui::OwnedWidgetGtk hbox_; |
| 422 | 425 |
| 423 // Zoom button. | 426 // Zoom button. |
| 424 ui::OwnedWidgetGtk zoom_; | 427 ui::OwnedWidgetGtk zoom_; |
| 425 GtkWidget* zoom_image_; | 428 GtkWidget* zoom_image_; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 BooleanPrefMember edit_bookmarks_enabled_; | 532 BooleanPrefMember edit_bookmarks_enabled_; |
| 530 | 533 |
| 531 // Used to remember the URL and title text when drag&drop has begun. | 534 // Used to remember the URL and title text when drag&drop has begun. |
| 532 GURL drag_url_; | 535 GURL drag_url_; |
| 533 string16 drag_title_; | 536 string16 drag_title_; |
| 534 | 537 |
| 535 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 538 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 536 }; | 539 }; |
| 537 | 540 |
| 538 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 541 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |