| 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 22 matching lines...) Expand all Loading... |
| 33 #include "ui/base/gtk/gtk_signal.h" | 33 #include "ui/base/gtk/gtk_signal.h" |
| 34 #include "ui/base/gtk/owned_widget_gtk.h" | 34 #include "ui/base/gtk/owned_widget_gtk.h" |
| 35 #include "webkit/glue/window_open_disposition.h" | 35 #include "webkit/glue/window_open_disposition.h" |
| 36 | 36 |
| 37 class OmniboxViewGtk; | 37 class OmniboxViewGtk; |
| 38 class Browser; | 38 class Browser; |
| 39 class CommandUpdater; | 39 class CommandUpdater; |
| 40 class ContentSettingImageModel; | 40 class ContentSettingImageModel; |
| 41 class ContentSettingBubbleGtk; | 41 class ContentSettingBubbleGtk; |
| 42 class ExtensionAction; | 42 class ExtensionAction; |
| 43 class GtkThemeService; | 43 class ThemeServiceGtk; |
| 44 class SkBitmap; | 44 class SkBitmap; |
| 45 class ToolbarModel; | 45 class ToolbarModel; |
| 46 | 46 |
| 47 namespace content { | 47 namespace content { |
| 48 class WebContents; | 48 class WebContents; |
| 49 } | 49 } |
| 50 | 50 |
| 51 class LocationBarViewGtk : public AutocompleteEditController, | 51 class LocationBarViewGtk : public AutocompleteEditController, |
| 52 public LocationBar, | 52 public LocationBar, |
| 53 public LocationBarTesting, | 53 public LocationBarTesting, |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 content::PageTransition transition_; | 415 content::PageTransition transition_; |
| 416 | 416 |
| 417 // Used to schedule a task for the first run bubble. | 417 // Used to schedule a task for the first run bubble. |
| 418 base::WeakPtrFactory<LocationBarViewGtk> weak_ptr_factory_; | 418 base::WeakPtrFactory<LocationBarViewGtk> weak_ptr_factory_; |
| 419 | 419 |
| 420 // When true, the location bar view is read only and also is has a slightly | 420 // When true, the location bar view is read only and also is has a slightly |
| 421 // different presentation (font size / color). This is used for popups. | 421 // different presentation (font size / color). This is used for popups. |
| 422 bool popup_window_mode_; | 422 bool popup_window_mode_; |
| 423 | 423 |
| 424 // Provides colors and rendering mode. | 424 // Provides colors and rendering mode. |
| 425 GtkThemeService* theme_service_; | 425 ThemeServiceGtk* theme_service_; |
| 426 | 426 |
| 427 content::NotificationRegistrar registrar_; | 427 content::NotificationRegistrar registrar_; |
| 428 | 428 |
| 429 // Width of the main |hbox_|. Used to properly elide the EV certificate. | 429 // Width of the main |hbox_|. Used to properly elide the EV certificate. |
| 430 int hbox_width_; | 430 int hbox_width_; |
| 431 | 431 |
| 432 // Width of the hbox that holds |tab_to_search_box_|, |location_entry_| and | 432 // Width of the hbox that holds |tab_to_search_box_|, |location_entry_| and |
| 433 // |tab_to_search_hint_|. | 433 // |tab_to_search_hint_|. |
| 434 int entry_box_width_; | 434 int entry_box_width_; |
| 435 | 435 |
| 436 // Indicate if |tab_to_search_box_| should be shown. | 436 // Indicate if |tab_to_search_box_| should be shown. |
| 437 bool show_selected_keyword_; | 437 bool show_selected_keyword_; |
| 438 | 438 |
| 439 // Indicate if |tab_to_search_hint_| should be shown. | 439 // Indicate if |tab_to_search_hint_| should be shown. |
| 440 bool show_keyword_hint_; | 440 bool show_keyword_hint_; |
| 441 | 441 |
| 442 // The last search keyword that was shown via the |tab_to_search_box_|. | 442 // The last search keyword that was shown via the |tab_to_search_box_|. |
| 443 string16 last_keyword_; | 443 string16 last_keyword_; |
| 444 | 444 |
| 445 // Used to change the visibility of the star decoration. | 445 // Used to change the visibility of the star decoration. |
| 446 BooleanPrefMember edit_bookmarks_enabled_; | 446 BooleanPrefMember edit_bookmarks_enabled_; |
| 447 | 447 |
| 448 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 448 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 449 }; | 449 }; |
| 450 | 450 |
| 451 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 451 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |